in reply to Error with Dancer2::Plugin::Auth::ActiveDirectory
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!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Error with Dancer2::Plugin::Auth::ActiveDirectory
by TieUpYourCamel (Scribe) on Jan 17, 2020 at 18:12 UTC | |
|
Re^2: Error with Dancer2::Plugin::Auth::ActiveDirectory
by TieUpYourCamel (Scribe) on Jan 20, 2020 at 19:08 UTC |