Support » Plugin: wpDirAuth » Login using either samaccountname or mail

  • Hi, is there a way to accomplish a login method where one could use either samaccountname or mail address when login (samaccountname would be the actual username in both cases)? -VeM-

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Paul Gilzow

    (@gilzow)

    Not sure I’m following. You want your users to be able to enter in their sAMAccountname or their email address as the user name? Is the email address just samaccountname@domain.tld?

    Thread Starter vemi2709

    (@vemi2709)

    Just like that. We have other applications where users can login using both their username (samaccountname) and email (firstname.surname@company.ltd) and some of them try to login to WordPress also with email. So, Wordpess username should be samaccountname and user should be able to use both samaccountname and email to login 🙂

    Plugin Author Paul Gilzow

    (@gilzow)

    wpDirAuth can do either or, but it can’t do both. It does have a filter wpdirauth_filterquery where you can adjust the ldap filter right before the search occurs. You could hook that and then alter the filter based on what they gave as the user name.

    Thread Starter vemi2709

    (@vemi2709)

    You couldn’t by any chance give an exact example how to do it 🙂 ? I tried it myself but had no luck.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Login using either samaccountname or mail’ is closed to new replies.