type = 'user'; $account_old = $account_new; $account_new->unix_password=''; $account_new->smb_password=''; $account_new->general_dn = substr($account_new->general_dn, strpos($account_new->general_dn, ',')+1); // Display general-page $select_local = 'general'; } // Startcondition. useredit.php was called from outside to create a new user else if (count($_POST)==0) { // Create new account object with settings from default profile // Check if there are valid groups. Can not create user with no primary group $groups = findgroups(); if (count($groups)==0) { // Write HTML-Header echo $header_intern; echo "