예제 #1
0
파일: OpenLDAP.php 프로젝트: stunti/zf2
 /**
  * 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;
 }
예제 #2
0
 /**
  * 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;
 }