mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-22 09:59:06 +01:00
LSaddon::samba : Added generate_sambaProfilePath() function
This commit is contained in:
parent
09f1c22e9f
commit
c8e3daf5fd
2 changed files with 17 additions and 1 deletions
|
@ -56,5 +56,9 @@ define('LS_SAMBA_GIDNUMBER_ATTR','gidNumber');
|
|||
define('LS_SAMBA_USERPASSWORD_ATTR','userPassword');
|
||||
|
||||
// Format du chemin du home
|
||||
define('LS_SAMBA_HOME_PATH_FORMAT','\\SERVER\profiles');
|
||||
define('LS_SAMBA_HOME_PATH_FORMAT','\\SERVER\%{uid}');
|
||||
|
||||
// Format du chemin du profile
|
||||
define('LS_SAMBA_PROFILE_PATH_FORMAT','\\SERVER\profiles\%{uid}');
|
||||
|
||||
?>
|
||||
|
|
|
@ -77,6 +77,7 @@ define('LS_SAMBA_INFINITY_TIME',2147483647);
|
|||
'LS_SAMBA_DOMAIN_SID',
|
||||
'LS_SAMBA_DOMAIN_NAME',
|
||||
'LS_SAMBA_HOME_PATH_FORMAT',
|
||||
'LS_SAMBA_PROFILE_PATH_FORMAT',
|
||||
'LS_SAMBA_DOMAIN_OBJECT_DN',
|
||||
'LS_SAMBA_SID_BASE_USER',
|
||||
'LS_SAMBA_SID_BASE_GROUP',
|
||||
|
@ -342,4 +343,15 @@ define('LS_SAMBA_INFINITY_TIME',2147483647);
|
|||
return $ldapObject -> getFData(LS_SAMBA_HOME_PATH_FORMAT);
|
||||
}
|
||||
|
||||
/**
|
||||
* Generation du sambaProfilePath
|
||||
*
|
||||
* @author Benjamin Renard <brenard@easter-eggs.com>
|
||||
*
|
||||
* @retval string Le sambaProfilePath
|
||||
*/
|
||||
function generate_sambaProfilePath($ldapObject) {
|
||||
return $ldapObject -> getFData(LS_SAMBA_PROFILE_PATH_FORMAT);
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
Loading…
Reference in a new issue