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
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@25598
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
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);
TALLOC_FREE(result);
return NULL;
}
+
+ unbecome_root();
}