diff options
author | Andrew Tridgell <tridge@samba.org> | 2002-11-03 13:33:00 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2002-11-03 13:33:00 +0000 |
commit | 281284c819d0452c5d5db530ecdbd1267cd4e22c (patch) | |
tree | f03ba535e318c7678ca6de7a1f557d5fcd56565e /source3 | |
parent | 9422775efd23d1f89379e7c1189265e9d27084d6 (diff) | |
download | samba-281284c819d0452c5d5db530ecdbd1267cd4e22c.tar.gz samba-281284c819d0452c5d5db530ecdbd1267cd4e22c.tar.bz2 samba-281284c819d0452c5d5db530ecdbd1267cd4e22c.zip |
make_server_info_guest() can need root for the ldapsam backend
(This used to be commit 918099f09618136c371e199803f5895f9cb702be)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/auth/auth_builtin.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/auth/auth_builtin.c b/source3/auth/auth_builtin.c index d54a8660b3..09b9a36cdf 100644 --- a/source3/auth/auth_builtin.c +++ b/source3/auth/auth_builtin.c @@ -41,8 +41,11 @@ static NTSTATUS check_guest_security(const struct auth_context *auth_context, NTSTATUS nt_status = NT_STATUS_LOGON_FAILURE; if (!(user_info->internal_username.str - && *user_info->internal_username.str)) + && *user_info->internal_username.str)) { + become_root(); nt_status = make_server_info_guest(server_info); + unbecome_root(); + } return nt_status; } |