Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

using Authen::SASL::GSSAPI

by bhikshu (Initiate)
on Feb 22, 2012 at 17:08 UTC ( #955584=perlquestion: print w/ replies, xml ) Need Help??
bhikshu has asked for the wisdom of the Perl Monks concerning the following question:

Hello, I am trying to use Net::LDAP using GSSAPI mechanism. I am doing this on Windows 2008 R2 64 bit server using perl x86 version. I used perl cpan install command to install Net::LDAP and related modules. No matter what I try I always get "LDAP_LOCAL_ERROR". See the code below. Any idea what am I doing wrong?
my $sasl = Authen::SASL->new( mechanism => 'GSSAPI' , debug => 8); my $ldap; eval { # Login to LDAP print "Connecting to LDAP..."; $ldap = Net::LDAP->new($ldap_server) or die $@; my $dse = $ldap->root_dse(); $dse->supported_sasl_mechanism ( 'GSSAPI' ) || die "\n sorry, $ldap +_server does not support GSSAPI...\n";; print "Binding... "; print Dumper($sasl); $_ = $ldap->bind( sasl => $sasl ) or die $@; }; if ($@) { chomp $@; die "\nBind error : $@", "\nDetailed SASL error: ", $sasl->error, "\nTerminated"; } print $_->error_text(); #print $sasl->error;
Thanks, -Neel.

Comment on using Authen::SASL::GSSAPI
Download Code
Re: using Authen::SASL::GSSAPI
by Anonymous Monk on Feb 22, 2012 at 23:22 UTC
    Turn on debugging, you'll get more information
      In case you have not noticed I have turned on debugging "debug => 8". But, I could not get any more information than string for LDAP_LOCAL_ERROR. Did you mean any other debugging?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://955584]
Approved by ww
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (10)
As of 2015-07-07 13:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (88 votes), past polls