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

index e7558ec..11866b8 100644 (file)
@@ -29,6 +29,9 @@
 // SID du domaine Samba géré
 define('LS_SAMBA_DOMAIN_SID','S-1-5-21-2421470416-3566881284-3047381809');
 
+// Nom du domaine Samba géré (sambaDomainName)
+define('LS_SAMBA_DOMAIN_NAME','LS');
+
 // Le DN de l'objet sambaDomain du domaine
 define('LS_SAMBA_DOMAIN_OBJECT_DN','sambaDomainName=LS,o=ls');
 
index 273dcd5..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',
@@ -318,4 +319,15 @@ define('LS_SAMBA_INFINITY_TIME',2147483647);
     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;
+  }
+
 ?>