WordPress.org

Ready to get started?Download WordPress

Forums

HTTP Authentication
[resolved] How to authenticate when REMOTE_USER = name@DOMAIN (4 posts)

  1. ian.armstrong
    Member
    Posted 1 year ago #

    I have been using basic authentication via an Apache Kerberos module for sometime. It authenticates users to an Active Directory DC. I have installed this plugin to integrate WordPress authentication.

    REMOTE_USER variable is set to username@OUR.DOMAIN and so no match occurs. I am not able to create usernames in the that format since WordPress allows only lower case and no @ symbols.

    To the best of my knowledge, although it has been a few years since I set it up, there is no way to change the REMOTE_USER value to strip the @DOMAIN part (which I am assuming is the problem).

    How can I integrate these two systems?

    Many thanks.

    http://wordpress.org/extend/plugins/http-authentication/

  2. Daniel Westermann-Clark
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Ian,

    I have not tested that specific setup, but you may find that your Apache module passes another environment variable containing only the username. Try dumping the environment variables on a throwaway PHP page that is under the same domain. For example:

    <?php print_r($_SERVER); ?>

    If you find one matching your usernames, specify it in the HTTP Authentication configuration in the "$_SERVER variables" option.

    Let us know your results!

  3. ian.armstrong
    Member
    Posted 1 year ago #

    Many thanks Daniel,

    PHP_AUTH_USER in _SERVER variables setting has fixed the problem.

    Ian

  4. vinaydh_1
    Member
    Posted 1 year ago #

    Hi There,

    I have setup kerberos with Active Directory,
    But whenever i access the URL, the application says
    "Unable to sign you in with your desktop credentials.
    Please try again with different credentials.
    Your session has timed out."

    Could any1 please help to sort it out?

    thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic