3 /* Copyright (C) 2007,2009 Reini Urban
4 * This file is part of PhpWiki. Terms and Conditions see LICENSE. (GPL2)
6 include_once("lib/WikiUser/LDAP.php");
9 * Overrides for LDAP (Windows domain) usernames:
10 * Search lowercase, but convert it then to uppercase to match the WINDOWS name.
11 * Define the vars LDAP_AUTH_HOST, LDAP_BASE_DN, LDAP_SEARCH_FILTER in config/config.ini
12 * Preferences are handled in _PassUser
14 class _LdapUpperPassUser
18 function checkPass($submitted_password) {
19 return parent::checkPass($submitted_password);
23 if (!empty($this->_userid)) {
24 $this->_userid = trim(strtoupper($this->_userid));
25 if (!empty($this->_HomePagehandle) and is_object($this->_HomePagehandle))
26 $this->_HomePagehandle->_pagename = $this->_userid;
27 return strtoupper($this->_userid);
31 function userExists() {
32 // lowercase check and uppercase visibility
33 $this->_userid = trim(strtoupper($this->_userid));
34 return parent::userExists();
42 // c-hanging-comment-ender-p: nil
43 // indent-tabs-mode: nil