1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-25 00:23:52 +03:00

r11923: Add samr_lookup_rids for the builtin domain. Doing it this way feels a bit

wrong, but so far we don't have proper multi-domain support in passdb yet...

Volker
This commit is contained in:
Volker Lendecke
2005-11-26 22:28:41 +00:00
committed by Gerald (Jerry) Carter
parent 57f0cf8cdd
commit c917cfc320
3 changed files with 41 additions and 27 deletions

View File

@@ -1516,19 +1516,11 @@ NTSTATUS _samr_lookup_rids(pipes_struct *p, SAMR_Q_LOOKUP_RIDS *q_u, SAMR_R_LOOK
if ((num_rids != 0) && ((names == NULL) || (attrs == NULL)))
return NT_STATUS_NO_MEMORY;
if (!sid_equal(&pol_sid, get_global_sam_sid())) {
/* TODO: Sooner or later we need to look up BUILTIN rids as
* well. -- vl */
goto done;
}
become_root(); /* lookup_sid can require root privs */
r_u->status = pdb_lookup_rids(&pol_sid, num_rids, q_u->rid,
names, attrs);
unbecome_root();
done:
if(!make_samr_lookup_rids(p->mem_ctx, num_rids, names,
&hdr_name, &uni_name))
return NT_STATUS_NO_MEMORY;