mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
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…
x
Reference in New Issue
Block a user