Hi Marus,

trying to add an LDAP group to the team poduced the following entry in the 
log file
Sorry, being a new to ruby this all is new to me.

Frank

# Logfile created on Thu Apr 04 13:06:11 +0200 2013
NoMethodError (undefined method `empty?' for nil:NilClass):
  app/models/ldap_group.rb:54:in `validate_ldap_dns'
  app/models/ldap_group.rb:46:in `each'
  app/models/ldap_group.rb:46:in `validate_ldap_dns'
  lib/gitorious/authorization/ldap/connection.rb:33:in `bind_as'
  app/models/ldap_group.rb:42:in `validate_ldap_dns'
  
vendor/bundle/ruby/1.8/gems/activesupport-2.3.18/lib/active_support/callbacks.rb:178:in
 
`send'
  
vendor/bundle/ruby/1.8/gems/activesupport-2.3.18/lib/active_support/callbacks.rb:178:in
 
`evaluate_method'
  
vendor/bundle/ruby/1.8/gems/activesupport-2.3.18/lib/active_support/callbacks.rb:166:in
 
`call'
  
vendor/bundle/ruby/1.8/gems/activesupport-2.3.18/lib/active_support/callbacks.rb:90:in
 
`run'
  
vendor/bundle/ruby/1.8/gems/activesupport-2.3.18/lib/active_support/callbacks.rb:90:in
 
`each'
  
vendor/bundle/ruby/1.8/gems/activesupport-2.3.18/lib/active_support/callbacks.rb:90:in
 
`send'
  
vendor/bundle/ruby/1.8/gems/activesupport-2.3.18/lib/active_support/callbacks.rb:90:in
 
`run'
  
vendor/bundle/ruby/1.8/gems/activesupport-2.3.18/lib/active_support/callbacks.rb:276:in
 
`run_callbacks'
  
vendor/bundle/ruby/1.8/gems/activerecord-2.3.18/lib/active_record/validations.rb:1109:in
 
`valid_without_callbacks?'
  
vendor/bundle/ruby/1.8/gems/activerecord-2.3.18/lib/active_record/callbacks.rb:315:in
 
`valid?'
  
vendor/bundle/ruby/1.8/gems/activerecord-2.3.18/lib/active_record/validations.rb:1098:in
 
`save_without_dirty!'
  
vendor/bundle/ruby/1.8/gems/activerecord-2.3.18/lib/active_record/dirty.rb:87:in
 
`save_without_transactions!'
  
vendor/bundle/ruby/1.8/gems/activerecord-2.3.18/lib/active_record/transactions.rb:200:in
 
`save!'
  
vendor/bundle/ruby/1.8/gems/activerecord-2.3.18/lib/active_record/connection_adapters/abstract/database_statements.rb:136:in
 
`transaction_without_callback'
  
vendor/bundle/ruby/1.8/gems/after_commit-1.0.11/lib/after_commit/connection_adapters.rb:14:in
 
`transaction'
  
vendor/bundle/ruby/1.8/gems/activerecord-2.3.18/lib/active_record/transactions.rb:182:in
 
`transaction'
  
vendor/bundle/ruby/1.8/gems/activerecord-2.3.18/lib/active_record/transactions.rb:200:in
 
`save!'
  
vendor/bundle/ruby/1.8/gems/activerecord-2.3.18/lib/active_record/transactions.rb:208:in
 
`rollback_active_record_state!'
  
vendor/bundle/ruby/1.8/gems/activerecord-2.3.18/lib/active_record/transactions.rb:200:in
 
`save!'
  app/models/finders/ldap_group_finder.rb:37:in `create_group'
  
vendor/bundle/ruby/1.8/gems/activerecord-2.3.18/lib/active_record/connection_adapters/abstract/database_statements.rb:136:in
 
`transaction_without_callback'
  
vendor/bundle/ruby/1.8/gems/after_commit-1.0.11/lib/after_commit/connection_adapters.rb:14:in
 
`transaction'
  
vendor/bundle/ruby/1.8/gems/activerecord-2.3.18/lib/active_record/transactions.rb:182:in
 
`transaction'
  
vendor/bundle/ruby/1.8/gems/activerecord-2.3.18/lib/active_record/transactions.rb:188:in
 
`transaction'
  app/models/finders/ldap_group_finder.rb:35:in `create_group'
  app/models/team.rb:81:in `create_group'
  app/controllers/groups_controller.rb:60:in `create'
  
vendor/bundle/ruby/1.8/gems/actionpack-2.3.18/lib/action_controller/base.rb:1333:in
 
`send'
  
vendor/bundle/ruby/1.8/gems/actionpack-2.3.18/lib/action_controller/base.rb:1333:in
 
`perform_action_without_filters'
  
vendor/bundle/ruby/1.8/gems/actionpack-2.3.18/lib/action_controller/filters.rb:617:in
 
`call_filters'
  
vendor/bundle/ruby/1.8/gems/actionpack-2.3.18/lib/action_controller/filters.rb:610:in
 
`perform_action_without_benchmark'
  
vendor/bundle/ruby/1.8/gems/actionpack-2.3.18/lib/action_controller/benchmarking.rb:68:in
 
`perform_action_without_rescue'
  
vendor/bundle/ruby/1.8/gems/activesupport-2.3.18/lib/active_support/core_ext/benchmark.rb:17:in
 
`ms'
  /usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
  
vendor/bundle/ruby/1.8/gems/activesupport-2.3.18/lib/active_support/core_ext/benchmark.rb:17:in
 
`ms'
  
vendor/bundle/ruby/1.8/gems/actionpack-2.3.18/lib/action_controller/benchmarking.rb:68:in
 
`perform_action_without_rescue'
  
vendor/bundle/ruby/1.8/gems/actionpack-2.3.18/lib/action_controller/rescue.rb:160:in
 
`perform_action_without_flash'
  
vendor/bundle/ruby/1.8/gems/actionpack-2.3.18/lib/action_controller/flash.rb:151:in
 
`perform_action'
  
vendor/bundle/ruby/1.8/gems/actionpack-2.3.18/lib/action_controller/base.rb:532:in
 
`send'
  
vendor/bundle/ruby/1.8/gems/actionpack-2.3.18/lib/action_controller/base.rb:532:in
 
`process_without_filters'
  
vendor/bundle/ruby/1.8/gems/actionpack-2.3.18/lib/action_controller/filters.rb:606:in
 
`process'
  
vendor/bundle/ruby/1.8/gems/actionpack-2.3.18/lib/action_controller/base.rb:391:in
 
`process'
  
vendor/bundle/ruby/1.8/gems/actionpack-2.3.18/lib/action_controller/base.rb:386:in
 
`call'
  
vendor/bundle/ruby/1.8/gems/actionpack-2.3.18/lib/action_controller/routing/route_set.rb:438:in
 
`call'
  
vendor/bundle/ruby/1.8/gems/actionpack-2.3.18/lib/action_controller/dispatcher.rb:87:in
 
`dispatch'
  
vendor/bundle/ruby/1.8/gems/actionpack-2.3.18/lib/action_controller/dispatcher.rb:121:in
 
`_call'
  
vendor/bundle/ruby/1.8/gems/actionpack-2.3.18/lib/action_controller/dispatcher.rb:130:in
 
`build_middleware_stack'
  
vendor/bundle/ruby/1.8/gems/activerecord-2.3.18/lib/active_record/query_cache.rb:29:in
 
`call'
  
vendor/bundle/ruby/1.8/gems/activerecord-2.3.18/lib/active_record/query_cache.rb:29:in
 
`call'
  
vendor/bundle/ruby/1.8/gems/activerecord-2.3.18/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in
 
`cache'
  
vendor/bundle/ruby/1.8/gems/activerecord-2.3.18/lib/active_record/query_cache.rb:9:in
 
`cache'
  
vendor/bundle/ruby/1.8/gems/activerecord-2.3.18/lib/active_record/query_cache.rb:28:in
 
`call'
  
vendor/bundle/ruby/1.8/gems/activerecord-2.3.18/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in
 
`call'
  
vendor/bundle/ruby/1.8/gems/actionpack-2.3.18/lib/action_controller/string_coercion.rb:25:in
 
`call'
  vendor/bundle/ruby/1.8/gems/rack-1.1.6/lib/rack/head.rb:9:in `call'
  vendor/bundle/ruby/1.8/gems/rack-1.1.6/lib/rack/methodoverride.rb:24:in 
`call'
  
vendor/bundle/ruby/1.8/gems/actionpack-2.3.18/lib/action_controller/params_parser.rb:15:in
 
`call'
  vendor/bundle/ruby/1.8/gems/rails-2.3.18/lib/rails/rack/metal.rb:47:in 
`call'
  
vendor/bundle/ruby/1.8/gems/actionpack-2.3.18/lib/action_controller/session/cookie_store.rb:99:in
 
`call'
  
vendor/bundle/ruby/1.8/gems/activesupport-2.3.18/lib/active_support/cache/strategy/local_cache.rb:25:in
 
`call'
  
vendor/bundle/ruby/1.8/gems/actionpack-2.3.18/lib/action_controller/failsafe.rb:26:in
 
`call'
  vendor/bundle/ruby/1.8/gems/rack-1.1.6/lib/rack/lock.rb:11:in `call'
  vendor/bundle/ruby/1.8/gems/rack-1.1.6/lib/rack/lock.rb:11:in 
`synchronize'
  vendor/bundle/ruby/1.8/gems/rack-1.1.6/lib/rack/lock.rb:11:in `call'
  
vendor/bundle/ruby/1.8/gems/actionpack-2.3.18/lib/action_controller/dispatcher.rb:106:in
 
`call'
  vendor/bundle/ruby/1.8/gems/rails-2.3.18/lib/rails/rack/static.rb:31:in 
`call'
  vendor/bundle/ruby/1.8/gems/rack-1.1.6/lib/rack/urlmap.rb:47:in `call'
  vendor/bundle/ruby/1.8/gems/rack-1.1.6/lib/rack/urlmap.rb:41:in `each'
  vendor/bundle/ruby/1.8/gems/rack-1.1.6/lib/rack/urlmap.rb:41:in `call'
  
vendor/bundle/ruby/1.8/gems/unicorn-4.3.1/lib/unicorn/http_server.rb:531:in 
`process_client'
  
vendor/bundle/ruby/1.8/gems/unicorn-4.3.1/lib/unicorn/http_server.rb:606:in 
`worker_loop'
  
vendor/bundle/ruby/1.8/gems/unicorn-4.3.1/lib/unicorn/http_server.rb:487:in 
`spawn_missing_workers'
  
vendor/bundle/ruby/1.8/gems/unicorn-4.3.1/lib/unicorn/http_server.rb:137:in 
`start'
  vendor/bundle/ruby/1.8/gems/unicorn-4.3.1/bin/unicorn_rails:209
  bin/unicorn:4:in `load'
  bin/unicorn:4
  bin/setup.rb:15:in `run_with_gitorious_environment'
  bin/unicorn:3



On Tuesday, April 2, 2013 2:37:06 PM UTC+2, Marius Mårnes Mathiesen wrote:
>
>
> frank...@gmail.com <javascript:> writes: 
>
> > Hi 
> > 
> > setup LDAP authentication and authorizatin. 
> > I can successfully login with there LDAP account. 
> > However, I cannot create a team for the LDAP groups. 
> > In gitorious.yml I have configured  use_ldap_authorization: true 
> > In authentication.yml  I have configured 
> > 
> >     - adapter: Gitorious::Authentication::LDAPAuthentication 
> >       host: ad.mycompany.com 
> >       port: 636 
> >       base_dn: DC=mycompany,DC=com 
> >       group_search_dn: OU=Security Groups,OU=All Groups 
> >       login_attribute: sAMAccountName 
> >       bind_user: 
> >          username: ldapuser 
> >          password: geheim 
> >       membership_attribute_name: memberof 
> >       members_attribute_name: member 
> > 
> > Now I try to create a team for the AD group 
> > CN=R&D,OU=Security Groups,OU=All Groups,DC=mycompany,DC=com 
> > 
> > The admin page ask me to enter a DN 
> > Enter LDAP group DNs, one per line 
> > *Note:* entries should be relative to the LDAP base DN 
> > 
> > I tried different versions of the group name but always ended up with 
> Sorry 
> > something went wrong. 
> > I had no luck, with 
> > 
> >    - CN=R&D,OU=Security Groups,OU=All Groups 
> >    - CN=R&D 
> >    - CN=R&D,OU=Security Groups,OU=All Groups,DC=mycompany,DC=com 
> >    - R&D 
> > 
> > I also tried groups without special characters 
> > 
> > 
> > Any hints what went worng or where to look for mor information. 
>
> Yes, log/production.log should have some details about what failed. 
>
> Cheers, 
> - Marius 
>

-- 
-- 
To post to this group, send email to gitorious@googlegroups.com
To unsubscribe from this group, send email to
gitorious+unsubscr...@googlegroups.com

--- 
You received this message because you are subscribed to the Google Groups 
"Gitorious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to gitorious+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to