From 3120e71d44a272228c0393bfe8be3d4653f2cd82 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Sat, 26 Aug 2006 05:10:38 +0000 Subject: Bug 349349: Use ->create from Bugzilla::Object instead of insert_new_user for Bugzilla::User Patch By Max Kanat-Alexander r=LpSolit, a=myk --- contrib/syncLDAP.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'contrib/syncLDAP.pl') diff --git a/contrib/syncLDAP.pl b/contrib/syncLDAP.pl index 32d01f150..72ea91798 100755 --- a/contrib/syncLDAP.pl +++ b/contrib/syncLDAP.pl @@ -273,7 +273,10 @@ if($readonly == 0) { print "Phase 3: creating new users... " unless $quiet; if($nocreate == 0) { while( my ($key, $value) = each(%create_users) ) { - insert_new_user($key, @$value{'realname'}); + Bugzilla::User->create({ + login_name => $key, + realname => @$value{'realname'}, + password => '*'}); } print "done!\n" unless $quiet; } -- cgit v1.2.3-24-g4f1b