LSaddon :: Samba : Added generate_sambaHomePath() function
authorBenjamin Renard <brenard@easter-eggs.com>
Wed, 10 Nov 2010 16:45:03 +0000 (17:45 +0100)
committerBenjamin Renard <brenard@easter-eggs.com>
Wed, 10 Nov 2010 16:45:03 +0000 (17:45 +0100)
public_html/conf/LSaddons/config.LSaddons.samba.php
public_html/includes/addons/LSaddons.samba.php

index 11866b8..d08b2de 100644 (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';
 ?>
index 630c9cb..9fac794 100644 (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);
+  }
+
 ?>