Remove the ugly hacks to get around the Get_Pwnam() calls in pass_check.c by
authorAndrew Bartlett <abartlet@samba.org>
Wed, 19 Sep 2001 05:26:11 +0000 (05:26 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 19 Sep 2001 05:26:11 +0000 (05:26 +0000)
commit6adafe50d4a9a75a6fe1f666232e0af1ac717513
treee29f4759588fadfc5c81d6674f91d3568556c726
parent2309cd7f6415e2908f25c73440e49818bd426de0
Remove the ugly hacks to get around the Get_Pwnam() calls in pass_check.c by
simply not doing Get_Pwnam() calls in pass_check.c

We now make *one* sys_getpnam() call in cgi.c and we always call PAM no matter
what it returns.  We also no longer run the password cracker for these logins.

The truly parinod will note the slight difference in call paths, in that we only
call crypt for valid password structs (if not --with-pam).  The truly parinoid
don't run SWAT either, so I don't think this is an issue.

Andrew Bartlett
(This used to be commit 9020d884935243f28c19cedc88f076f0709e12cb)
source3/auth/auth_unix.c
source3/auth/pass_check.c
source3/passdb/pass_check.c
source3/smbd/auth_unix.c
source3/web/cgi.c