• I have a minor modification to authLdap.php for supporting using ‘dn’ in authLDAPGroupAttr.

    I don’t know how to submit this changes for merging into main stream. Here is the minor modification:

    original:

    for ($i = 0; $i < $groups [‘count’]; $i++) {
    for ($k = 0; $k < $groups[$i][strtolower($authLDAPGroupAttr)][‘count’]; $k++) {
    $grp[] = $groups[$i][strtolower($authLDAPGroupAttr)][$k];
    }
    }

    modified:
    // Modified to handle ‘dn’ in authLDAPGroupAttr
    for ($i = 0; $i < $groups [‘count’]; $i++) {
    if ($authLDAPGroupAttr == “dn”) {
    $grp[] = $groups[$i][‘dn’];
    } else {
    for ($k = 0; $k < $groups[$i][strtolower($authLDAPGroupAttr)][‘count’]; $k++) {
    $grp[] = $groups[$i][strtolower($authLDAPGroupAttr)][$k];
    }
    }
    }

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘use ‘dn’ in authLDAPGroupAttr’ is closed to new replies.