mirror of
https://github.com/librenms/librenms.git
synced 2024-09-22 19:08:15 +00:00
Merge pull request #3649 from vitalisator/vitalisator-patch-1
making CN with a , inside working
This commit is contained in:
commit
b8635a0c5a
@ -295,7 +295,9 @@ function get_dn($samaccountname) {
|
||||
}
|
||||
|
||||
function get_cn($dn) {
|
||||
$dn = str_replace('\\,','~C0mmA~',$dn);
|
||||
preg_match('/[^,]*/', $dn, $matches, PREG_OFFSET_CAPTURE, 3);
|
||||
$matches[0][0] = str_replace('~C0mmA~',',',$matches[0][0]);
|
||||
return $matches[0][0];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user