LDAP and PHP connection failure

后端 未结 7 853
予麋鹿
予麋鹿 2020-12-15 21:25

I am trying to connect to a secure LDAP server (using LDAPs) via PHP, but I am having problems with it. I get the following error

Warning: ldap_bind()

相关标签:
7条回答
  • 2020-12-15 21:49

    It appears to be a problem using SSL/TLS on some servers with recent PHP versions. Not sure why. You can refer to my post at: Problems with secure bind to Active Directory using PHP

    One of the more likely causes, is the cause from Stefan. To make sure that this is really the case, you can use:

    ldap_set_option(NULL, LDAP_OPT_DEBUG_LEVEL, 7);
    

    before your ldap_connect. This will print a more sane error message to log (typically ssl cert not valid, ref. Stefan Gehrig)

    0 讨论(0)
提交回复
热议问题