Re: Active Directory Authentication and LDAP binding
Posted: Fri Aug 28, 2015 11:11 am
I've modified the code to use ad_username and ad_password (I tried both DN notation and just using the username) but I still receive the same error in the Apache log:
The browser also now displays the following after attempting to login with an AD user (sanitized):res_errno: 49, res_error: <80090308: LdapErr: DSID-0C0903A9, comment: AcceptSecurityContext error, data 52e, v1db1>, res_matched: <>
exception 'adLDAPException' with message 'Bind to Active Directory failed. Either the LDAPs connection failed or the login credentials are incorrect. AD said: Invalid credentials' in /usr/local/nagiosxi/html/includes/components/active_directory/adLDAP/adLDAP.php:415 Stack trace: #0 /usr/local/nagiosxi/html/includes/components/active_directory/adLDAP/adLDAP.php(370): adLDAP->connect() #1 /usr/local/nagiosxi/html/includes/components/active_directory/active_directory.inc.php(402): adLDAP->__construct(Array) #2 /usr/local/nagiosxi/html/login.php(366): active_directory_component_check_authentication('process_auth_in...', Array) #3 /usr/local/nagiosxi/html/login.php(427): check_login_credentials('TESTEDADUSERNAME', 'TESTEDADPASSWORD, Array, Array) #4 /usr/local/nagiosxi/html/login.php(59): do_login() #5 /usr/local/nagiosxi/html/login.php(27): route_request() #6 /usr/local/nagiosxi/html/login.php(2): sg_load('100590ECE1845C2...') #7 {main}