LDAP authentication test problem

190 views
Skip to first unread message

TeLeKoTeKo

unread,
May 10, 2012, 11:23:16 AM5/10/12
to Gitorious
Hello!

I'm trying to make my gitorious authenticate using openldap...
I am following this tutorial: https://gitorious.org/gitorious/pages/LdapIntegration

After configured authentication.yml, I was trying the script

bundle exec script/test_ldap_connection admin admin

But, i get this error:

---
git@vm01:/var/www/gitorious$ sudo bundle exec script/
test_ldap_connection admin admin
./config/environment.rb:26: Your config/gitorious.yml does not have an
entry for your current Rails environment. Please consult config/
gitorious.sample.yml for instructions. (RuntimeError)
from ./config/../vendor/rails/railties/lib/initializer.rb:111:in
`run'
from ./config/environment.rb:24
from script/test_ldap_connection:8:in `require'
from script/test_ldap_connection:8
---

My gitorious.yml is ok... Gitorious is running without problems.. git-
daemon, git-poller.. everything ok, starting without problemas with
gitorious.yml..

This problem is only charged when I run the test script ldap.

Someone can help me?

Thanks!!


Kelketek Titikilik Rritaa

unread,
May 10, 2012, 1:48:04 PM5/10/12
to gito...@googlegroups.com

Make sure you set the envionment on the commandline before doing that. You should be able to prepend something like:
RAILS_ENV=production and have it work.

--
To post to this group, send email to gito...@googlegroups.com
To unsubscribe from this group, send email to
gitorious+...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages