Bug#487104: nis: map values containing non-ascii characters vanish
On Tue, Jul 01, 2008 at 04:44:41PM +0100, Jonathan H N Chin wrote:
> aurelien wrote:
> > Would it be possible to test that with libc6_2.7-12 ?
>
> Fails, with apparently same behaviour as 2.3.6.ds1-13etch5 :
>
> $ dpkg -l libc6|awk '/^.i/{print $3}'
> 2.7-12
> $ ypcat passwd|grep Mark|awk -F: '{print $5}'|od -c
> 0000000
>
I don't have a Solaris server, so it is actually difficult to reproduce
the problem. However using a Linux server (nis package), I have been
able to partly reproduce the problem: if the file /etc/passwd is encoded
in ISO-8859-1 (the default in sarge) and the environment in which ypcat
is running is UTF-8 (the default in etch and later), the lines with
non-ascii chars are dropped, just as in your examples. ypcat works fine
when using an ISO-8859-1 environment.
However, I am still able to login to the system with the accounts using
non-ascii chars.
That's why I have a few questions:
- Are the accounts really locked, or the problem only appears with
ypcat?
- Does the 'id' command works for the accounts using non-ascii chars?
- Could you please run the ypcat command using:
'LC_ALL=en_GB.ISO-8859-1 LANG=en_GB.ISO-8859-1 ypcat'
(note that you may have to generate the corresponding locale)
Aurelien
--
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73
: :' : Debian developer | Electrical Engineer
`. `' aurel32@debian.org | aurelien@aurel32.net
`- people.debian.org/~aurel32 | www.aurel32.net
Reply to: