@@ -, +, @@ --- C4/Auth_with_shibboleth.pm | 2 +- t/Auth_with_shibboleth.t | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) --- a/C4/Auth_with_shibboleth.pm +++ a/C4/Auth_with_shibboleth.pm @@ -116,7 +116,7 @@ sub checkpw_shib { sub _autocreate { my ( $config, $match ) = @_; - my %borrower = ( shibbolethMatchField => $match ); + my %borrower = ( $config->{matchpoint} => $match ); while ( my ( $key, $entry ) = each %{$config->{'mapping'}} ) { $borrower{$key} = ( $entry->{'is'} && $ENV{ $entry->{'is'} } ) || $entry->{'content'} || ''; --- a/t/Auth_with_shibboleth.t +++ a/t/Auth_with_shibboleth.t @@ -97,7 +97,8 @@ sub reset_config { ############################################################## # Can module load -use_ok('C4::Auth_with_shibboleth'); +use C4::Auth_with_shibboleth; +require_ok('C4::Auth_with_shibboleth'); $C4::Auth_with_shibboleth::debug = '0'; # Subroutine tests --