Added regex to LDAP advanced permissions
This commit is contained in:
parent
b467eea16b
commit
7ed5077c01
|
@ -349,7 +349,7 @@ function process_user_login_remote ($login, $pass, $api = false) {
|
|||
|
||||
foreach ($attributes as $attr) {
|
||||
$attr = explode('=', $attr, 2);
|
||||
if(in_array($attr[1],$sr[$attr[0]])) {
|
||||
if(preg_match('/' . $attr[1] . '/', $sr[$attr[0]][0])){
|
||||
$permissions[$i]["profile"] = $ldap_adv_perm['profile'];
|
||||
$permissions[$i]["groups"] = $ldap_adv_perm['group'];
|
||||
$permissions[$i]["tags"] = implode(",",$ldap_adv_perm['tags']);
|
||||
|
|
Loading…
Reference in New Issue