WordPress.org

Ready to get started?Download WordPress

Forums

Shibboleth
Unable to add new users correctly (2 posts)

  1. ewendland
    Member
    Posted 3 years ago #

    Using version 1.4 of the Shibboleth plugin we have found that new users are not being added to WordPress correctly. This is because wp_insert_user now requires an email address. It does a search for a matching email address before adding the user. If the email is empty and you already have a user with a blank email address it will always return this user instead of adding the new user.

    While it would be nice to never have an empty email address we found it more practical to have the Shibboleth plugin initially create the user account with an email since the plugin updates the user account with that information several lines later.

    Code change is:
    318c318,320
    < $user_id = wp_insert_user(array('user_login'=>$user_login));
    ---
    > $user_id = wp_insert_user(array('user_login'=>$user_login,
    > 'user_email'=>$user_login));

    We are able to do this because our user_login (our eppn) is also a valid email address and is unique. A better fix would be to include the email address in the call to shibboleth_create_new_user or perhaps even fold shibboleth_create_new_user into shibboleth_update_user_data.

  2. fabri76
    Member
    Posted 2 years ago #

    hello,
    can you tell me how you configured the plugin, please?
    i did it, but i am in a sort of loop after authentication (a new session is asked in loop and i can not logon).
    did you had the same problem?
    which is yr OS?
    thank you.
    ciao,
    fabrizio

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags