svn commit: samba r18531 - in branches/SAMBA_3_0_23/source/passdb: .
jra at samba.org
jra at samba.org
Thu Sep 14 16:34:04 GMT 2006
Author: jra
Date: 2006-09-14 16:34:04 +0000 (Thu, 14 Sep 2006)
New Revision: 18531
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18531
Log:
Janitor for Volker (I can't take pleasure in this,
he let me do it.... :-).
Jeremy.
Modified:
branches/SAMBA_3_0_23/source/passdb/lookup_sid.c
Changeset:
Modified: branches/SAMBA_3_0_23/source/passdb/lookup_sid.c
===================================================================
--- branches/SAMBA_3_0_23/source/passdb/lookup_sid.c 2006-09-14 16:33:47 UTC (rev 18530)
+++ branches/SAMBA_3_0_23/source/passdb/lookup_sid.c 2006-09-14 16:34:04 UTC (rev 18531)
@@ -421,10 +421,10 @@
return False;
}
- become_root();
+ become_root_uid_only();
result = pdb_lookup_rids(domain_sid, num_rids, rids,
*names, *types);
- unbecome_root();
+ unbecome_root_uid_only();
return (NT_STATUS_IS_OK(result) ||
NT_STATUS_EQUAL(result, NT_STATUS_NONE_MAPPED) ||
@@ -1084,9 +1084,9 @@
goto done;
}
- become_root();
+ become_root_uid_only();
ret = pdb_uid_to_rid(uid, &rid);
- unbecome_root();
+ unbecome_root_uid_only();
if (ret) {
/* This is a mapped user */
@@ -1129,9 +1129,9 @@
goto done;
}
- become_root();
+ become_root_uid_only();
ret = pdb_gid_to_sid(gid, psid);
- unbecome_root();
+ unbecome_root_uid_only();
if (ret) {
/* This is a mapped group */
@@ -1177,9 +1177,9 @@
union unid_t id;
BOOL ret;
- become_root();
+ become_root_uid_only();
ret = pdb_sid_to_id(psid, &id, &type);
- unbecome_root();
+ unbecome_root_uid_only();
if (ret) {
if (type != SID_NAME_USER) {
@@ -1257,9 +1257,9 @@
sid_check_is_in_wellknown_domain(psid))) {
BOOL ret;
- become_root();
+ become_root_uid_only();
ret = pdb_getgrsid(&map, *psid);
- unbecome_root();
+ unbecome_root_uid_only();
if (ret) {
*pgid = map.gid;
@@ -1271,9 +1271,9 @@
if (sid_peek_check_rid(get_global_sam_sid(), psid, &rid)) {
BOOL ret;
- become_root();
+ become_root_uid_only();
ret = pdb_sid_to_id(psid, &id, &type);
- unbecome_root();
+ unbecome_root_uid_only();
if (ret) {
if ((type != SID_NAME_DOM_GRP) &&
More information about the samba-cvs
mailing list