summaryrefslogtreecommitdiff
path: root/source4/setup/newuser.pl
diff options
context:
space:
mode:
Diffstat (limited to 'source4/setup/newuser.pl')
-rwxr-xr-xsource4/setup/newuser.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/setup/newuser.pl b/source4/setup/newuser.pl
index a38067219e..d72c73a326 100755
--- a/source4/setup/newuser.pl
+++ b/source4/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;