LSaddon :: Samba : Added generate_sambaHomePath() function

This commit is contained in:
Benjamin Renard 2010-11-10 17:45:03 +01:00
parent 2c100bc9e5
commit 1e8f92b132
2 changed files with 13 additions and 0 deletions

View file

@ -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';
?>

View file

@ -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);
}
?>