dongshuzhuo5659 2018-06-12 15:44
浏览 94

LDAP - 服务器A - >服务器B - > LDAP

So I have a script on Server B that calls:


and successfully logs in. If I execute the file as: php ldap_test.php I have successful output and results.

Now, I need to execute this file from the outside (I know there is a security concern around this! No need to remind it). So I'd like to do (from Server A):


Which returns me that ldap_bind was unsuccessful (note, credentials are intentionally hard coded as of now).

I couldn't find any reason why this shouldn't be possible - and I'm quite curious, anyone has any idea?

  • 写回答

1条回答 默认 最新

  • dongwei3120 2018-06-14 18:25

    System specific ... httpd_can_connect_ldap (seen through getsebool -a | grep http | grep ldap for example) is off by default in CentOS.

    If one wants to enable, they can use setsebool to do that.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?



    • ¥15 关于#abap#的问题,请各位专家解答!
    • ¥20 内网通过公网访问外网问题
    • ¥15 怎么使请求通过cors
    • ¥15 WDM 驱动ACPI 相关疑问
    • ¥15 prism 跨窗体共享数据绑定 wpf
    • ¥15 hdl designer突然用不了系统的moduleware组件,请问有人遇到或者怎么解决吗?
    • ¥15 0基础计算机毕设,应该从哪开始?
    • ¥60 使用DKT40脑图划分ROI区域
    • ¥15 有偿解决C51单片机液晶屏12864显示问题
    • ¥15 IDEA构建失败?怎么搞