src/Classes/AdldapUtils.php
public function dnStrToArr($dnStr, $excludeBaseDn = true, $includeAttributes = false)
    {
        if ($excludeBaseDn) {
            return ldap_explode_dn($dnStr, ($includeAttributes ? 0 : 1));
        } else {
            return ldap_explode_dn($this->adldap->getBaseDn().$dnStr, ($includeAttributes ? 0 : 1));
        }
    }
public function dnStrToArr($dnStr, $excludeBaseDn = true, $includeAttributes = false)
    {
        if ($excludeBaseDn) {
            return ldap_explode_dn($dnStr, ($includeAttributes ? 0 : 1));
        } else {
            return ldap_explode_dn($this->adldap->getBaseDn().$dnStr, ($includeAttributes ? 0 : 1));
        }
    }
public function dnStrToArr ( $ dnStr , $ excludeBaseDn = true , $ includeAttributes = false ) { if ( $ excludeBaseDn ) { return ldap_explode_dn ( $ dnStr , ( $ includeAttributes ? 0 : 1 ) ) ; } else { return ldap_explode_dn ( $ this -> adldap -> getBaseDn ( ) . $ dnStr , ( $ includeAttributes ? 0 : 1 ) ) ; } }
Convert DN string to array.

@param $dnStr
@param bool $excludeBaseDn exclude base DN from results

@return array
Convert DN string to array .