コード例 #1
0
ファイル: OpenLdap.php プロジェクト: GerDner/luck-docker
 /**
  * Parses the schema
  *
  * @param  Zend_Ldap_Dn $dn
  * @param  Zend_Ldap    $ldap
  * @return Zend_Ldap_Node_Schema Provides a fluid interface
  */
 protected function _parseSchema(Zend_Ldap_Dn $dn, Zend_Ldap $ldap)
 {
     parent::_parseSchema($dn, $ldap);
     $this->_loadAttributeTypes();
     $this->_loadLdapSyntaxes();
     $this->_loadMatchingRules();
     $this->_loadMatchingRuleUse();
     $this->_loadObjectClasses();
     return $this;
 }
コード例 #2
0
ファイル: SchemaTest.php プロジェクト: travisj/zf
 public function testOpenLdapSchemaObjectClassAliases()
 {
     if ($this->_getLdap()->getRootDse()->getServerType() !== Zend_Ldap_Node_RootDse::SERVER_TYPE_OPENLDAP) {
         $this->markTestSkipped('Test can only be run on an OpenLDAP server');
     }
     $objectClasses = $this->_schema->getObjectClasses();
     $this->assertArrayHasKey('OpenLDAProotDSE', $objectClasses);
     $this->assertArrayHasKey('LDAProotDSE', $objectClasses);
     $ob1 = $objectClasses['OpenLDAProotDSE'];
     $ob2 = $objectClasses['LDAProotDSE'];
     $this->assertSame($ob1, $ob2);
 }
コード例 #3
0
ファイル: ActiveDirectory.php プロジェクト: tenstone/wecenter
 /**
  * Parses the schema
  *
  * @param  Zend_Ldap_Dn $dn
  * @param  Zend_Ldap    $ldap
  * @return Zend_Ldap_Node_Schema Provides a fluent interface
  */
 protected function _parseSchema(Zend_Ldap_Dn $dn, Zend_Ldap $ldap)
 {
     parent::_parseSchema($dn, $ldap);
     foreach ($ldap->search('(objectClass=classSchema)', $dn, Zend_Ldap::SEARCH_SCOPE_ONE) as $node) {
         $val = new Zend_Ldap_Node_Schema_ObjectClass_ActiveDirectory($node);
         $this->_objectClasses[$val->getName()] = $val;
     }
     foreach ($ldap->search('(objectClass=attributeSchema)', $dn, Zend_Ldap::SEARCH_SCOPE_ONE) as $node) {
         $val = new Zend_Ldap_Node_Schema_AttributeType_ActiveDirectory($node);
         $this->_attributeTypes[$val->getName()] = $val;
     }
     return $this;
 }
コード例 #4
0
ファイル: Ldap.php プロジェクト: jpbender/mage_virtual
 /**
  * Returns the schema
  *
  * @return Zend_Ldap_Node_Schema
  * @throws Zend_Ldap_Exception
  */
 public function getSchema()
 {
     if ($this->_schema === null) {
         /**
          * @see Zend_Ldap_Node_Schema
          */
         #require_once 'Zend/Ldap/Node/Schema.php';
         $this->_schema = Zend_Ldap_Node_Schema::create($this);
     }
     return $this->_schema;
 }
コード例 #5
0
ファイル: Ldap.php プロジェクト: kobmaki/icingaweb2
 /**
  * Returns the schema
  *
  * @return Zend_Ldap_Node_Schema
  * @throws Zend_Ldap_Exception
  */
 public function getSchema()
 {
     if ($this->_schema === null) {
         /**
          * @see Zend_Ldap_Node_Schema
          */
         $this->_schema = Zend_Ldap_Node_Schema::create($this);
     }
     return $this->_schema;
 }