环境为Apache1.3.27/PHP4.3.8   Windows ActiveDirectory

解决方案 »

  1.   

    需求
    You will need to get and compile LDAP client libraries from either the University of Michigan ldap-3.3 package or the Netscape Directory SDK 3.0 to compile PHP with LDAP support. 安装
    LDAP support in PHP is not enabled by default. You will need to use the --with-ldap configuration option when compiling PHP to enable LDAP support. 运行时配置
    这些函数的行为受到全局配置文件 php.ini 的影响。
    表格 1. LDAP configuration optionsName Default Changeable 
    ldap.max_links "-1" PHP_INI_SYSTEM For further details and definition of the PHP_INI_* constants see ini_set(). “LDAP support in PHP is not enabled by default.”
    不用多说了吧?
      

  2.   

    按你们的意思,我在php.ini文件里面把extension中的php_ladp.dll的“;”去掉了,可系统提示无法打到"c:\ph4p\extensions\php_ldap.dll",可该路径下面php_ldap.dll确实存在?另外,我在php.ini文件中,把extension.dir设为"./",并将与php_ldap.dll相关的dll复制到winnt\system和winnt\system32的目录下面,可系统提示无法找到"./php_ldap.dll"请问各位如何解决这样的问题谢谢楼上的回复!
      

  3.   

    谢谢楼上的回复!
    我刚接触PHP,可以再讲得仔细些吗?您所指的需要外部库是否也意为在php.ini文件中将extension=php_ldap.dll加载进去?
    我这样做了,可出现错误提示(如上)可以怎么解决呢?
      

  4.   

    1、
    php.ini
    extension_dir=c:/php4/extensions
    extension=php_ladp.dll2、
    拷贝c:\php4\dlls下的libeay32.dll 和 ssleay32.dll 到c;\winnt\system32当然你不要忘记启动ladp服务