This repository has been archived by the owner on Jul 24, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #773 from trantor/feature/eDirectory-support
New Schema for eDirectory support
- Loading branch information
Showing
1 changed file
with
110 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} | ||
} |