Unable to Login with LDAP Account in SuiteCRM 8.8 on Nginx + PHP 8.2.8

Resolved the LDAP login issue by updating the .env.local configuration file with the correct parameters. Below are the working settings that enabled successful LDAP authentication:

AUTH_TYPE=ldap

###> LDAP CONFIG ###
LDAP_HOST="10.10.xxx.xx"
LDAP_PORT=389
LDAP_ENCRYPTION=none
LDAP_PROTOCOL_VERSION=3
LDAP_REFERRALS=false
LDAP_DN_STRING="dc=xxxxxxxxxxxxxx,dc=com"
LDAP_QUERY_STRING="sAMAccountName={username}"
LDAP_SEARCH_DN="CN=ldap-reader,CN=Users,DC=xxxxxxxxxxxxxx,DC=com"
LDAP_SEARCH_PASSWORD="********"
###< LDAP CONFIG ###

###> LDAP AUTO CREATE CONFIG ###
LDAP_AUTO_CREATE=enabled
LDAP_PROVIDER_BASE_DN="dc=xxxxxxxxxxxxxx,dc=com"
LDAP_PROVIDER_SEARCH_DN="CN=ldap-reader,CN=Users,DC=xxxxxxxxxxxxxx,DC=com"
LDAP_PROVIDER_SEARCH_PASSWORD="********"
LDAP_PROVIDER_DEFAULT_ROLES="ROLE_USER"
LDAP_PROVIDER_UID_KEY="sAMAccountName"
LDAP_PROVIDER_FILTER="(&(sAMAccountName={username})(objectClass=person))"
###< LDAP AUTO CREATE CONFIG ###
1 Like