diff options
author | Andrew Bartlett <abartlet@samba.org> | 2008-06-30 09:38:52 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2008-06-30 09:38:52 +1000 |
commit | 8b6d8184a5e3a0c5941d54fc2507f11872098a83 (patch) | |
tree | 79737efe82529bffad118199101ffa8f5936aa84 /source4/lib | |
parent | 63cfab25e97231cd7508cc58b9ea0944d328748e (diff) | |
download | samba-8b6d8184a5e3a0c5941d54fc2507f11872098a83.tar.gz samba-8b6d8184a5e3a0c5941d54fc2507f11872098a83.tar.bz2 samba-8b6d8184a5e3a0c5941d54fc2507f11872098a83.zip |
Loosen ldap.py tests on the LDAP backend.
Allow LDAP backend to return parts of the DN in a different case, when
verifying memberOf.
Andrew Bartlett
(This used to be commit daddfae9fd8b7375bd4f469808378edc60a55be0)
Diffstat (limited to 'source4/lib')
-rwxr-xr-x | source4/lib/ldb/tests/python/ldap.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/ldb/tests/python/ldap.py b/source4/lib/ldb/tests/python/ldap.py index 9d334c5e03..f1c747a817 100755 --- a/source4/lib/ldb/tests/python/ldap.py +++ b/source4/lib/ldb/tests/python/ldap.py @@ -641,7 +641,7 @@ member: cn=ldaptestuser4,cn=ldaptestcontainer,""" + self.base_dn + """ self.assertEquals(res[0]["objectCategory"], ("CN=Person,CN=Schema,CN=Configuration," + self.base_dn)) self.assertEquals(int(res[0]["sAMAccountType"][0]), 805306368) self.assertEquals(int(res[0]["userAccountControl"][0]), 546) - self.assertEquals(res[0]["memberOf"][0], ("CN=ldaptestgroup2,CN=Users," + self.base_dn)) + self.assertEquals(res[0]["memberOf"][0].upper(), ("CN=ldaptestgroup2,CN=Users," + self.base_dn).upper()) self.assertEquals(len(res[0]["memberOf"]), 1) print "Testing ldb.search for (&(cn=ldaptestuser)(objectCategory=cn=person,cn=schema,cn=configuration," + self.base_dn + "))" |