@@ -21,7 +21,7 gem "rbpdf", "~> 1.18.6" | |||||
21 |
|
21 | |||
22 | # Optional gem for LDAP authentication |
|
22 | # Optional gem for LDAP authentication | |
23 | group :ldap do |
|
23 | group :ldap do | |
24 |
gem "net-ldap", "~> 0.1 |
|
24 | gem "net-ldap", "~> 0.12.0" | |
25 | end |
|
25 | end | |
26 |
|
26 | |||
27 | # Optional gem for OpenID authentication |
|
27 | # Optional gem for OpenID authentication |
@@ -105,7 +105,7 class AuthSourceLdap < AuthSource | |||||
105 | if filter.present? |
|
105 | if filter.present? | |
106 | Net::LDAP::Filter.construct(filter) |
|
106 | Net::LDAP::Filter.construct(filter) | |
107 | end |
|
107 | end | |
108 | rescue Net::LDAP::LdapError |
|
108 | rescue Net::LDAP::LdapError, Net::LDAP::FilterSyntaxInvalidError | |
109 | nil |
|
109 | nil | |
110 | end |
|
110 | end | |
111 |
|
111 |
General Comments 0
You need to be logged in to leave comments.
Login now