LDPA: don't drop legal whitespaces when sanitizing DN. Fixes oc-914

remotes/origin/stable4
Arthur Schiwon 14 years ago
parent 517bd28940
commit 48ccfa42d3
  1. 2
      apps/user_ldap/lib_ldap.php

@ -530,7 +530,7 @@ class OC_LDAP {
static private function sanitizeDN($dn) {
//OID sometimes gives back DNs with whitespace after the comma a la "uid=foo, cn=bar, dn=..." We need to tackle this!
$dn = preg_replace('/,\s+/',',',$dn);
$dn = preg_replace('/([^\\\]),(\s+)/','\1,',$dn);
//make comparisons and everything work
$dn = strtolower($dn);

Loading…
Cancel
Save