草庐IT

ldap_connect

全部标签

php - 通过 LDAP 验证当前 Windows 用户的凭据?

我们有一个使用WAMP(W表示Windows,P表示PHP)在Windows桌面上托管在内部网上的应用程序。我们需要实现一项新功能-每当用户访问我们的内部网站时,通过使用他/她的窗口登录凭据来验证用户。这里我缺乏实现它的一些基本概念-如何访问当前窗口登录PHP中的用户详细信息。有没有办法检测出当前用户是谁,并将该用户数据传递给我们的LDAP服务器进行验证? 最佳答案 看看这里:http://siphon9.net/loune/2007/10/simple-lightweight-ntlm-in-php/是1的一半认证。请注意,apa

PHP IIS7 MSSQL 调用未定义函数 sqlsrv_connect

我有MSSQLServer2008、MSWINDOWSSERVER2008RC2和PHP5.4php.info有行[PHP_PDO_SQLSRV_54_NTS]extension=php_pdo_sqlsrv_54_nts.dll[PHP_PDO_ODBC]extension=php_pdo_odbc.dll[PHP_SYBASE_CT]extension=php_sybase_ct.dll[PHP_SQLSRV_54_NTS]extension=php_sqlsrv_54_nts.dll在此处找到PHP信息http://89.111.180.28/index.php我看到带有扩展名p

php - Gearman 在 php 示例中抛出 GEARMAN_COULD_NOT_CONNECT

我在我的服务器上安装了gearmand1.1.5,并在启动服务器后尝试了安装提供的示例。它们工作得非常正确(echo示例有效,反向不按预期工作,但没有给出任何错误)。然后我使用pecl安装了php包装器。该版本是最后一个稳定版本(1.1.1)。显然我将扩展名添加到php.ini,我的php--info|grepgearman输出是:gearmangearmansupport=>enabledlibgearmanversion=>1.1.5PWD=>/root/gearman-1.1.1/examplesOLDPWD=>/root/gearman-1.1.1_SERVER["PWD"]=

PHP & IIS : LDAPS Connection for Password Change

我的目标是使用PHP和IIS通过Web界面更改ActiveDirectory中的密码。我一直在按照http://www.ashleyknowles.net/2011/07/iis-php-and-ldaps-with-active-directory/上的说明进行操作在遵循这些说明之前,我无法为LDAPS连接绑定(bind)到AD,但是在遵循这些说明之后,它似乎成功连接,但在我尝试更改时出现“服务器不愿执行”错误“unicodePwd”值。请注意,下面的代码将成功更改AD中用户的任何other值。encodePwd($newPassword));print_r($newEntry);i

php - ZF2 ldap分页

我在使用LDAP库和ActiveDirectory时遇到了一些问题。由于AD的限制,如果参数将返回超过1000个结果,我将无法使用LDAP库进行搜索。此外,似乎没有办法使用ZF2LDAP库对结果进行分页。我知道如何分页,但我宁愿使用ZF2内置方法(如果存在的话)。我是否遗漏了什么,或者我是否必须创建自己的方法来实现这一点?附言我查看了手册和代码,但看不到任何实现此目的的方法。 最佳答案 这就是我为解决这个问题所做的/***AnLDAPsearchroutineforfindinginformationandreturningpagi

php - 带有 LDAP 错误 : User authentication is temporarily unavailable 的 Dokuwiki

我正在尝试在我的本地计算机上使用LDAP设置Dokuwiki。Dokuwiki版本是2014-05-05“PonderStibbons”身份验证设置authtype:authldap插件Authldap(捆绑插件)设置plugin»authldap»server:localhostplugin»authldap»port:10389plugin»authldap»usertree:ou=People,o=sevenSeasplugin»authldap»grouptree:ou=Groups,o=sevenSeasplugin»authldap»userfilter:plugin»au

php - 通过 sqlsrv_connect() 连接到 mssql 数据库 - PHP

我正在尝试使用sqlsrv_connect()函数使用PHP连接到2005Microsoftsql数据库。唉,函数返回false,我不确定为什么。$myDB,"UID"=>$myUser,"PWD"=>$myPass);$conn=sqlsrv_connect($myServer,$connectionInfo);//returnsfalseif($conn===false){echo"failedconnection";}$sql="SELECTnameFROMusersWHEREname='admin'";$stmt=sqlsrv_query($conn,$sql);if(sqls

PHP Mailer 错误 : Message could not be sent. Mailer Error: SMTP connect() failed

这是我的代码:require'phpmailertesting/PHPMailerAutoload.php';$mail=newPHPMailer;//$mail->SMTPDebug=3;//Enableverbosedebugoutput$mail->isSMTP();//SetmailertouseSMTP$mail->Host='send.one.com';//SpecifymainandbackupSMTPservers$mail->SMTPAuth=true;//EnableSMTPauthentication$mail->Username='myemailhidden';

php - Windows 7 上的 Netbeans Xdebug "waiting for connection"WAMP

针对这个常见的Xdebug错误,我阅读了很多解决方案,但似乎并没有解决我的问题:netbeansshows“WaitingForConnection(netbeans-xdebug)”NetbeansnotconnectingwithxdebugonWamp:“showingwaitingforconnection”在phpinfo()中Xdebug似乎配置正确:下面是我的php.ini:zend_extension="c:/wamp/bin/php/php5.5.12/zend_ext/php_xdebug-2.2.5-5.5-vc11-x86_64.dll";[xdebug]xde

php - <b> fatal error </b> : Uncaught exception 'Exception' with message 'Failed to connect to api.twitter.com port 443: Connection timed out'

我正在开发一个Codeigniter项目,在该项目中我使用twitterapi库来获取twitter数据。在我更改服务器之前它工作得很好,但是在更改服务器之后它产生了以下错误。我不知道问题所在。Fatalerror:Uncaughtexception'Exception'withmessage'Failedtoconnecttoapi.twitter.comport443:Connectiontimedout'in/my/project/path/myProject/application/ws/libraries/TwitterAPIExchange.php:297Stacktrac