1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

r25598: Add missing become_root/unbecome_root around calls of add_aliases.

This triggered a "cannot access LDAP when not root"-bug with
"passdb backend = ldap" and "winbind nested groups = yes".

This *might* be a step towards fixing bug #4308, since the
failure was observerd when triggered by acl code.

Michael
(This used to be commit ba8c48244e)
This commit is contained in:
Michael Adam 2007-10-10 08:27:56 +00:00 committed by Gerald (Jerry) Carter
parent 07cbec10b1
commit 57482469b3

View File

@ -388,6 +388,8 @@ struct nt_user_token *create_local_nt_token(TALLOC_CTX *mem_ctx,
if (lp_winbind_nested_groups()) {
become_root();
/* Now add the aliases. First the one from our local SAM */
status = add_aliases(get_global_sam_sid(), result);
@ -405,6 +407,8 @@ struct nt_user_token *create_local_nt_token(TALLOC_CTX *mem_ctx,
TALLOC_FREE(result);
return NULL;
}
unbecome_root();
}