Active Directory Integration
[resolved] Usernames with apostrophe (4 posts)

  1. PyroSteveJr
    Posted 2 years ago #

    Not sure if this is a WP issue or with plugin but when a user in active directory has a username with an apostrophe in it, i.e. o'harem, the plugin fails to authenticate and create the user.


  2. glatze
    Plugin Author

    Posted 2 years ago #

    Puh, here we have two problems. One with ADI and one with WordPress. ADI didn't strip the slashes added by WordPress on logon, so "o'harem" is passed to AD as "o\'harem". That's easy to fix.
    But WordPress doesn't allow usernames with apostrophes. Only lowercase letters (a-z) and numbers are allowed. So the user can not be created as "o'harem". We could strip characters like the apostrophe. But what would happen if we have another, different user with the username "oharem" (without apostrophe) in AD? Both would be mapped to a single user in WordPress. Ouch!

    So what can we do now? Any suggestions?

    BTW: It's not a good idea to allow usernames with special characters, since this often leads to problems as you can see here.

  3. PyroSteveJr
    Posted 2 years ago #

    This is what I though, thank you! We are in the process of changing our policies with a third-party company who creates our NTLogons.

  4. glatze
    Plugin Author

    Posted 2 years ago #


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Active Directory Integration
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.