s3:passdb:pdb_ldap: treat "Unix User" and "Unix Group" in sid_to_id()
authorMichael Adam <obnox@samba.org>
Mon, 3 Dec 2012 00:44:49 +0000 (01:44 +0100)
committerStefan Metzmacher <metze@samba.org>
Mon, 3 Dec 2012 07:48:31 +0000 (08:48 +0100)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/passdb/pdb_ldap.c

index 5bbfb2bc3aec931327cc5ef93c239b064dc692b9..6899b26464684d3c991d945d6a9d8dd81ce48095 100644 (file)
@@ -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"));