summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-01-25 01:40:42 +0100
committerMichael Adam <obnox@samba.org>2008-01-25 01:42:22 +0100
commit76e5c1f79a5dba8d2b4234f603e562cdd522ffde (patch)
tree7200e07fb52bdee7967c1232f5b163172222aed0 /source3/passdb
parent60daaeeb3446729b7b668bb7a03a97bbf02ad20a (diff)
downloadsamba-76e5c1f79a5dba8d2b4234f603e562cdd522ffde.tar.gz
samba-76e5c1f79a5dba8d2b4234f603e562cdd522ffde.tar.bz2
samba-76e5c1f79a5dba8d2b4234f603e562cdd522ffde.zip
Fix lookup_sids to detect unix_groups and unix_users domain sids.
This fixes panics in wbcLookupRids when 1-2-22 was passed as a domain sid. Michael (This used to be commit c0d9732cf4482b0db02c75f316ff2b41f3336425)
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/lookup_sid.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/passdb/lookup_sid.c b/source3/passdb/lookup_sid.c
index c954c776b6..9f66eb934e 100644
--- a/source3/passdb/lookup_sid.c
+++ b/source3/passdb/lookup_sid.c
@@ -599,6 +599,16 @@ static bool lookup_as_domain(const DOM_SID *sid, TALLOC_CTX *mem_ctx,
return true;
}
+ if (sid_check_is_unix_users(sid)) {
+ *name = talloc_strdup(mem_ctx, unix_users_domain_name());
+ return true;
+ }
+
+ if (sid_check_is_unix_groups(sid)) {
+ *name = talloc_strdup(mem_ctx, unix_groups_domain_name());
+ return true;
+ }
+
if (sid->num_auths != 4) {
/* This can't be a domain */
return false;