Hi all,
Currently i have successfully tried to authen to elastic with ldap, but i used the role_mapping file, i was tesing with using the role mapping api but it is not working.
When i turn on the authen debug log then when ever i authen i get this log:
Authentication of [admin] using realm [ldap/ldap1] with token [UsernamePasswordToken] was [AuthenticationResult{status=CONTINUE, user=null, message=null, exception=null}]
Can some one point out to me what when wrong.
One note is that on the ldap realm i config the server to authen with sAMAccountName, i dont know if that is the problems.
That log message indicates that your LDAP realm is not authenticating the user. That means that this problem has nothing to do with role mapping, and is almost certainly a configuration problem in your LDAP realm.
You should turn on trace logging for the LDAP realm:
PUT _cluster/settings
{
"transient": {
"logger.org.elasticsearch.xpack.security.authc.ldap": "TRACE"
}
}
I am so sorry i have figure out the problems, the search user in the config file and the dn in the api are not the same so it cannot authenticate, but now that i have change the dn of the api, it works now
So thanks for your help.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.