LSaddon :: Samba : Added generate_sambaDomainName() function
[ldapsaisie.git] / public_html / includes / addons / LSaddons.samba.php
index f198214..630c9cb 100644 (file)
@@ -75,6 +75,7 @@ define('LS_SAMBA_INFINITY_TIME',2147483647);
 
     $MUST_DEFINE_CONST= array(
       'LS_SAMBA_DOMAIN_SID',
+      'LS_SAMBA_DOMAIN_NAME',
       'LS_SAMBA_DOMAIN_OBJECT_DN',
       'LS_SAMBA_SID_BASE_USER',
       'LS_SAMBA_SID_BASE_GROUP',
@@ -305,4 +306,28 @@ define('LS_SAMBA_INFINITY_TIME',2147483647);
     return LS_SAMBA_INFINITY_TIME;
   }
 
+ /**
+  * Generation de l'attribut sambaPwdLastSet
+  * 
+  * @author Benjamin Renard <brenard@easter-eggs.com>
+  * 
+  * @param[in] $ldapObject L'objet ldap
+  *
+  * @retval string sambaPwdLastSet
+  */
+  function generate_sambaPwdLastSet($ldapObject) {
+    return time();
+  }
+
+ /**
+  * Generation du sambaDomainName
+  *
+  * @author Benjamin Renard <brenard@easter-eggs.com>
+  *
+  * @retval string Le sambaDomainName
+  */
+  function generate_sambaDomainName($ldapObject) {
+    return LS_SAMBA_DOMAIN_NAME;
+  }
+
 ?>