/auth_ldap_php5

Tiny Tiny RSS plugin for LDAP authentication

Primary LanguagePHP

/**
 * 	Tiny Tiny RSS plugin for LDAP authentication
 * 	@author Stormbyte (nawalhof@itnature.nl)
 * 	Requires php5-ldap
 * 	@version 0.02
 * 
 */
 
/**
 *  Configuration
 *
 * 	define('LDAP_AUTH_SERVER_URI', 'ldaps://LDAPServerHostname:port/');
 * 	define('LDAP_AUTH_BASEDN', 'dc=example,dc=com');
 * 	define('LDAP_AUTH_BINDDN', 'cn=serviceaccount,dc=example,dc=com');
 * 	define('LDAP_AUTH_BINDPW', 'ServiceAccountsPassword');
 * 	
 * 	Load a Filter that holds all available members
 * 	define('LDAP_AUTH_SEARCHFILTER', '(memberof=CN=TTrss,CN=Users,DC=example,DC=com)');
 *    
 */

/**
 * 	Notes -
 * 	LDAP configuration tested on Zentyal 3.5 Samba LDAP server.
 * 	The userlist is cached but the password is always validated against LDAP server
 * 
 * 	ToDo - 
 * 	Fix owner 2 hardcoded
 * 
 */