summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-12-03 01:44:49 +0100
committerStefan Metzmacher <metze@samba.org>2012-12-03 08:48:31 +0100
commit5fbdc5f35a122ff040c6120e2aa2cf5485e32097 (patch)
treeb70be76fc6ab078b8c6b9ce51fdc66f7fd7fc491
parenta0f41294488fcf4c9dbe5e85be6539394b6d6d1a (diff)
downloadsamba-5fbdc5f35a122ff040c6120e2aa2cf5485e32097.tar.gz
samba-5fbdc5f35a122ff040c6120e2aa2cf5485e32097.tar.bz2
samba-5fbdc5f35a122ff040c6120e2aa2cf5485e32097.zip
s3:passdb:pdb_ldap: treat "Unix User" and "Unix Group" in sid_to_id()
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
-rw-r--r--source3/passdb/pdb_ldap.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c
index 5bbfb2bc3a..6899b26464 100644
--- a/source3/passdb/pdb_ldap.c
+++ b/source3/passdb/pdb_ldap.c
@@ -4920,6 +4920,11 @@ static bool ldapsam_sid_to_id(struct pdb_methods *methods,
return false;
}
+ ret = pdb_sid_to_id_unix_users_and_groups(sid, id);
+ if (ret == true) {
+ return true;
+ }
+
mem_ctx = talloc_new(NULL);
if (mem_ctx == NULL) {
DEBUG(0, ("talloc_new failed\n"));