Merge branch '2179-Permisos-avanzados-de-LDAP-dev' into 'develop'
Fixed atributtes ldap See merge request artica/pandorafms!1425
This commit is contained in:
commit
725bbb7d2d
|
@ -340,7 +340,7 @@ function process_user_login_remote ($login, $pass, $api = false) {
|
|||
$attributes = $ldap_adv_perm['groups_ldap'];
|
||||
|
||||
foreach ($attributes as $attr) {
|
||||
$attr = explode('=',$attr);
|
||||
$attr = explode('=', $attr, 2);
|
||||
if(in_array($attr[1],$sr[$attr[0]])) {
|
||||
$permissions[$i]["profile"] = $ldap_adv_perm['profile'];
|
||||
$permissions[$i]["groups"] = $ldap_adv_perm['group'];
|
||||
|
|
Loading…
Reference in New Issue