Click here to get back home

NET:LDAP start_tls does not work

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
NET:LDAP start_tls does not work Dick Cai 07-07-2004
Posted by Dick Cai on July 7, 2004, 12:19 pm
Please log in for more thread options
I am trying to use Perl LDAP script to change user's password on
Windows Active Directory based domain controller. I got a digital
certificate generated from Windows in .cer or DER format and I
converted it to PEM using openssl.

Since Windows AD requires secure connection. I have to do start_tls
call. However, I don't think I successfully got the handle object
back. Any reason for that?

My script works fine to search Windows AD well. When I do search, it
is not using SSL. But to change password, you have to use SSL.
Search does not have to.

Thanks in advance.

Dick Cai

my $cafile = "/usr/local/apache/cgi-bin/test/cert2.pem";
my $result = $ldap->start_tls(
verify => 'require',
cafile=>"$cafile"
) or die "$@";

print "start_tls result -", $result->is_error;
print "n";
if($result->is_error){
LDAPerror("start_tls",$result)
}


Return code: 1 Message: LDAP_OPERATIONS_ERROR :Server encountered an
internal error
MessageID: 1 DN:


Similar ThreadsPosted
Understaing NET::LDAP August 4, 2004, 10:47 am
Installation LDAP April 29, 2005, 6:27 am
async Net::LDAP October 10, 2005, 9:06 pm
Net::LDAP::Entry help... September 25, 2006, 10:11 pm
Problem installing Net::LDAP September 22, 2005, 12:54 pm
Net::LDAP compare question June 16, 2006, 10:08 am
OLE- LDAP - uSNChanged - Returns Unknown OLE Object July 21, 2004, 1:35 pm
Net::LDAP makefile generation fails on ActiveState Perl 5.8.8 June 23, 2006, 2:57 am
win32::api doesn't work? January 18, 2005, 11:47 pm
Compress::Bzip2 needs work April 20, 2005, 9:41 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap