Open Bug 1408065 Opened 8 years ago Updated 2 months ago

need a user management command line utility

Categories

(Bugzilla :: User Accounts, defect)

defect
Not set
normal

Tracking

()

UNCONFIRMED

People

(Reporter: jtmoree, Unassigned)

Details

Attachments

(2 files, 2 obsolete files)

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:56.0) Gecko/20100101 Firefox/56.0 Build ID: 20171003100843 Steps to reproduce: Need to pre populate new users from other authentication sources and disable bugzilla users who have left the company. This is related to bug 201069 for us as we use Active Directory to authenticate users and need users to exist before they login. Actual results: contrib/syncLDAP.pl was not working for many reasons (ex. more than 1 ldap serve specified) and is difficult to configure and use. Expected results: A better utility should be written which separates the LDAP queries from the bugzilla process of managing users. so I wrote the bugzilla component. Please add to contrib. At the very least it will be here for others to find it. We use this with Active Directory syncing processes that we already have in house.
bugfix for action=list and added some exception handling for bugzilla::user calls. This version seems to have broken the rename login_name feature. Not sure why but the other actions work. I'll post another copy if I figure it out. I also had to output True/False at the end of every action because I'm calling this from remote servers that dont have access to the return status of the shell on the web server.
Attachment #8917897 - Attachment is obsolete: true
wrote a test suite for regression testing of the user management script. posting here for reference.
refactored exception handling and output to use loglevels. script only prints True or False to standard out.
Attachment #8918036 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: