Using LDAPS Authentication

I am using CMS ez publish open source LDAPS authentication. I made all the configuration settings that I support. But I still can't get LDAPS authentication to work!

during debugging, I found that ldap_connect fails and sometimes returns resource # 80 or resource ID # 75. Is there any documentation that describes what these resource IDs mean? Even the php documentation for ldap_connect does not contain information about these resource identifiers. Or is there something else I could do wrong?

+4
source share
2 answers

PHP resource guide. ldap_connect() seems to be successful. If it fails, it returns FALSE .

+3
source

The most common SSL issue is the power of attorney for the certificate used in the connection.

If your SSL certificate of an SSL LDAP server is not signed by a well-known CA or, rather, a certification authority known by your SSL library, then it will usually fail. To solve this problem, you must make your SSL library a trusted CA.

Windows (IE), Firefox, Safari, etc. have their own key storage mechanisms, and you can import CA trusted root certificates into them. Then all the certificates signed by this CA are now trustworthy.

Java uses JKS repository files, old Netscape uses cert.db7 or cert.db8 files. I don’t know what PHP uses, however you should understand this aspect.

+1
source

All Articles