From 281284c819d0452c5d5db530ecdbd1267cd4e22c Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 3 Nov 2002 13:33:00 +0000 Subject: make_server_info_guest() can need root for the ldapsam backend (This used to be commit 918099f09618136c371e199803f5895f9cb702be) --- source3/auth/auth_builtin.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source3') 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; } -- cgit