[Mageia-webteam] [Bug 899] Synchronize bugzilla groups with ldap groups

Michael Scherer bugzilla-daemon at mageia.org
Wed Apr 20 00:58:50 CEST 2011


https://bugs.mageia.org/show_bug.cgi?id=899

--- Comment #5 from Michael Scherer <misc at zarb.org> 2011-04-20 00:58:50 UTC ---
I also found /usr/share/bugzilla/bin/bugzilla_ldapsync.rb and
/usr/share/bugzilla/bin/syncLDAP.pl

Ok so here is a proposal, in pseudo code :

connect_to_ldap()
@list_of_admin = get_list_of_admin_email()
foreach my $admin (@list_of_admin ) {
   $bz_user = get_user($admin->email);
   $bz_user->set('groups','admin');
   $bz_user->update();
}

and redo for security ?

I guess that would be like half a day of work ( provided someone is not
interrupted ).

I didn't found much example of bugzilla API usage, but according to the
documentation, this can be done, so if we just add a cron job, this would be
good.

-- 
Configure bugmail: https://bugs.mageia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the Mageia-webteam mailing list