lib/castronaut/adapters/ldap/user.rb in relevance-castronaut-0.6.1 vs lib/castronaut/adapters/ldap/user.rb in relevance-castronaut-0.7.4
- old
+ new
@@ -27,10 +27,10 @@
connection.authenticate("#{prefix}#{username}, #{base}", password)
if connection.bind
return Castronaut::AuthenticationResult.new(username, nil)
else
Castronaut.config.logger.info "#{self} - Unable to authenticate username #{username} because #{connection.get_operation_result.message} : code #{connection.get_operation_result.code}"
- return Castronaut::AuthenticationResult.new(username, "Unable to authenticate the username #{username}")
+ return Castronaut::AuthenticationResult.new(username, "Unable to authenticate")
end
end
end