From: Ethan T. <eth...@ya...> - 2002-03-27 17:11:02
|
I'm trying to use Simon Wilkinson's perl-cyrus-sasl package to connect to AD by GSSAPI. A minor error is that line 29 of GSSAPI.pm has use vars qw(@ISA, $VERSION); instead of use vars qw(@ISA $VERSION); but after fixing that, I still get generic failure at /usr/lib/perl5/site_perl/5.6.0/Net/LDAP.pm line 238 when I try my script. Here is my code: use Authen::SASL; use Net::LDAP qw(:all); $sasl = Authen::SASL->new( 'GSSAPI', password => $pass, service => 'ldap', user => $user, fqdn => $server); $ldapobj = Net::LDAP->new($ldap_server) || die "LDAP error: $@\n"; $ldapmsg = $ldapobj->bind( "dc=hillsdale,dc=edu,ou=$ou,cn=$user", sasl => $sasl, version => 3); I'd be really grateful for any hint about what I'm doing wrong and for any tips about using perl to read & write to Active Directory. ejt __________________________________________________ Do You Yahoo!? Yahoo! Movies - coverage of the 74th Academy Awards® http://movies.yahoo.com/ |