| … | |
… | |
| 30 | debug("LDAP module is doing the password checking.\n"); |
30 | debug("LDAP module is doing the password checking.\n"); |
| 31 | |
31 | |
| 32 | # check against LDAP server |
32 | # check against LDAP server |
| 33 | return 1 if $self->ldap_authen_uid($userID, $possibleClearPassword); |
33 | return 1 if $self->ldap_authen_uid($userID, $possibleClearPassword); |
| 34 | |
34 | |
| 35 | return 0 if ($userID !~ /admin/); |
35 | #return 0 if ($userID !~ /admin/); |
| 36 | |
36 | |
| 37 | # optional: fail over to superclass checkPassword |
37 | # optional: fail over to superclass checkPassword |
| 38 | if ($failover) { |
38 | if ($failover) { |
| 39 | $self->write_log_entry("AUTH LDAP: authentication failed, deferring to superclass"); |
39 | $self->write_log_entry("AUTH LDAP: authentication failed, deferring to superclass"); |
| 40 | return $self->SUPER::checkPassword($userID, $possibleClearPassword); |
40 | return $self->SUPER::checkPassword($userID, $possibleClearPassword); |