Re: [gitorious] Can't create LDAP team

2013-04-04 Thread frank . graf
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

Re: [gitorious] Can't create LDAP team

2013-04-04 Thread Marius Mårnes Mathiesen
Frank,
You should specify only the part of the LDAP group DN that is not part
of the group_search_dn: setting you specified.

So for the group CN=R&D,OU=Security Groups,OU=All
Groups,DC=mycompany,DC=com  you should specify:

CN=R&D

and possibly change the group_search_dn attribute to include the common
parts of any DN:

OU=Security Groups,OU=All Groups,DC=mycompany,DC=com

I'm a little puzzled by the error message you're getting (possibly a
bug), but try the above and let me know what happens.

Cheers,
- Marius

frank.g...@gmail.com writes:

> 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
> `pe

Re: [gitorious] Can't create LDAP team

2013-04-04 Thread frank . graf

>
> Thanks, now it is working 


the problem was the incomplete group_dn.
As soon as I entered the full DN it worked.


-- 
-- 
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.




[gitorious] Help with a zombie project.

2013-04-04 Thread frank . graf
Hi,

I deleted a team which still owned a project..
This project has become a zombie. I can still see it in the list of 
projects.
But if I click on the project name, I get an error.

How can I fix this?

I had read a suggestion using the console 
> p = Project.find_by_slug "" 
> p.destroy

This function no longer exists.

Is there a way to get rid of the project

Frank

-- 
-- 
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.




Re: [gitorious] Help with a zombie project.

2013-04-04 Thread Marius Mårnes Mathiesen

frank.g...@gmail.com writes:
> I had read a suggestion using the console
>> p = Project.find_by_slug ""
>> p.destroy
>
> This function no longer exists.

That should definitely exist, what happens when you run it?

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.