summaryrefslogtreecommitdiffstats
path: root/inc/util.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2015-09-18 16:59:23 +0200
committerSimon Rettberg2015-09-18 16:59:23 +0200
commit05ed28bbcbe9abe242c19fc7088cfd383db52588 (patch)
tree1ff589012cc5d58a9d98957ce8486ceefd7da6f3 /inc/util.inc.php
parentChange some wording, add deletion reminder to main page (diff)
downloadslx-admin-05ed28bbcbe9abe242c19fc7088cfd383db52588.tar.gz
slx-admin-05ed28bbcbe9abe242c19fc7088cfd383db52588.tar.xz
slx-admin-05ed28bbcbe9abe242c19fc7088cfd383db52588.zip
[ldap/ad] Figure out proper spelling of search base
Diffstat (limited to 'inc/util.inc.php')
-rw-r--r--inc/util.inc.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/inc/util.inc.php b/inc/util.inc.php
index 4378a084..06eebfa4 100644
--- a/inc/util.inc.php
+++ b/inc/util.inc.php
@@ -285,5 +285,9 @@ SADFACE;
@unlink($file);
exit(0);
}
+
+ public static function normalizeDn($dn) {
+ return preg_replace('/[,;]\s*/', ',', $dn);
+ }
}