i have a novell sever which i have been auththincating with ldap fine untill the nw admin decided he would secure it and now i cant get it to work what do i need to do to get it to work. i am running apache 2 on windows and on redhat both with php 4.3.4 and i am trying to connect to a novell 6.1 server(that all i know about the novell server)
thanks for any assantance.
php ldap ssl novell
Moderator: General Moderators
here is the code i am using
and the error i get is
Code: Select all
<?php
$ldaphost = "ldaps://10.60.8.48"; // have tryed "ldaps://curric.aphs.sa.edu.au" and with out the ldaps://
$ldapport = 636;
$ldapUsername = "********";
$ldapPassword = "******";
echo $ldaphost;
$ds = ldap_connect($ldaphost, $ldapport);
if(!ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3)){
print "Could not set LDAPv3";
}
else {
// now we need to bind to the ldap server
$bth = ldap_bind($ds, $ldapUsername, $ldapPassword);
//make your query
}
?>Warning: ldap_bind(): Unable to bind to server: Can't contact LDAP server in C:\website\techsupportmark2\temp.php on line 15