s3:passdb/pdb_ldap remove an unnecessary check
authorChristian Ambach <ambi@samba.org>
Mon, 27 May 2013 12:43:40 +0000 (14:43 +0200)
committerMichael Adam <obnox@samba.org>
Fri, 21 Jun 2013 08:44:22 +0000 (10:44 +0200)
as general passdb code already verifies for which
idmap domains the module is responsible, requests for
other domains should not come in here any more

Pair-Programmed-With: Michael Adam <obnox@samba.org>

Signed-off-by: Christian Ambach <ambi@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
source3/passdb/pdb_ldap.c

index fd90db32957320a3c32eacc8816b62f98d2a81ca..d7db4d80514166867cee38bcd90bea4fa693c7a1 100644 (file)
@@ -4916,10 +4916,6 @@ static bool ldapsam_sid_to_id(struct pdb_methods *methods,
 
        TALLOC_CTX *mem_ctx;
 
-       if (!sid_check_object_is_for_passdb(sid)) {
-               return false;
-       }
-
        ret = pdb_sid_to_id_unix_users_and_groups(sid, id);
        if (ret == true) {
                return true;