-
Notifications
You must be signed in to change notification settings - Fork 223
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
Added optional LDAP authentication #30
Conversation
Added Auth_Ldap for authentication. To enable authentication update config/stikked.php and config/auth_ldap.php
Logout button will now appear in the header if authentication is enabled and the user is logged in.
Instead of showing an ugly error, failed logins now show the login page and a simple error about invalid username or password.
AWESOME! Thanks very much for your contribution! I was thinking about creating an enterprise branch, but that would make things too complicated. Also, the ldap authentication is optional, I'll merge this pull request right into the master. Thanks! |
Added optional LDAP authentication
Glad I could contribute, if you have any issues or questions why I did things the way I did, just let me know |
Thanks. Have looked at the code, fits great into the whole ecosystem. I'll test the whole auth in my company, do some CSS-styling at the loginpage and run the source through the code formatter. After that, it's ready for releasing. |
hey buddy i m not been able to use the login process have uploaded authldap folder too but still getting the msg LDAP functionality not present. Either load the module ldap php module or use a php with ldap support compiled in. Go Home |
@cyclopse1 it has been awhile since I worked with this and no longer have Stikked installed (had potential licensing issues) - but it sounds like your PHP configuration might be messed up. Just like the error message says, you need LDAP enabled in PHP. However, I think I might also remeber getting this error message when my configuration was messed up in |
can u help me i want to implement normal login without ldap an i tried to creat page but not been able to access it when upa\loaded it. From: Daniel notifications@github.com @cyclopse1 it has been awhile since I worked with this and no longer have Stikked installed (had potential licensing issues) - but it sounds like your PHP configuration might be messed up. Just like the error message says, you need LDAP enabled in PHP. However, I think I might also remeber getting this error message when my configuration was messed up in config/auth_ldap.php. Your error is actually coming from Auth LDAP and not Stikked. If you do a quick Google, you'll come across several pages addressing this same pro blem with Auth LDAP |
Can you help us on this? --> #101 |
Added an optional LDAP authentication library: https://github.com/gwojtak/Auth_Ldap
By default authentication is turned off. It can be enabled in config/stikked.php:
If enabling authentication, be sure to configure config/auth_ldap.php with your LDAP settings. If enabled, authentication is required for all interfaces except by the chron job.
If a user who is not authenticated tries to view a specific paste, they are redirected to the login page. Upon authentication, they are automatically sent back to the paste or URL they were trying to access before logging in. While a user is authenticated, a 'Logout' link is shown in the header next to the 'About' link.