Hi All,
I have the following error, could somebody help me to understand why it is
happens?
This error appears while I'm trying to add a team with group from LDAP.
Gitorious::Authorization::LDAP::Connection::LdapError (Unable to connect to the
LDAP server on test.ldap.server:389. Are you sure the LDAP server is running?):
lib/gitorious/authorization/ldap/connection.rb:36:in `bind_as'
app/models/ldap_group.rb:42:in `validate_ldap_dns'
activesupport (2.3.18) lib/active_support/callbacks.rb:178:in `send'
activesupport (2.3.18) lib/active_support/callbacks.rb:178:in
`evaluate_method'
activesupport (2.3.18) lib/active_support/callbacks.rb:166:in `call'
activesupport (2.3.18) lib/active_support/callbacks.rb:90:in `run'
activesupport (2.3.18) lib/active_support/callbacks.rb:90:in `each'
activesupport (2.3.18) lib/active_support/callbacks.rb:90:in `send'
activesupport (2.3.18) lib/active_support/callbacks.rb:90:in `run'
activesupport (2.3.18) lib/active_support/callbacks.rb:276:in `run_callbacks'
activerecord (2.3.18) lib/active_record/validations.rb:1109:in
`valid_without_callbacks?'
activerecord (2.3.18) lib/active_record/callbacks.rb:315:in `valid?'
activerecord (2.3.18) lib/active_record/validations.rb:1098:in
`save_without_dirty!'
activerecord (2.3.18) lib/active_record/dirty.rb:87:in
`save_without_transactions!'
activerecord (2.3.18) lib/active_record/transactions.rb:200:in `save!'
activerecord (2.3.18)
lib/active_record/connection_adapters/abstract/database_statements.rb:136:in
`transaction_without_callback'
/opt/gito2/ruby/lib/ruby/gems/1.8/gems/after_commit-1.0.10/lib/after_commit/connection_adapters.rb:14:in
`transaction'
activerecord (2.3.18) lib/active_record/transactions.rb:182:in `transaction'
activerecord (2.3.18) lib/active_record/transactions.rb:200:in `save!'
activerecord (2.3.18) lib/active_record/transactions.rb:208:in
`rollback_active_record_state!'
activerecord (2.3.18) lib/active_record/transactions.rb:200:in `save!'
app/models/finders/ldap_group_finder.rb:37:in `create_group'
activerecord (2.3.18)
lib/active_record/connection_adapters/abstract/database_statements.rb:136:in
`transaction_without_callback'
/opt/gito2/ruby/lib/ruby/gems/1.8/gems/after_commit-1.0.10/lib/after_commit/connection_adapters.rb:14:in
`transaction'
activerecord (2.3.18) lib/active_record/transactions.rb:182:in `transaction'
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'
actionpack (2.3.18) lib/action_controller/base.rb:1333:in `send'
actionpack (2.3.18) lib/action_controller/base.rb:1333:in
`perform_action_without_filters'
actionpack (2.3.18) lib/action_controller/filters.rb:617:in `call_filters'
actionpack (2.3.18) lib/action_controller/filters.rb:610:in
`perform_action_without_benchmark'
actionpack (2.3.18) lib/action_controller/benchmarking.rb:68:in
`perform_action_without_rescue'
activesupport (2.3.18) lib/active_support/core_ext/benchmark.rb:17:in `ms'
/opt/gito2/ruby/lib/ruby/1.8/benchmark.rb:308:in `realtime'
activesupport (2.3.18) lib/active_support/core_ext/benchmark.rb:17:in `ms'
actionpack (2.3.18) lib/action_controller/benchmarking.rb:68:in
`perform_action_without_rescue'
actionpack (2.3.18) lib/action_controller/rescue.rb:160:in
`perform_action_without_flash'
actionpack (2.3.18) lib/action_controller/flash.rb:151:in `perform_action'
actionpack (2.3.18) lib/action_controller/base.rb:532:in `send'
actionpack (2.3.18) lib/action_controller/base.rb:532:in
`process_without_filters'
actionpack (2.3.18) lib/action_controller/filters.rb:606:in `process'
actionpack (2.3.18) lib/action_controller/base.rb:391:in `process'
actionpack (2.3.18) lib/action_controller/base.rb:386:in `call'
actionpack (2.3.18) lib/action_controller/routing/route_set.rb:438:in `call'
actionpack (2.3.18) lib/action_controller/dispatcher.rb:87:in `dispatch'
actionpack (2.3.18) lib/action_controller/dispatcher.rb:121:in `_call'
actionpack (2.3.18) lib/action_controller/dispatcher.rb:130:in
`build_middleware_stack'
activerecord (2.3.18) lib/active_record/query_cache.rb:29:in `call'
activerecord (2.3.18) lib/active_record/query_cache.rb:29:in `call'
activerecord (2.3.18)
lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
activerecord (2.3.18) lib/active_record/query_cache.rb:9:in `cache'
activerecord (2.3.18) lib/active_record/query_cache.rb:28:in `call'
activerecord (2.3.18)
lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
actionpack (2.3.18) lib/action_controller/string_coercion.rb:25:in `call'
rack (1.1.3) lib/rack/head.rb:9:in `call'
rack (1.1.3) lib/rack/methodoverride.rb:24:in `call'
actionpack (2.3.18) lib/action_controller/params_parser.rb:15:in `call'
rails (2.3.18) lib/rails/rack/metal.rb:47:in `call'
actionpack (2.3.18) lib/action_controller/session/cookie_store.rb:99:in `call'
activesupport (2.3.18) lib/active_support/cache/strategy/local_cache.rb:25:in
`call'
actionpack (2.3.18) lib/action_controller/failsafe.rb:26:in `call'
rack (1.1.3) lib/rack/lock.rb:11:in `call'
rack (1.1.3) lib/rack/lock.rb:11:in `synchronize'
rack (1.1.3) lib/rack/lock.rb:11:in `call'
actionpack (2.3.18) lib/action_controller/dispatcher.rb:106:in `call'
passenger (4.0.2)
lib/phusion_passenger/rack/thread_handler_extension.rb:77:in `process_request'
passenger (4.0.2)
lib/phusion_passenger/request_handler/thread_handler.rb:135:in
`accept_and_process_next_request'
passenger (4.0.2)
lib/phusion_passenger/request_handler/thread_handler.rb:106:in `main_loop'
passenger (4.0.2) lib/phusion_passenger/request_handler.rb:449:in
`start_threads'
passenger (4.0.2) lib/phusion_passenger/utils/robust_interruption.rb:108:in
`disable_interruptions'
passenger (4.0.2) lib/phusion_passenger/request_handler.rb:444:in
`start_threads'
passenger (4.0.2) lib/phusion_passenger/request_handler.rb:441:in `initialize'
passenger (4.0.2) lib/phusion_passenger/request_handler.rb:441:in `new'
passenger (4.0.2) lib/phusion_passenger/request_handler.rb:441:in
`start_threads'
passenger (4.0.2) lib/phusion_passenger/request_handler.rb:440:in `times'
passenger (4.0.2) lib/phusion_passenger/request_handler.rb:440:in
`start_threads'
passenger (4.0.2) lib/phusion_passenger/request_handler.rb:439:in
`synchronize'
passenger (4.0.2) lib/phusion_passenger/request_handler.rb:439:in
`start_threads'
passenger (4.0.2) lib/phusion_passenger/request_handler.rb:207:in `main_loop'
passenger (4.0.2) helper-scripts/classic-rails-preloader.rb:159
========================================================
LDAP itself up and running, users able to login.
This is from ldap logs in same time during issue upper:
Apr 2 14:00:51 test.ldap.server slapd[13561]: conn=1346 fd=16 ACCEPT from
IP=*.*.*.*:56831 (IP=0.0.0.0:389)
Apr 2 14:00:51 test.ldap.server slapd[13561]: conn=1346 fd=16 closed
(connection lost)
My configs:
\>cat authentication.yml
production:
enable_openid: false
disable_default: true
methods:
- adapter: Gitorious::Authentication::LDAPAuthentication
host: test.ldap.server
port: 389
base_dn: ou=Users,dc=server,dc=com
group_search_dn: ou=Groups,dc=server,dc=com
login_attribute: uid
encryption: none
bind_username: user
bind_password: password
membership_attribute_name: memberof
members_attribute_name: member
--
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
---
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 [email protected].
For more options, visit https://groups.google.com/d/optout.