Hi, I have not used this plugin, but reading the source I see that a call to authenticate() wraps a call to Auth::ActiveDirectory::authenticate(), which does:
... however the code in the Dancer2 plugin does:my $message = $self->ldap->bind( $user, password => $password ); if ( _v_is_error( $message, $user ) ) { $self->error_message( _parse_error_message($message) ); return; }
my $user = _connect_to_ad($dsl)->authenticate( $name, $pass ); return $user if $user->{error};
Without digging further (e.g. by reading the source of the distro's test files, if any), I would suggest adding debugging by replacing line 138 with:
my $AD = _connect_to_ad($dsl) or die "No AD connection!"; my $user = $AD->authenticate( $name, $pass ); die $AD->error_message if $AD->error_message; ...
Hope this helps!
In reply to Re: Error with Dancer2::Plugin::Auth::ActiveDirectory
by 1nickt
in thread Error with Dancer2::Plugin::Auth::ActiveDirectory
by TieUpYourCamel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |