/** * Parses the schema * * @param \Zend\LDAP\DN $dn * @param \Zend\LDAP\LDAP $ldap * @return \Zend\LDAP\Node\Schema\Schema Provides a fluid interface */ protected function _parseSchema(LDAP\DN $dn, LDAP\LDAP $ldap) { parent::_parseSchema($dn, $ldap); $this->_loadAttributeTypes(); $this->_loadLDAPSyntaxes(); $this->_loadMatchingRules(); $this->_loadMatchingRuleUse(); $this->_loadObjectClasses(); return $this; }
/** * Parses the schema * * @param \Zend\LDAP\DN $dn * @param \Zend\LDAP\LDAP $ldap * @return \Zend\LDAP\Node\Schema\Schema Provides a fluid interface */ protected function _parseSchema(LDAP\DN $dn, LDAP\LDAP $ldap) { parent::_parseSchema($dn, $ldap); foreach ($ldap->search('(objectClass=classSchema)', $dn, LDAP\LDAP::SEARCH_SCOPE_ONE) as $node) { $val = new ObjectClass\ActiveDirectory($node); $this->_objectClasses[$val->getName()] = $val; } foreach ($ldap->search('(objectClass=attributeSchema)', $dn, LDAP\LDAP::SEARCH_SCOPE_ONE) as $node) { $val = new AttributeType\ActiveDirectory($node); $this->_attributeTypes[$val->getName()] = $val; } return $this; }