Author: jra Date: 2006-01-25 22:07:27 +0000 (Wed, 25 Jan 2006) New Revision: 13143
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=13143 Log: Janitor for Simo.... old fix I forgot to commit need to access info when using the ldap backend Jeremy. Modified: trunk/source/rpc_server/srv_samr_nt.c Changeset: Modified: trunk/source/rpc_server/srv_samr_nt.c =================================================================== --- trunk/source/rpc_server/srv_samr_nt.c 2006-01-25 22:04:08 UTC (rev 13142) +++ trunk/source/rpc_server/srv_samr_nt.c 2006-01-25 22:07:27 UTC (rev 13143) @@ -4521,8 +4521,11 @@ 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;