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

Cannot login into the Control Panel #17

Open
mkran opened this issue Sep 27, 2013 · 12 comments
Open

Cannot login into the Control Panel #17

mkran opened this issue Sep 27, 2013 · 12 comments

Comments

@mkran
Copy link

mkran commented Sep 27, 2013

I just installed the LDAP plugin.
I got the settings information from IT and filled them out.
Here are my settings:

image

Once I update the settings I am not able to log into EE control Panel -- both my Active Directory and ExpressionEngine uname and password aren't working. It just goes to http://myuniversity.edu/admin.php?S=0&D=cp&C=login&M=authenticate and returns server error.

Assuming that the settings are correct, could there be any other reason why this is happening?

Please help..
Muthu

@lightfuze
Copy link

Check with IT to make sure a firewall is not blocking requests from your web server to the ldap server.

@mkran
Copy link
Author

mkran commented Sep 27, 2013

I was able to ping the LDAP server and it was listening. I dont think firewall is the issue..

@MattLGBrown
Copy link

Also getting this problem at the moment. Running EE 2.7. Does anyone have a solution to this?

@lightfuze
Copy link

Mkran, are you running EE 2.7 also?

@mkran
Copy link
Author

mkran commented Oct 1, 2013

I'm running EE 2.6.1..

@mkran
Copy link
Author

mkran commented Oct 1, 2013

@mattlgb - If you want to disable the LDAP plugin temporarily..

Go to - system/expressionengine/config/config.php
change $config['allow_extensions'] = "y"; to $config['allow_extensions'] = "n";
You will now be able to log in to EE control panel ... Go to Add-ons->extensions->Enable extensions->disable LDAP....

You are DONE!! But this doesn't solve our issue..any suggestions??

@MattLGBrown
Copy link

Thanks @mkran. I've actually just been going straight into the db and setting the respective exp_extensions entries to 'n'. Really would like to get to the bottom of this like you :).
I don't really want to have to mess about with the code, but I might take a look if no-one can offer a suggestion any time soon.

@lightfuze
Copy link

I've submitted Pull Request #19 to update deprecated function hash()

I know it works in 2.5.5 (I'm working to update my development server to 2.7 now), I don't think there are any other breaking-changes in 2.6 or 2.7, so this may work for you all as well:
https://github.com/lightfuze/LDAP-Authentication-for-ExpressionEngine

@MattLGBrown
Copy link

Ok so it doesn't give me a 500 error any more, but simply white-screens instead

@lightfuze
Copy link

You might try re-uploading the LDAP extension files and disabling and re-enabling the extension.

I just did a fresh install of EE 2.7.1 and then installed LDAP auth from:
https://github.com/lightfuze/LDAP-Authentication-for-ExpressionEngine
Plugged in my LDAP settings (from my EE 2.5.5 production server)

I am able to log in as EE admin (EE Authentication) and as my LDAP user.

@smithellis
Copy link

Funny story. I'm now working on this same implementation that mkran was rocking back in 2013. I guess that means we never resolved the issue, because when I enable LDAP I get the white screen after attempting to authenticate.

I set up a dev server and am running 2.8.1. I have the latest code for LDAP from the repo. I've even used a partner site's config (theirs is working!) and tried it - I get the white screen. I'm wondering if it's not interference from another plugin or something...? Is there any way to tell? I'm not seeing much by way of logging. Thoughts?

@smithellis
Copy link

I've solved the "white screen" error - it's a little embarrassing, but since it will help the next guy or mattlgb, I'll share. You need to be sure you have ldap compiled into php, and that the ldap module is enabled in apache2. Never crossed my mind that it might not be there...but...there ya go.

On Ubuntu the fix was:


sudo apt-get install php5-ldap
sudo a2enmod ldap

I maximized all logging/debugging output and was able to see that calls to the basic ldap_connect function were breaking, which put me on that trail.

So - no more white screen. Still having authentication problems, but I'm hoping it's some settings I need to clear up with our LDAP admins. I'll update when I get it working (because I will). I WILL.

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

4 participants