LDAP and IIS 6

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I am trying to get my certs and LDAP to work for SASL external 
authentication.  So far, no luck.  My error message and code follow.  Some 
of the documentation for PHP suggests that there is only limited LDAP 
functionality included in the default extension (not SASL) and you must 
recompile to get everything.  Is this my problem?  Which is a problem since 
I don't have Visual Studio C++.  But knowing for sure that I haven't done a 
silly typo of some kind would be a good start.  A friend is running similar 
code with success using the same certificates.  So, I don't think it is 
them.

This is my first foray into authenticated links so your help is greatly 
appreciated.

Diana



[12-Mar-2007 10:08:23] PHP Warning:  ldap_start_tls() [<a 
href='function.ldap-start-tls'>function.ldap-start-tls</a>]: Unable to start 
TLS: Connect error in

......

# SASL EXTERNAL authentication config
$tls_cacert="ca.crt";
$tls_cert=website.crt";
$tls_key="website.key";

putenv("LDAPTLS_CACERT=$tls_cacert");
putenv("LDAPTLS_CERT=$tls_cert");
putenv("LDAPTLS_KEY=$tls_key");

# LDAPv3 is required
$r = ldap_set_option(NULL, LDAP_OPT_PROTOCOL_VERSION, 3);

$d = ldap_connect($host);

if (!$d)
 exit(0);

$r = ldap_start_tls($d);

-- 
-------------------------------------------------------------
Diana Sartorius   dsartori@xxxxxxxxxxxxxxxx   206.543.7263
227 Hall Health Center   Box 354400   U of WA
Seattle, WA 98195-4400

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux