* * Copyrights are listed in chronological order, by contributions. * * wpDirAuth: WordPress Directory Authentication * Copyright (c) 2007 Stephane Daury - http://stephane.daury.org/ * * wpDirAuth and wpLDAP Patch Contributions * Copyright (c) 2007 PKR Internet, LLC - http://www.pkrinternet.com/ * * wpDirAuth Patch Contributions * Copyright (c) 2007 Todd Beverly * * wpLDAP: WordPress LDAP Authentication * Copyright (c) 2007 Ashay Suresh Manjure - http://ashay.org/ * * wpDirAuth is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation. * * wpDirAuth is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see http://www.gnu.org/licenses/. * * @todo Always stay on top of security and user input validation while * staying backwards compatible enough until PHP4 support is dropped in * WP (serious patches welcomed, please see code). Note that we do * heavily rely on WP's admin ACL scheme, by necessity. */ /* PLUGIN META INFO FOR WORDPRESS LISTINGS Plugin Name: wpDirAuth Plugin URI: http://tekartist.org/labs/wordpress/plugins/wpdirauth/ Description: WordPress Directory Authentication (LDAP/LDAPS). Works with most LDAP enabled directory services, such as OpenLDAP, Apache Directory, Microsoft Active Directory, Novell eDirectory, Sun Java System Directory Server, etc. Originally revived and upgraded from a patched version of wpLDAP. Version: 1.1 Author: Stephane Daury and whoever wants to help Author URI: http://stephane.daury.org/ */ /** * wpDirAuth version. */ define('WPDIRAUTH_VERSION', '1.1'); /** * wpDirAuth signature. */ define('WPDIRAUTH_SIGNATURE', 'wpDirAuth '.WPDIRAUTH_VERSION); /** * Default LDAP field to search against when locating the user's profile. */ define('WPDIRAUTH_DEFAULT_FILTER', 'samAccountName'); /** * Default login screen message. */ define('WPDIRAUTH_DEFAULT_LOGINSCREENMSG', '%s members can login directly using their institutional password.'); /** * Default password change message. */ define('WPDIRAUTH_DEFAULT_CHANGEPASSMSG', 'To change a %s password, please refer to the official institutional password policy.'); /** * Allowed HTML (messages) */ define('WPDIRAUTH_ALLOWED_TAGS', '