diff --git a/source/setup/newuser.pl b/source/setup/newuser.pl index a38067219e6..d72c73a3260 100755 --- a/source/setup/newuser.pl +++ b/source/setup/newuser.pl @@ -121,14 +121,14 @@ $ldif .= "objectGUID: " . randguid() . "\n"; $ldif .= "memberOf: $dom_users\n"; $ldif .= "userAccountControl: 0x10200\n"; $ldif .= "sAMAccountType: 0x30000000\n"; -$ldif .= "objectClass: user\n"; $ldif .= "unicodePwd: $opt_password\n"; $ldif .= "unixName: $opt_unixname\n"; my $user_dn = "CN=$opt_username,CN=Users,$domain_dn"; open FILE, ">newuser.ldif"; -print FILE "dn: $user_dn"; +print FILE "dn: $user_dn\n"; +print FILE "objectClass: user\n"; print FILE "$ldif\n"; close FILE;