summaryrefslogtreecommitdiffstats
path: root/source/auth
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-11-03 13:33:00 +0000
committerAndrew Tridgell <tridge@samba.org>2002-11-03 13:33:00 +0000
commit918099f09618136c371e199803f5895f9cb702be (patch)
treeb10a6661fdb58afd5e0d76daff4f1c29fae58a67 /source/auth
parentce5b2d991b42bbf6865ff75194f8ee4b46694841 (diff)
downloadsamba-918099f09618136c371e199803f5895f9cb702be.tar.gz
samba-918099f09618136c371e199803f5895f9cb702be.tar.xz
samba-918099f09618136c371e199803f5895f9cb702be.zip
make_server_info_guest() can need root for the ldapsam backend
Diffstat (limited to 'source/auth')
-rw-r--r--source/auth/auth_builtin.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/auth/auth_builtin.c b/source/auth/auth_builtin.c
index d54a8660b35..09b9a36cdfa 100644
--- a/source/auth/auth_builtin.c
+++ b/source/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;
}