Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.

Commit

Permalink
Merge pull request #773 from trantor/feature/eDirectory-support
Browse files Browse the repository at this point in the history
New Schema for eDirectory support
  • Loading branch information
stevebauman committed Aug 27, 2020
2 parents 96a1bdd + ce46d69 commit 6707fcf
Showing 1 changed file with 110 additions and 0 deletions.
110 changes: 110 additions & 0 deletions src/Schemas/EDirectory.php
@@ -0,0 +1,110 @@
<?php

namespace Adldap\Schemas;

class EDirectory extends Schema
{
/**
* {@inheritdoc}
*/
public function accountName()
{
return 'uid';
}

/**
* {@inheritdoc}
*/
public function distinguishedName()
{
return 'dn';
}

/**
* {@inheritdoc}
*/
public function distinguishedNameSubKey()
{
//
}

/**
* {@inheritdoc}
*/
public function filterEnabled()
{
return sprintf('(!(%s=*))', $this->lockoutTime());
}

/**
* {@inheritdoc}
*/
public function filterDisabled()
{
return sprintf('(%s=*)', $this->lockoutTime());
}

/**
* {@inheritdoc}
*/
public function lockoutTime()
{
return 'pwdAccountLockedTime';
}

/**
* {@inheritdoc}
*/
public function objectCategory()
{
return 'objectclass';
}

/**
* {@inheritdoc}
*/
public function objectClassGroup()
{
return 'groupofnames';
}

/**
* {@inheritdoc}
*/
public function objectClassOu()
{
return 'organizationalUnit';
}

/**
* {@inheritdoc}
*/
public function objectClassPerson()
{
return 'inetorgperson';
}

/**
* {@inheritdoc}
*/
public function objectClassUser()
{
return 'inetorgperson';
}

/**
* {@inheritdoc}
*/
public function objectGuid()
{
return 'guid';
}

/**
* {@inheritdoc}
*/
public function objectGuidRequiresConversion()
{
return false;
}
}

0 comments on commit 6707fcf

Please sign in to comment.