diff options
author | Andrew Bartlett <abartlet@samba.org> | 2002-11-15 21:23:55 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2002-11-15 21:23:55 +0000 |
commit | ac29d6b310d612f52b6200b0bb5320d09fc66039 (patch) | |
tree | ba88284ef3b99d22e1e7f057b3c0e83842a15fc4 /source3/auth/auth_util.c | |
parent | 973645cf2d37d478b71124b550af8b284377ef10 (diff) | |
download | samba-ac29d6b310d612f52b6200b0bb5320d09fc66039.tar.gz samba-ac29d6b310d612f52b6200b0bb5320d09fc66039.tar.bz2 samba-ac29d6b310d612f52b6200b0bb5320d09fc66039.zip |
Small auth updates:
- add static remove unnneded prototype
- move become_root() to just around pdb calls, so as to make it easier to
remove when we kill off this silly idea
- Change auth_sam to do 'account before password' rather than 'password before
account'. This means that we match Win2k in giving 'account disabled' instead
of 'wrong password' if the wrong password to a disabled account is used.
Andrew Bartlett
(This used to be commit e6d2debaf6064c3229f41c06545a1ccb83695a77)
Diffstat (limited to 'source3/auth/auth_util.c')
-rw-r--r-- | source3/auth/auth_util.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c index 98b15f3fb6..5696b8f2dc 100644 --- a/source3/auth/auth_util.c +++ b/source3/auth/auth_util.c @@ -821,9 +821,12 @@ NTSTATUS make_server_info_guest(auth_serversupplied_info **server_info) sid_copy(&guest_sid, get_global_sam_sid()); sid_append_rid(&guest_sid, DOMAIN_USER_RID_GUEST); + become_root(); if (!pdb_getsampwsid(sampass, &guest_sid)) { + unbecome_root(); return NT_STATUS_NO_SUCH_USER; } + unbecome_root(); nt_status = make_server_info_sam(server_info, sampass); |