WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. PyroSteveJr
    Member
    Posted 1 year 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.

    http://wordpress.org/extend/plugins/active-directory-integration/

  2. glatze
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year 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
    Member
    Plugin Author

    Posted 1 year ago #

    Unfortunately.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.