1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

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 commit is contained in:
Andrew Tridgell 2005-06-24 01:50:50 +00:00 committed by Gerald (Jerry) Carter
parent 4eca613470
commit 836e5782fd

View File

@ -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;