diff options
author | Andrew Bartlett <abartlet@samba.org> | 2007-10-30 21:03:54 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-21 05:43:45 +0100 |
commit | 46210e11f14373a213ec6fa32a20e9e183d641bf (patch) | |
tree | 480843f7651d6d2a9460805132dfd6fe4082db07 /testprogs | |
parent | 47f6988c6d51d245ecacf2ab5c638382a7fdaeb5 (diff) | |
download | samba-46210e11f14373a213ec6fa32a20e9e183d641bf.tar.gz samba-46210e11f14373a213ec6fa32a20e9e183d641bf.tar.xz samba-46210e11f14373a213ec6fa32a20e9e183d641bf.zip |
r25754: More work on normal forms for ldb input.
This patch is to ensure that all attributes are in the same case as
the schema specifies. In the process, I ensure that all attributes
are indeed in the schema.
This ensures we use the schema case, not the user supplied case for
future responses, which assists any (incorrect, but possible) case
sensitive processing on a client.
I've also removed more of the subtle 'schema &&' that metze objected
to in the for loops, moving to a much more explicit 'if (schema)'.
Andrew Bartlett
(This used to be commit bfc96fff063e7cc278755c043b9da0ed4b75a615)
Diffstat (limited to 'testprogs')
-rwxr-xr-x | testprogs/ejs/ldap.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/testprogs/ejs/ldap.js b/testprogs/ejs/ldap.js index 080b0a981c..65e13a479d 100755 --- a/testprogs/ejs/ldap.js +++ b/testprogs/ejs/ldap.js @@ -33,9 +33,9 @@ function basic_tests(ldb, gc_ldb, base_dn, configuration_dn, schema_dn) var ok = ldb.add(" dn: cn=ldaptestuser,cn=uSers," + base_dn + " -objectClass: user -objectClass: person -cn: LDAPtestUSER +objectclass: user +objectclass: person +cN: LDAPtestUSER "); if (ok.error != 0) { ok = ldb.del("cn=ldaptestuser,cn=users," + base_dn); @@ -45,9 +45,9 @@ cn: LDAPtestUSER } ok = ldb.add(" dn: cn=ldaptestuser,cn=uSers," + base_dn + " -objectClass: user -objectClass: person -cn: LDAPtestUSER +objectclass: user +objectclass: person +cN: LDAPtestUSER "); if (ok.error != 0) { println(ok.errstr); @@ -57,8 +57,8 @@ cn: LDAPtestUSER var ok = ldb.add(" dn: cn=ldaptestcomputer,cn=computers," + base_dn + " -objectClass: computer -cn: LDAPtestCOMPUTER +objectclass: computer +cN: LDAPtestCOMPUTER "); if (ok.error != 0) { ok = ldb.del("cn=ldaptestcomputer,cn=computers," + base_dn); |