[SunHELP] solaris 2.8 getpwnam() strange behaviour ...

Adrian.Florea at alcatel.ro Adrian.Florea at alcatel.ro
Thu Mar 6 04:06:27 CST 2003


hello guys,

Please, give me a feedback if you heared of such a problem:

- I have a web user interface in which a user can chnage his password.
- I'm using as backend Apache + a PAM auth Apache module
- PAM modules are also customized by me

inside the PAM authentication module I make a call to getpwnam/getspnam
but between subsequent calls to these functions different bad values are
returned. That's the case when the user change it's password and then is
not recognized by the PAM because getpwnam returns a bad encrypted
password.

It seems that getpwnam/getspnam does not return always the good encrypted
password for a user.

Apache is running as a non-root user.

In Apache logs I see, whenever the auth fails (because of
getpwnam/getspnam) the err message like: "(9) Bad file number" or "(13)
Permission denied"


Thanks in advance,
Adrian FLOREA


P.S. all other login services (rlogin, telnet, ssh, ...) are filtered
through PAM and work very fine.


More information about the SunHELP mailing list