summaryrefslogtreecommitdiffstats
path: root/source3/passdb
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-09-14 16:02:58 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:51:46 -0500
commitfcec9a23e951c40342cd37443cd16a213101eb41 (patch)
treebd635ff748e8dda80d381f1cfa14edbf76f0a2bc /source3/passdb
parent71453ab90dbda7f335a3c7119eb8d404e85a0131 (diff)
downloadsamba-fcec9a23e951c40342cd37443cd16a213101eb41.tar.gz
samba-fcec9a23e951c40342cd37443cd16a213101eb41.tar.xz
samba-fcec9a23e951c40342cd37443cd16a213101eb41.zip
r18527: Janitor for Jeremy ;-)
(This used to be commit d72ba9ed1288e7f498a64c96dd6aa04bda59c8b2)
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/lookup_sid.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/source3/passdb/lookup_sid.c b/source3/passdb/lookup_sid.c
index e89c5a41a29..85a31879064 100644
--- a/source3/passdb/lookup_sid.c
+++ b/source3/passdb/lookup_sid.c
@@ -458,10 +458,10 @@ static BOOL lookup_rids(TALLOC_CTX *mem_ctx, const DOM_SID *domain_sid,
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) ||
@@ -1132,9 +1132,9 @@ void uid_to_sid(DOM_SID *psid, uid_t uid)
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 */
@@ -1177,9 +1177,9 @@ void gid_to_sid(DOM_SID *psid, gid_t gid)
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 */
@@ -1225,9 +1225,9 @@ BOOL sid_to_uid(const DOM_SID *psid, uid_t *puid)
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) {
@@ -1305,9 +1305,9 @@ BOOL sid_to_gid(const DOM_SID *psid, gid_t *pgid)
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;
@@ -1319,9 +1319,9 @@ BOOL sid_to_gid(const DOM_SID *psid, gid_t *pgid)
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) &&