Open vidarno opened 3 years ago
Declarative Onboarding does not directly modify the nslcd.conf file. It uses tmsh to modify auth ldap
properties. Do you know what tmsh properties are tied to those lines in the configuration file?
This issue is being automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.
Sorry for the late reply, this issue is now resolved. By removing the following lines in the Terraform-configuration the lines starting with pam_authz_search were removed from nsld.conf; "checkBindPassword": true,
"filter": "(sAMAccountName=*)", "groupDn": "groupName", "groupMemberAttribute": "member",
Environment
Summary
Configuring AD authentication with DO creates lines starting with pam_authz_search in nslcd.conf that breaks group-membership lookup. Uncommenting these lines manually fixes remote authentication.
Steps To Reproduce
Steps to reproduce the behavior:
Submit the following declaration:
Observe the following error response: After enabling LDAP debug (tmsh modify auth ldap all debug enabled), relevant lines from /var/log/secure
Expected Behavior
I should be able to login with a user in the specified RemoteAuthRole
Actual Behavior
I am not able to login, before I comment out these lines from /etc/nslcd.conf and restart nslcd service
pam_authz_search (&(&(sAMAccountName=$username)((sAMAccountName=))(|(host=$hostname)(host=$fqdn)(host=\)))
pam_authz_search (&(&(sAMAccountName=$username)((sAMAccountName=*))(member=groupName))
After that is done I am able to login as expected.