0

I have installed Ldap on Ubuntu 14.04 and wordpress on amazon linux ami. I'm able to login in ldap console. I have created a user in it. On wordpress i have installed simpleLDAP plugin. I don't know where i'm going wrong on the configuration part. The error that i get when i login into Wordpress admin panel is :

Simple LDAP Login: Simple LDAP Login could not authenticate your credentials. The security settings do not permit trying the WordPress user database as a fallback.

I'm attaching the snapshot of simple LDAP plugin settings that i configured on wordpress. Please help me solve this error.

Simple LDAP plugin settings

8
  • 1
    check if SElinux is causing issues, try disabling it or change the value of boolean like this: setsebool -P httpd_can_connect_ldap 1 or check if LDAP default port is open in Firewall and AWS security console Aug 24, 2016 at 12:59
  • 1
    i haven't verified it but also check wordpress.org/support/topic/… Aug 24, 2016 at 13:00
  • 1
    ok..check firewall and AWS security policy of server if LDAP is hosted on AWS Aug 24, 2016 at 13:03
  • 1
    Firewall allows all traffic and SElinux is disabled.
    – teamcloud
    Aug 24, 2016 at 13:05
  • error clearly says can't contact LDAP server..see if your LDAP server is reachable from your wordpress installation..did you try desabling SELINUX or change the sebool values Aug 24, 2016 at 13:09

1 Answer 1

1

in the screenshot you post the domain controller is 'ldap://dc1.test.com'.

In the plugin (very scarce) documentation, you clearly see that there is no 'ldap', so just plain 'dc1.test.com': screenshot ldap plugin wordpress

So that would explain the 'can't contact ldap server' syslog errors.

4
  • If i will mention dc1.test.com in the domain controller, then how will it contact my Ldap server. My Ldap server has Public Ip. So, I think i should use the public ip for that. Example: Ldap is installed on 52.xx.xx.xx/ldap so, should i use this url or only ip?
    – teamcloud
    Aug 26, 2016 at 5:00
  • you should use the dns name or ip address needed to reach your ldap server. What I meant is that you do not need to use the uri part (the ldap:// before the host name) Aug 26, 2016 at 13:32
  • Tried using ip only it doesn't work.
    – teamcloud
    Aug 30, 2016 at 7:19
  • then you will need to verify you can contact the ldap host from your wordpress host using ldap tools. Until then, 'it doesn't work' is, I guess, all you will get from here. Aug 30, 2016 at 12:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .