LDAP authentication problem

Added by Christian Schulte about 6 years ago

We are running the following installation and run into problems with the ldap authentication.

Environment:
  Redmine version                          2.2.3.stable
  Ruby version                             1.9.3 (i386-mingw32)
  Rails version                            3.2.12
  Environment                              production
  Database adapter                         Mysql2
Redmine plugins:
  redmine_lightbox                         0.0.1
  redmine_track_control                    1.0.6

The installation is based on the bitnami stack.

The authentication was working fine some days ago. At the moment we are not able to login to the system using the ldap authentication.

The following error is shown on the website:

500 No such address or other socket error.

Also the log shows this error:
Processing by AccountController#login as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"XgZu1QlCuYUTd1wlAW0otCAOoMwiesiFXFCMt5sRRdw=", "back_url"=>"https://server/redmine/", "username"=>"user", "password"=>"[FILTERED]", "login"=>"Anmelden »"}
  Current user: anonymous
An error occured when authenticating user: No such address or other socket error.
  Rendered common/error.html.erb within layouts/base (0.0ms)
Completed 500 Internal Server Error in 172ms (Views: 15.6ms | ActiveRecord: 0.0ms)

A restart of the services does not solve the problem.

Is this a kown problem and is there a solution?

Thank you!

Replies (2)

RE: LDAP authentication problem - Added by Paresh Patel about 6 years ago

hi, Christian Schulte

your system date change 2 months old set then

production:
delivery_method: :sendmail
smtp_settings:
address: 127.0.0.1
port: 25
domain: domain.com
user_name: ""
password: "*******"

set your configuration file then change only your domain and username,pwd set
restart your redmine server
check your lamp authentication

Here is an typical example using Active Directory:

Name = My Directory
Host = host.domain.org
Port = 389
LDAPS = no
Account = MyDomain\UserName (or UserName@MyDomain depending on AD server)
Password = <password>
Base DN = CN=users,DC=host,DC=domain,DC=org

On-the-fly user creation = yes
Attributes
Login = sAMAccountName
Firstname = givenName
Lastname = sN
Email = mail

Here is another example for Active Directory with a compartmentalized intranet:

Name = Just a description for the auth modes page
Host = DepartmentName.OrganizationName.local
Port = 389
LDAPS = no
Account = DepartmentName\UserName (or UserName@MyDomain depending on AD server or bind DN uid=Manager,cn=users,dc=MyDomain,dc=com)
Password = <password>
Base DN = DC=DepartmentName,DC=OrganizationName,DC=local

On-the-fly user creation = yes
Attributes
Login = sAMAccountName
Firstname = givenName
Lastname = sN
Email = mail

RE: LDAP authentication problem - Added by ravi jain almost 6 years ago

Dear Paresh,

I am facing the same issue,

I have the same Bitnami installation as Christian,

I have a confusion in your reply, which File do I need to update and what settings Do I need to change there.

your help is highly appreciated

Dear Christian,

is your problem resolved, if yes, what's the resolution?

Regards

Ravi Jain

(1-2/2)