From a6e921fc814aa9ad4884371742d4c7dede655a6a Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 24 Jun 2005 01:50:50 +0000 Subject: r7867: a couple of bug fixes for newuser.pl from kukks I'm looking forward to deleting this file when we can add users using the web intgerface (and maybe ejs scripts for the command line) (This used to be commit 836e5782fda9edef6746adc6453d8a40df2a1765) --- source4/setup/newuser.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/setup/newuser.pl') 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; -- cgit