From 05ed28bbcbe9abe242c19fc7088cfd383db52588 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 18 Sep 2015 16:59:23 +0200 Subject: [ldap/ad] Figure out proper spelling of search base --- inc/util.inc.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'inc/util.inc.php') 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); + } } -- cgit v1.2.3-55-g7522