Skip to content

Commit

Permalink
cosmetic changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ikedas committed Dec 9, 2018
1 parent 86d3b2b commit b37b32a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 17 deletions.
18 changes: 9 additions & 9 deletions src/lib/Conf.pm
Original file line number Diff line number Diff line change
Expand Up @@ -933,15 +933,15 @@ sub _load_auth {
'suffix' => '.+',
'bind_dn' => '.+',
'bind_password' => '.+',
'get_dn_by_uid_filter' => '.+',
'get_dn_by_email_filter' => '.+',
'email_attribute' => Sympa::Regexps::ldap_attrdesc(),
'alternative_email_attribute' => '.*', # Obsoleted
'scope' => 'base|one|sub',
'authentication_info_url' => 'http(s)?:/.*',
'use_tls' => 'starttls|ldaps|none',
'use_ssl' => '1', # Obsoleted
'use_start_tls' => '1', # Obsoleted
'get_dn_by_uid_filter' => '.+',
'get_dn_by_email_filter' => '.+',
'email_attribute' => Sympa::Regexps::ldap_attrdesc(),
'alternative_email_attribute' => '.*', # Obsoleted
'scope' => 'base|one|sub',
'authentication_info_url' => 'http(s)?:/.*',
'use_tls' => 'starttls|ldaps|none',
'use_ssl' => '1', # Obsoleted
'use_start_tls' => '1', # Obsoleted
'ssl_version' => 'sslv2/3|sslv2|sslv3|tlsv1|tlsv1_[123]',
'ssl_ciphers' => '[\w:]+',
'ssl_cert' => '.+',
Expand Down
14 changes: 6 additions & 8 deletions src/lib/Sympa/WWW/Auth.pm
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ sub check_auth {
$user = {'email' => $canonic};
}
return {
'user' => $user,
'auth' => 'ldap',
'user' => $user,
'auth' => 'ldap',
};

} else {
Expand Down Expand Up @@ -160,8 +160,8 @@ sub authentication {
Sympa::User::update_global_user($email,
{wrong_login_count => 0});
return {
'user' => $user,
'auth' => 'classic',
'user' => $user,
'auth' => 'classic',
};
}
} elsif ($auth_service->{'auth_type'} eq 'ldap') {
Expand All @@ -175,8 +175,8 @@ sub authentication {
Sympa::User::update_global_user($canonic,
{wrong_login_count => 0});
return {
'user' => $user,
'auth' => 'ldap',
'user' => $user,
'auth' => 'ldap',
};
}
}
Expand All @@ -190,8 +190,6 @@ sub authentication {
unless $ENV{'SYMPA_SOAP'};
$log->syslog('err', 'Incorrect password for user %s', $email);

my $param; #FIXME FIXME: not used.
$param->{'init_email'} = $email;
return undef;
}

Expand Down

0 comments on commit b37b32a

Please sign in to comment.