I need to configure Liferay with organization LDAP.
My requirement is to import users on demand( on login) to Liferay database.
When I try to login by using screen name which is mapped to sAMAccountNumber in LDAP, I get
authentication failure error
I do not see any users imported in db too.
After a lot of debugging it looks life LDAP connection is done successfully. But no results are returned from LDAP.
I am seeing something like this in the logs .
Search filter before transformation (sAMAccountName=@screen_name‌​@)
Search filter after transformation (sAMAccountName=@screen_name‌​@)
I am not sure why its appending junk characters at the end .
It should just be
"sAMAccountName=@screen_name@ "
Any quick pointers would really help.
Thanks!
ldap.security.principal.0=domainname/myusername
feels incorrect. RDN (relative DN) is expected here (relative toldap.base.dn
). Check github.com/liferay/liferay-portal/blob/master/portal-impl/src/… . – Pavel Horal