diff --git a/gosa-plugins/ldapmanager/addons/ldapmanager/class_csvimport.inc b/gosa-plugins/ldapmanager/addons/ldapmanager/class_csvimport.inc
index 39cd5fe3186c0d92f4273db08996a8c2d665db88..7565a656f183a9d6d9306086deba91dccb732326 100644 (file)
$dat = $this->csvinfo['sorteddata'][$i];
/* If not all needed vars set .... */
- if( ( empty($dat['sn']))||( empty($dat['givenName']))||( empty($dat['uid']))||
+ if(( empty($dat['sn']))||( empty($dat['givenName']))||( empty($dat['uid']))||
(!isset($dat['sn']))||(!isset($dat['givenName']))||(!isset($dat['uid']))){
/* Output Error */
}
// Setting user Password
- if((isset($dat['userPassword']))&&(!empty($dat['userPassword'])))
+ if((isset($dat['userPassword']))&&(!empty($dat['userPassword']))){
$password = $dat['userPassword'];
- else
- {
+ }else{
$rand_str="";
$feed = "0123456789abcdefghijklmnopqrstuvwxyz";
- for ($i=0; $i < 8; $i++)
+ for ($e=0; $e < 8; $e++)
{
$rand_str .= substr($feed, rand(0, strlen($feed)-1), 1);
}
$this->usertab->save();
change_password($this->usertab->dn,$password);
}
+ $this->usertab->dn;
}
}