mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
reduce regress
still dirty hack, but solves a big problem.
This commit is contained in:
@@ -295,9 +295,9 @@ function get_dn($samaccountname) {
|
||||
}
|
||||
|
||||
function get_cn($dn) {
|
||||
dn = str_replace('\\,','~',$dn);
|
||||
$dn = str_replace('\\,','~C0mmA~',$dn);
|
||||
preg_match('/[^,]*/', $dn, $matches, PREG_OFFSET_CAPTURE, 3);
|
||||
$matches[0][0] = str_replace('~',',',$matches[0][0]);
|
||||
$matches[0][0] = str_replace('~C0mmA~',',',$matches[0][0]);
|
||||
return $matches[0][0];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user