mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-22 18:09:06 +01:00
LSaddon :: Samba : Added generate_sambaHomePath() function
This commit is contained in:
parent
2c100bc9e5
commit
1e8f92b132
2 changed files with 13 additions and 0 deletions
|
@ -55,4 +55,6 @@ define('LS_SAMBA_GIDNUMBER_ATTR','gidNumber');
|
|||
// Nom de l'attribut LDAP userPassword
|
||||
define('LS_SAMBA_USERPASSWORD_ATTR','userPassword');
|
||||
|
||||
// Format du chemin du home
|
||||
$GLOBALS['LS_SAMBA_HOME_PATH_FORMAT'] = '\\SERVER\profiles';
|
||||
?>
|
||||
|
|
|
@ -330,4 +330,15 @@ define('LS_SAMBA_INFINITY_TIME',2147483647);
|
|||
return LS_SAMBA_DOMAIN_NAME;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generation du sambaHomePath
|
||||
*
|
||||
* @author Benjamin Renard <brenard@easter-eggs.com>
|
||||
*
|
||||
* @retval string Le sambaHomePath
|
||||
*/
|
||||
function generate_sambaHomePath($ldapObject) {
|
||||
return $ldapObject -> getFData(LS_SAMBA_HOME_PATH_FORMAT);
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
Loading…
Reference in a new issue