This will prevent mismatches like the user entering "dscott" and the database
having the value "DScott" (in that we're going to force all of the Laurentian
user names in the database to lower case).
Signed-off-by: Dan Scott <dscott@laurentian.ca>
sub authenticate {
my ( $self, $args ) = @_;
+
+ # Convert the entire user name to lowercase
+ # This assumes that all of the user names in the database are lower case
+ $args->{'username'} = lc($args->{'username'});
my $username = $args->{'username'};
# Authenticate against LDAP based on the user portion of the email address