Beispiel #1
0
 public function testOpenLDAPSchemaAttributeTypeAliases()
 {
     if ($this->getLDAP()->getRootDse()->getServerType() !== Node\RootDse::SERVER_TYPE_OPENLDAP) {
         $this->markTestSkipped('Test can only be run on an OpenLDAP server');
     }
     $attributeTypes = $this->schema->getAttributeTypes();
     $this->assertArrayHasKey('cn', $attributeTypes);
     $this->assertArrayHasKey('commonName', $attributeTypes);
     $ob1 = $attributeTypes['cn'];
     $ob2 = $attributeTypes['commonName'];
     $this->assertSame($ob1, $ob2);
 }