To test your LDAP connection in WordPress, you need a plugin that supports LDAP or Active Directory integration. Here’s how you can test the connection step by step:
- Install an LDAP Integration Plugin:
Start by installing a trusted plugin like the miniOrange LDAP/Active Directory Login for Intranet plugin. It allows WordPress to connect with your on-premise or cloud-hosted LDAP servers. - Open the LDAP Test Configuration Page:
Once installed, go to the plugin’s configuration panel in your WordPress dashboard. Look for a section called “Test LDAP Configuration” or “Test Connection”. - Enter LDAP Server Details
- Fill in the required fields:
LDAP Server URL (e.g., ldap://your-server-address)- Base DN (e.g., dc=yourcompany,dc=com)
- Bind DN and password (credentials of a service account)
- Search filter (e.g., (sAMAccountName={{username}}))
- Click on Test Configuration:
Use a sample username and password from your LDAP server to test the login. If the plugin successfully connects to the LDAP server and verifies the user, you’ll see a “Connection Successful” message. - Review the Output:
Most plugins will show detailed logs — including successful authentication, user attributes fetched, and group memberships. If the test fails, review the error message for misconfigured parameters or network issues. - Save Settings and Enable Login:
Once the test passes, save the configuration. You can now allow LDAP users to log in to your WordPress site using their directory credentials.