claudehohl/Stikked — pull request #30 by lightswitch05 (2012-10-01 16:30:58+00:00)
Title: Added optional LDAP authentication

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:

$config['require_auth'] = true;

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.