summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib')
-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;
}