This topic is locked

LDAP test authentication failure

4/3/2025 1:11:27 PM
PHPRunner General questions
G
Gary.Beam author

I'm trying to authenticate a basic LDAP login on the test LDAP server: 'ldap.forumsys.com'. I can easily do this on my Windows Dev machine, and my Linux Production Server with the following php script:
$ldap_dn = "cn=read-only-admin,dc=example,dc=com";
$ldap_uid = "tesla";
$ldap_password ="password";

$ldap_con = ldap_connect("ldap.forumsys.com");
ldap_set_option($ldap_con, LDAP_OPT_PROTOCOL_VERSION, 3);

if(ldap_bind($ldap_con,$ldap_dn,$ldap_password))
echo "Authenticated";
else
echo "Invalid Credential";

I can't get Enterprise V11 to authenticate a LDAP login. I've tried from the runner test server, my Windows WAMP server, and my Linux VPS server. I'm not sure if I'm setting something wrong on the Security Active Directory page or if there is a problen with LDAP Active Directory support in phprunner???

my Active Directory page settings:
Enable AD authentication: checked
LDAP Server: ldap.forumsys.com (and various combinations of ldap://forumsys.com, and an IP address)
Domain name: ldap.forumsys.com (and forumsys.com)
Base DN: cn=read-only-admin,dc=example,dc=com (and uid=tesla,dc=example,dc=com)

If anyone has been able to authenticate on the 'ldap.forumsys.com' test server, please let me know how you did it.

Thank You