Possibly your guest account doesn't have a valid email address associated with it, or perhaps your email attribute_mapping is incorrect for your LDAP setup?
Martin On Fri, Mar 30, 2012 at 2:56 PM, Baiju Muthukadan <baiju.m.m...@gmail.com> wrote: > Hello, > > I configured LDAP and run the test connection like this: > > RAILS_ENV=production bundle exec script/test_ldap_connection guest secret > > Then I got a message like this: > All good, your credentials are correct > > My configuration looks like this (the EXAMPLE need to be changed to our > internal value): > > production: > disable_default: true > methods: > - adapter: Gitorious::Authentication::LDAPAuthentication > host: 192.168.1.1 > port: 389 > base_dn: dc=EXAMPLE,dc=ORG > login_attribute: uid > distinguished_name_template: "uid={},ou=Users,dc=EXAMPLE,dc=ORG" > attribute_mapping: > givenName: fullname > publicEmail: email > displayname: fullname > mail: email > encryption: none > > When I try to login using 'guest' as username in web UI, it gives the below > error. > If I use gu...@example.org, it's not authenticating and so no error message > in log. > > > ActiveRecord::RecordInvalid (Validation failed: Email can't be blank, Email > is invalid, Email is too short (minimum is 3 characters)): > vendor/rails/activerecord/lib/active_record/validations.rb:1090:in > `save_without_dirty!' > vendor/rails/activerecord/lib/active_record/dirty.rb:87:in > `save_without_transactions!' > vendor/rails/activerecord/lib/active_record/transactions.rb:200:in `save!' > > vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:136:in > `transaction' > vendor/rails/activerecord/lib/active_record/transactions.rb:182:in > `transaction' > vendor/rails/activerecord/lib/active_record/transactions.rb:200:in `save!' > vendor/rails/activerecord/lib/active_record/transactions.rb:208:in > `rollback_active_record_state!' > vendor/rails/activerecord/lib/active_record/transactions.rb:200:in `save!' > lib/gitorious/authentication/ldap_authentication.rb:102:in `auto_register' > lib/gitorious/authentication/ldap_authentication.rb:72: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:96:in `password_authentication' > app/controllers/sessions_controller.rb:42:in `create' > > > Regards, > Baiju M > > -- > To post to this group, send email to gitorious@googlegroups.com > To unsubscribe from this group, send email to > gitorious+unsubscr...@googlegroups.com -- To post to this group, send email to gitorious@googlegroups.com To unsubscribe from this group, send email to gitorious+unsubscr...@googlegroups.com