doubi1797 2013-09-19 14:45
浏览 37
已采纳

php中的Ldap身份验证不适用于zend框架工作

Like normal, $ds= ldap_connect($host,$port) is connecting to my server, but I cannot bind the username and password to my ldap server. I tried binding with ldap_bind($ds,$user,$pwd).

I also tried with ldap_bind($ds,$user.$domainName,$pwd).

Then, my client told me that their Ldap server had a server.username ='INHY_PSB' and server.password = 'some_password'.

This kind of ldap connections are only possible with zend_php class. Now I cannot move my whole project to zend frame work. Is there any way to connect to ldap using zend classes? Please help me to figure out this..

This code was taken from Zend frame work website3

  • 写回答

1条回答 默认 最新

  • dongwh1992 2013-09-26 11:48
    关注

    There are lot of things i learned in Zend framework 1.12 full package

    I will simply post my code how i made it work :)

    my code file link, you can download here download and redistribute :)

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

报告相同问题?

悬赏问题

  • ¥15 vhdl+MODELSIM
  • ¥20 simulink中怎么使用solve函数?
  • ¥30 dspbuilder中使用signalcompiler时报错Error during compilation: Fitter failed,求解决办法
  • ¥15 gwas 分析-数据质控之过滤稀有突变中出现的问题
  • ¥15 没有注册类 (异常来自 HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
  • ¥15 知识蒸馏实战博客问题
  • ¥15 用PLC设计纸袋糊底机送料系统
  • ¥15 simulink仿真中dtc控制永磁同步电机如何控制开关频率
  • ¥15 用C语言输入方程怎么
  • ¥15 网站显示不安全连接问题