aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2006-08-26 05:10:38 +0000
committermkanat%bugzilla.org <>2006-08-26 05:10:38 +0000
commit3120e71d44a272228c0393bfe8be3d4653f2cd82 (patch)
treea867f3d272e48f1aec5dbbef3d530e5f4cd80ae7 /contrib/syncLDAP.pl
parentBug 347864: Generally improve fulltext search (diff)
downloadbugzilla-3120e71d44a272228c0393bfe8be3d4653f2cd82.tar.gz
bugzilla-3120e71d44a272228c0393bfe8be3d4653f2cd82.tar.bz2
bugzilla-3120e71d44a272228c0393bfe8be3d4653f2cd82.zip
Bug 349349: Use ->create from Bugzilla::Object instead of insert_new_user for Bugzilla::User
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=myk
Diffstat (limited to 'contrib/syncLDAP.pl')
-rwxr-xr-xcontrib/syncLDAP.pl5
1 files changed, 4 insertions, 1 deletions
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;
}