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 | bfc96fff063e7cc278755c043b9da0ed4b75a615 (patch) | |
tree | 5ef727f5e14c0392618ad3e4748493e93909f0fe /testprogs | |
parent | f3390c9054244c0e4381007b36bbac9a17800570 (diff) | |
download | samba-bfc96fff063e7cc278755c043b9da0ed4b75a615.tar.gz |
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
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 080b0a981c7..65e13a479db 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); |