LSaddon::samba : Added generate_sambaProfilePath() function
authorBenjamin Renard <brenard@easter-eggs.com>
Tue, 22 Mar 2011 14:16:11 +0000 (15:16 +0100)
committerBenjamin Renard <brenard@easter-eggs.com>
Tue, 22 Mar 2011 14:16:11 +0000 (15:16 +0100)
public_html/conf/LSaddons/config.LSaddons.samba.php
public_html/includes/addons/LSaddons.samba.php

index e7206ff..6dc9d60 100644 (file)
@@ -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}');
+
 ?>
index cdaf6af..41c5e6d 100644 (file)
@@ -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);
+  }
+
 ?>