diff options
author | Andrew Bartlett <abartlet@samba.org> | 2002-11-15 21:43:57 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2002-11-15 21:43:57 +0000 |
commit | c64d762997c80bd9ad2d47d1799cf9ec870d455a (patch) | |
tree | 6839d179517104a114f726a8ee4d7a299c3534f6 /source3/auth/auth_util.c | |
parent | 392e2b2a0aab5e0e86d831b462b174abe8d089cb (diff) | |
download | samba-c64d762997c80bd9ad2d47d1799cf9ec870d455a.tar.gz samba-c64d762997c80bd9ad2d47d1799cf9ec870d455a.tar.bz2 samba-c64d762997c80bd9ad2d47d1799cf9ec870d455a.zip |
Updates from HEAD:
- const for PACKS() in lanman.c
- change auth to 'account before password'
- add help to net rpc {vampire,samsync}
- configure updates for sun workshop cc
- become_root() around pdb_ calls in auth_util for guest login.
Andrew Bartlett
(This used to be commit 43e90eb6e331d478013a9c038292f245edc51bd0)
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); |