Guten Tag
het...@gmail.com,
am Mittwoch, 8. Februar 2017 um 19:01 schrieben Sie:
> How do I move the data from the user joe to the user joeAD?
My bad, seems I totally misunderstood your example. :-) I'm not using
LDAP myself, so be careful with what I'm saying...
Bugzilla uses mail addresses by default. If you enable LDAP, it tries
to authorize with whatever it gets as username, searches for mail
addresses afterwards and uses that as the internal username. If it
doesn't find any, the provided username is used.
So if you logged in with
j...@example.org in the past and assign
j...@example.org to joeAD in your AD, you should be able to login with
joeAD, Bugzilla should retrieve
j...@example.org internally and
wouldn't create a new account at all.
If you really logged in using joe only, it MIGHT work to assing joe as
mail address to joeAD as well and configure emailsuffix in Bugzilla's
admin ui. Which in such a setup should be configured already anyway I
guess...
What to use as Bugzilla mail address aka its internal username can be
configured in the LDAP settings in the admin ui. So it should be
possible to map old usernames of Bugzilla to your AD users even if
those already have some mail address otherwise. Maybe just create a
new field like "bz_username" or "bz_mail" or whatever.
You can easily test with some AD user by keeping DB in your
user_verify_class after LDAP.
Have a look at the source of Bugzilla::Auth::Verify::LDAP of how this
works. You don't need to be a developer to somewhat understand what
happens when.