Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

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.

Replies are listed 'Best First'.
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?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://955584]
Approved by ww
and the monastery is silent...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2018-04-22 16:38 GMT
Find Nodes?
    Voting Booth?