Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LDAP Version needs to be set to allow logins #1151

Closed
dc53000 opened this issue Sep 4, 2015 · 1 comment
Closed

LDAP Version needs to be set to allow logins #1151

dc53000 opened this issue Sep 4, 2015 · 1 comment

Comments

@dc53000
Copy link

dc53000 commented Sep 4, 2015

I had to make these changes to allow LDAP authentication to work. Prior, I was getting this error in the debug log:

[2015-09-04 14:05:24] production.DEBUG: Authenticating user against LDAP. [] []
[2015-09-04 14:05:24] production.ERROR: ldap_bind(): Unable to bind to server: Protocol error [] []

Sorry for not having a patch or making a pull request, I am unfortunately git-stupid.

The fix is in app/controllers/AuthControllers.php
Add at line 35:

$ldapversion = Config::get('ldap.version');

Add at line 43:

ldap_set_option($connection, LDAP_OPT_PROTOCOL_VERSION,$ldapversion);

This was to auth against openldap server 2.4.28-1.1ubuntu4.3.

Client libraries:

ii  libldap-2.4-2:amd64                 2.4.31-1+nmu2ubuntu8.1           amd64        OpenLDAP libraries
ii  php5-ldap                           5.5.9+dfsg-1ubuntu4.11           amd64        LDAP module for php5
@snipe snipe closed this as completed in 680b189 Sep 9, 2015
@snipe
Copy link
Owner

snipe commented Sep 9, 2015

Huh. I could have sworn I had done that already. :-/

Anyway, thanks!

huzzah

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants