getpwnam() does not honour nisplus/nscd for sp_pwdp (passwords.c)
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2817
Reported by Wilhelm Köhler, Technical University Berlin wk@cs.tu-berlin.de
Henrik,
with Solaris 8, passwd map in nisplus and nscd enabled all authentication via the System user database module (.htaccess and ) fails for Pike v7.2 release 259, Roxen WebServer 2.2.252 running as root.
Reproducable with hilfe and stopping nscd helps:
(22)root@pompa> /home/adm/roxen/server-2.2.252/pike/bin/pike
Pike v7.2 release 259 running Hilfe v2.0 (Incremental Pike Frontend)
> getpwnam("willi2");
Result: ({ /* 7 elements */
"willi2",
"*NP*",
21065,
13,
"Wilhelm Köhler",
"/home/w/willi2",
"/usr/local/bin/bash"
})
>
[1]+ Stopped /home/adm/roxen/server-2.2.252/pike/bin/pike
(23)root@pompa> /etc/init.d/nscd stop
(24)root@pompa> fg
/home/adm/roxen/server-2.2.252/pike/bin/pike
getpwnam("willi2");
getpwnam("willi2");
Result: ({ /* 7 elements */
"willi2",
"pPTbgDt5Ebnx6",
21065,
13,
"Wilhelm Köhler",
"/home/w/willi2",
"/usr/local/bin/bash"
})
Terminal closed.
Probably in passwords.c (line 126) "NP" should also be checked.
Cheers,
Willi