1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-09 20:23:51 +03:00

r8640: continue the trend by moving the ejs random calls into an object

This commit is contained in:
Andrew Tridgell
2005-07-20 07:29:23 +00:00
committed by Gerald (Jerry) Carter
parent 2dc493eea6
commit ed4fb68ef7
3 changed files with 19 additions and 5 deletions

View File

@@ -224,6 +224,7 @@ function provision_guess()
var subobj = new Object();
var nss = nss_init();
var lp = loadparm_init();
random_init(local);
subobj.REALM = lp.get("realm");
subobj.DOMAIN = lp.get("workgroup");
@@ -277,6 +278,7 @@ function newuser(username, unixname, password, message)
var lp = loadparm_init();
var samdb = lp.get("sam database");
var ldb = ldb_init();
random_init(local);
/* connect to the sam */
var ok = ldb.connect(samdb);