I am having a lot of difficulty enabling Active Directory correctly. It seems to let me into the wiki and knows my name, but I get the following message at the top of the page:
Bind to Active Directory failed. Check the login credentials and/or server details. AD said: Invalid credentials
If I refresh the page, the error goes away. If I close the browser and re-open it, the error message reappears.
I have checked with my IT staff to verify that my AD settings are correct, and if I use an LDAP or AD browser, I can connect using the provided settings. What could be the problem? Here's my config:
$conf['useacl'] = 1;
$conf['disableactions'] = 'register';
$conf['authtype'] = 'ad';
// configure your Active Directory data here
$conf['auth']['ad']['account_suffix'] = '@AAAAA.BBBBB.COM';
$conf['auth']['ad']['base_dn'] = 'CN=SERVICE DevQuery,OU=Service Accounts,OU=AAA,DC=BBBBBB,DC=COM';
$conf['auth']['ad']['domain_controllers'] = 'CCCCCC,DDDDDD'; //multiple can be given
$conf['auth']['ad']['ad_username'] = 'AAAAAA\XXXXX';
$conf['auth']['ad']['ad_password'] = 'YYYYYY';
$conf['auth']['ad']['sso'] = 1;
//$conf['auth']['ad']['real_primarygroup'] = 0;
$conf['auth']['ad']['use_ssl'] = 0;
$conf['auth']['ad']['debug'] = 1;
$conf['auth']['ad']['recursive_groups'] = 1;