Hello,
   I have gitorious installed on my new ubuntu box.   I have configured 
LDAP for authentication and the scripts/test_ldap_connection works.

When I try and login to the gitorious ui, I get an error.

The log/production.log shows an exception happening.


The error has to do with a call inside of 
lib/gitorious/authentication/ldap_authentication.rb

auto_register's call to

        result = connection.search(:base => base_dn, :filter => 
username_filter(username),
          :attributes => attribute_mapping.keys, :return_result => true)

result is nil

the next call is a dereference to result.size which throws the error.




NoMethodError (undefined method `size' for nil:NilClass):
  lib/gitorious/authentication/ldap_authentication.rb:130:in `auto_register'
  lib/gitorious/authentication/ldap_authentication.rb:102:in `authenticate'
  lib/gitorious/authentication.rb:25:in `authenticate'
  lib/gitorious/authentication.rb:24:in `each'
  lib/gitorious/authentication.rb:24:in `authenticate'
  app/controllers/sessions_controller.rb:106:in `password_authentication'
  app/controllers/sessions_controller.rb:42:in `create'
  vendor/rails/actionpack/lib/action_controller/base.rb:1331:in `send'
  vendor/rails/actionpack/lib/action_controller/base.rb:1331:in 
`perform_action_without_filters'
  vendor/rails/actionpack/lib/action_controller/filters.rb:617:in 
`call_filters'
  vendor/rails/actionpack/lib/action_controller/filters.rb:610:in 
`perform_action_without_benchmark'
  vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in 
`perform_action_without_rescue'
  vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:17:in 
`ms'
  /usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
  vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:17:in 
`ms'
  vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in 
`perform_action_without_rescue'
  vendor/rails/actionpack/lib/action_controller/rescue.rb:160:in 
`perform_action_without_flash'
  vendor/rails/actionpack/lib/action_controller/flash.rb:146:in 
`perform_action'
  vendor/rails/actionpack/lib/action_controller/base.rb:532:in `send'
  vendor/rails/actionpack/lib/action_controller/base.rb:532:in 
`process_without_filters'
  vendor/rails/actionpack/lib/action_controller/filters.rb:606:in `process'
  vendor/rails/actionpack/lib/action_controller/base.rb:391:in `process'
  vendor/rails/actionpack/lib/action_controller/base.rb:386:in `call'

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]

Reply via email to