in reply to Re: Error with Dancer2::Plugin::Auth::ActiveDirectory
in thread Error with Dancer2::Plugin::Auth::ActiveDirectory

More debugging... What's "wrong with the search" is the DN sent to Net::LDAP::search is wrong. I made two changes: Auth::ActiveDirectory Line 108:
$self->{base} = qq/$self->{principal}/ unless $self->{base};
Auth::ActiveDirectory Line 129::
my $result = $self->_search_users( "sAMAccountName=$username" );
... and now everything works quite well.