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

teamcloud
  • 1
  • 6
  • 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 – Sachin Singh Aug 24 '16 at 12:59
  • 1
    i haven't verified it but also check https://wordpress.org/support/topic/configuration-notes-errors-should-be-fixed?replies=2 – Sachin Singh Aug 24 '16 at 13:00
  • 1
    ok..check firewall and AWS security policy of server if LDAP is hosted on AWS – Sachin Singh Aug 24 '16 at 13:03
  • 1
    Firewall allows all traffic and SElinux is disabled. – teamcloud Aug 24 '16 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 – Sachin Singh Aug 24 '16 at 13:09
  • I think i have not configured the plugin right. I have attached a link in my question please have a look. – teamcloud Aug 24 '16 at 13:11
  • did you anonymize the plugin setting? If not the domain controller entry is very likely wrong. Please fix it with the real ldap server address or localhost if ldap server is the same box. – 473183469 Aug 24 '16 at 13:21
  • My Ldap server ip is 52.xx.xx.xx, so should i use https://52.xx.xx.xx or ldap://52.xx.xx.xx? – teamcloud Aug 24 '16 at 13:25

1 Answers1

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.

natxo asenjo
  • 5,641
  • 2
  • 25
  • 27
  • 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 '16 at 05: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) – natxo asenjo Aug 26 '16 at 13:32
  • Tried using ip only it doesn't work. – teamcloud Aug 30 '16 at 07: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. – natxo asenjo Aug 30 '16 at 12:18