need to access info when using the ldap backend
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13138
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
if (!NT_STATUS_IS_OK(r_u->status = access_check_samr_function(acc_granted, SA_RIGHT_GROUP_SET_INFO, "_samr_set_groupinfo"))) {
return r_u->status;
}
-
- if (!get_domain_group_from_sid(group_sid, &map))
+
+ become_root();
+ ret = get_domain_group_from_sid(group_sid, &map);
+ unbecome_root();
+ if (!ret)
return NT_STATUS_NO_SUCH_GROUP;
ctr=q_u->ctr;