r5927: Fix ldapsam trusted enum_group_members. We were searching in the user
authorJim McDonough <jmcd@samba.org>
Mon, 21 Mar 2005 21:09:21 +0000 (21:09 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:56:09 +0000 (10:56 -0500)
suffix instead of the group suffix.

Thanks to John Janosik (jpjanosi@us.ibm.com).

source/passdb/pdb_ldap.c

index f086b3f09b22d3ffabb50790b4d4c36079f65b06..3dab919cb4698fa2333e5ec7d4a3748ce49a584b 100644 (file)
@@ -2288,7 +2288,7 @@ static NTSTATUS ldapsam_enum_group_members(struct pdb_methods *methods,
 
        {
                const char *attrs[] = { "memberUid", NULL };
-               rc = smbldap_search(conn, lp_ldap_user_suffix(),
+               rc = smbldap_search(conn, lp_ldap_group_suffix(),
                                    LDAP_SCOPE_SUBTREE, filter, attrs, 0,
                                    &msg);
        }