Code

Removed CLI
[gosa.git] / gosa-plugins / samba / personal / samba / class_sambaAccount.inc
index 3b638889fd4102820a9a1ac70491e78be6641f76..6e2ac6ff2aee206a4e84a49bd8c965710cf99b43 100644 (file)
@@ -25,11 +25,6 @@ class sambaAccount extends plugin
   var $plDescription= "This does something";
   var $view_logged = FALSE;
 
-  /* CLI vars */
-  var $cli_summary= "Manage users samba account";
-  var $cli_description= "Some longer text\nfor help";
-  var $cli_parameters= array("eins" => "Eins ist toll", "zwei" => "Zwei ist noch besser");
-
   /* Switch for Samba version */
   var $samba3= FALSE;
   var $uidNumber= 65535;
@@ -137,7 +132,11 @@ class sambaAccount extends plugin
       $ldap->search ("(&(objectClass=sambaDomain)(sambaSID=$this->SID))",array("sambaAlgorithmicRidBase","sambaDomainName"));
       if ($ldap->count() != 0){
         $attrs= $ldap->fetch();
-        $this->ridBase= $attrs['sambaAlgorithmicRidBase'][0];
+        if(isset($attrs['sambaAlgorithmicRidBase'])){
+          $this->ridBase= $attrs['sambaAlgorithmicRidBase'][0];
+        } else {
+          $this->ridBase= $this->config->current['RIDBASE'];
+        }
         if ($this->sambaDomainName == ""){
           $this->sambaDomainName= $attrs['sambaDomainName'][0];
         }
@@ -1543,9 +1542,8 @@ class sambaAccount extends plugin
   {
     plugin::PrepareForCopyPaste($source);
 
-    /* Set a new SID and force a new group with new sambaPrimaryGroupSID */
+    /* Set a new SID */
     $this->sambaSID = "";
-    print "Eloha : ".($this->gidNumber);
   }
 
 }