• Hello!

    I need your help…

    When a user signs in (for first time), a role is asigned according groups’s Active Directory and if a user doesn’t exist in a group, subscriber role will be assigned as default. This works properly.

    But I need the plugin doesn’t check again for role user when a user sign in for second time, I mean: after second login the role profile must be managed only for WordPress, not for Active Directory Groups.

    It is possible?

    Thanks a lot,

    https://wordpress.org/plugins/saml-20-single-sign-on/

Viewing 1 replies (of 1 total)
  • Thread Starter xzoom

    (@xzoom)

    I found the solution:

    You only have to comment line 147 /lib/classes/saml_client.php.

    private function simulate_signon($username)
     {
       remove_filter('wp_authenticate',array($this,'authenticate'));
    
       // coment this line
       //$this->update_role();
Viewing 1 replies (of 1 total)
  • The topic ‘After second login, the role profile must be managed only for WordPress’ is closed to new replies.