Content
You are here:
LDAP Authentication with ApacheDS
Added by Christian Wetzel over 10 years ago
Hello,
i struggle to configure Openproject 3.0 with LDAP-Authentication with ApacheDS.
- Test Connection gives ok-status back, even if account, password or basedn are nonsense.
- Saving Authentication Mode (LDAP) with Password and returning to Authentication Mode (LDAP): The Password is grayed out. Saving Authentication Mode (LDAP) and returning again: the password disappears.
- I tried to configure it as Setting_up_an_OpenLDAP_server_for_testing, but there is a RuntimeError:
Started POST "/login" for MY_IP at 2014-03-31 18:22:15 +0200 Processing by AccountController#login as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"NpzX/9WO02HtRsEWDzckcqXf/6dS+gLoKYBtjwdoodo=", "back_url"=>"/", "username"=>"MY_USERNAME", "password"=>"[FILTERED]", "login"=>"Login"} Completed 500 Internal Server Error in 12.0ms RuntimeError (LdapError: invalid response-type in search: 24): app/models/ldap_auth_source.rb:51:in `rescue in authenticate' app/models/ldap_auth_source.rb:43:in `authenticate' app/models/user.rb:272:in `try_authentication_for_existing_user' app/models/user.rb:255:in `try_to_login' app/controllers/account_controller.rb:189:in `password_authentication' app/controllers/account_controller.rb:184:in `authenticate_user' app/controllers/account_controller.rb:41:in `login'
Has anybody the same problems?
Thank you,
Christian
Replies (3)
The Runtime Error requires that the user ist already created via OP, but authentication is switched to LDAP as configured above.
Nevertheless, the same LdapError shows in log when trying on-the-fly authentication:
Im just adding my ApacheDS logs - perhaps can somebody figure out where the ProtocolError among net-ldap and apacheds comes from:
For people with the same problem, I will not forget to post my ‘solution’: to use OpenLDAP (2.4.23) instead and migrate my ldif. Works without problems under my configuration.
Upgrading net-ldap to 0.8.0 solves this issue.