Thread:Extension talk:LDAP Authentication/User-name mapping configuration hook doesn't work/reply (3)

Hi,

We were having the same Problem. The username used for the first login is correct, but the next login always uses the Hooked LDAPUsername. As a workaround I just store the first username and then reuse it for subsequent login attempts when getting the userDN. Here is my Code:

Here is a Patch for Version 2.0a:

I know it it is pretty dirty with the Global variables, but it is working for us.

Thanks for the great Plugin,

Benjamin Chase