mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-18 00:09:06 +01:00
LSaddon :: Samba : Added generate_sambaDomainName() function
This commit is contained in:
parent
55039206b7
commit
7ef44445c6
2 changed files with 15 additions and 0 deletions
|
@ -29,6 +29,9 @@
|
|||
// SID du domaine Samba géré
|
||||
define('LS_SAMBA_DOMAIN_SID','S-1-5-21-2421470416-3566881284-3047381809');
|
||||
|
||||
// Nom du domaine Samba géré (sambaDomainName)
|
||||
define('LS_SAMBA_DOMAIN_NAME','LS');
|
||||
|
||||
// Le DN de l'objet sambaDomain du domaine
|
||||
define('LS_SAMBA_DOMAIN_OBJECT_DN','sambaDomainName=LS,o=ls');
|
||||
|
||||
|
|
|
@ -75,6 +75,7 @@ define('LS_SAMBA_INFINITY_TIME',2147483647);
|
|||
|
||||
$MUST_DEFINE_CONST= array(
|
||||
'LS_SAMBA_DOMAIN_SID',
|
||||
'LS_SAMBA_DOMAIN_NAME',
|
||||
'LS_SAMBA_DOMAIN_OBJECT_DN',
|
||||
'LS_SAMBA_SID_BASE_USER',
|
||||
'LS_SAMBA_SID_BASE_GROUP',
|
||||
|
@ -318,4 +319,15 @@ define('LS_SAMBA_INFINITY_TIME',2147483647);
|
|||
return time();
|
||||
}
|
||||
|
||||
/**
|
||||
* Generation du sambaDomainName
|
||||
*
|
||||
* @author Benjamin Renard <brenard@easter-eggs.com>
|
||||
*
|
||||
* @retval string Le sambaDomainName
|
||||
*/
|
||||
function generate_sambaDomainName($ldapObject) {
|
||||
return LS_SAMBA_DOMAIN_NAME;
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
Loading…
Reference in a new issue