summaryrefslogtreecommitdiffstats
path: root/source/auth/auth_unix.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2001-09-20 13:15:35 +0000
committerAndrew Bartlett <abartlet@samba.org>2001-09-20 13:15:35 +0000
commit2c2317c56ee13abdbdbc866363c3b52dab826e3c (patch)
tree77384e33fa51e9f052cb4da7645fb8112fe2a8bd /source/auth/auth_unix.c
parentbf81f0021328da97afe58cc17317b15ec1b3cc96 (diff)
downloadsamba-2c2317c56ee13abdbdbc866363c3b52dab826e3c.tar.gz
samba-2c2317c56ee13abdbdbc866363c3b52dab826e3c.tar.xz
samba-2c2317c56ee13abdbdbc866363c3b52dab826e3c.zip
Move pass_check.c over to NTSTATUS, allowing full NTSTATUS from PAM to wire!
Add the ability for swat to run in non-root-mode (ie non-root from inetd). - we still need some of the am_root() calls fixed however.
Diffstat (limited to 'source/auth/auth_unix.c')
-rw-r--r--source/auth/auth_unix.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/auth/auth_unix.c b/source/auth/auth_unix.c
index 4740f7fb0dc..5582682d988 100644
--- a/source/auth/auth_unix.c
+++ b/source/auth/auth_unix.c
@@ -77,14 +77,14 @@ NTSTATUS check_unix_security(const auth_usersupplied_info *user_info, auth_serve
pass = Get_Pwnam(user_info->unix_username.str, False);
- nt_status = (pass_check(pass,
+ nt_status = pass_check(pass,
pass ? pass->pw_name : user_info->unix_username.str,
user_info->plaintext_password.str,
user_info->plaintext_password.len,
lp_update_encrypted() ?
update_smbpassword_file : NULL,
- True)
- ? NT_STATUS_OK : NT_STATUS_LOGON_FAILURE);
+ True);
+
unbecome_root();
return nt_status;