• Hi guys,

    I ‘ve been using the AD Integration plugin for quite some time now and I noticed that even though I had ticked the “Append account suffix…” option on “User Specific Settings” it just created users in the WordPress database without it (i.e. the account suffix).

    This resulted into some users having the same account and each time they logged in, that same account was getting updated with info from whoever logged in last.

    For example, I had two users named Alex Turner each one with their own suffix: [email protected] and [email protected]. Since the suffix wasn’t being stored in the WordPress users table, these two users were using the same account i.e. alex-turner.

    To solve this problem I modified the ad-integration.php file on line 865 where the user is being created. The function there takes as a first argument $ad_username which does not include the suffix so I changed this to just $username which includes the suffix:

    (in the lines before you see the following code)

    // should the account suffix be used for the new username?
    		if ($this->_append_suffix_to_new_users) {
    			$username .= $account_suffix;
    		}

    Now everything works fine.

    Don’t know if this is a proper solution though or just a quick fix (that might be causing other problems elsewhere). Just thought I should let you know in case no one else posted about encountering this.

    https://www.ads-software.com/plugins/active-directory-integration/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘AD Integration Plugin Auto Creation of Users with "Full Domain" Username’ is closed to new replies.