1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-04 08:22:08 +03:00

r12749: Fix the newuser script.

Andrew Bartlett
(This used to be commit 42cdad5e3f)
This commit is contained in:
Andrew Bartlett
2006-01-06 21:45:36 +00:00
committed by Gerald (Jerry) Carter
parent 528470d4a7
commit 27f997e682
2 changed files with 10 additions and 7 deletions

View File

@ -406,7 +406,7 @@ userAccountControl: %u
/*
add a new user record
*/
function newuser(username, unixname, password, message, subobj, session_info, credentials)
function newuser(username, unixname, password, message, session_info, credentials)
{
var lp = loadparm_init();
var samdb = lp.get("sam database");
@ -437,15 +437,13 @@ function newuser(username, unixname, password, message, subobj, session_info, cr
var ldif = sprintf("
dn: %s
sAMAccountName: %s
name: %s
memberOf: %s
unixName: %s
objectGUID: %s
unicodePwd: %s
sambaPassword: %s
objectClass: user
",
user_dn, username, username, dom_users,
unixname, randguid(), password);
user_dn, username, dom_users,
unixname, password);
/*
add the user to the users group as well
*/