mirror of
https://github.com/samba-team/samba.git
synced 2025-02-04 17:47:26 +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 used to be commit 836e5782fda9edef6746adc6453d8a40df2a1765)
This commit is contained in:
parent
d5888fbb60
commit
a6e921fc81
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user