Support » Plugin: Active Directory SSO » Not saving settings

Viewing 2 replies - 1 through 2 (of 2 total)
  • Same issue for me, and it’s kicking me out every time I access a page.

    Yeah, I saw the reason in the code. plugin tries to connect to something that is not configured yet!
    I think I can provide code to get ahead

    in ad-sso-user.php (around line 90)
    list($ad_sso_local_domain,, $ad_sso_local_userid) = $cred;


    $ad_sso_fqdn = get_option('ad_sso_fqdn');
     if ( is_user_logged_in()) {
         global $current_user;
         $currentUserMatchesRemoteUser = (strtolower(trim($current_user->user_login)) === strtolower(trim($ad_sso_local_userid)));
         $settingsPresent = $ad_sso_fqdn && strlen($ad_sso_fqdn)!=0;
         if ( !$currentUserMatchesRemoteUser && $settingsPresent) {


    You may also want to update
    @$bind = ldap_bind($connection, $ldapCred, $ad_sso_password);

    to suppress initial connect warnings if needed

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Not saving settings’ is closed to new replies.