⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 authldap.php

📁 完美的在线教育系统
💻 PHP
字号:
<?php // $Id: authldap.php 15253 2008-05-09 03:00:19Z yannoo $/*==============================================================================	Dokeos - elearning and course management software	Copyright (c) 2004 Dokeos SPRL	Copyright (c) 2003 Ghent University (UGent)	Copyright (c) 2001 Universite catholique de Louvain (UCL)	Copyright (c) Universite Jean Monnet de Saint Etienne	Copyright (c) Roan Embrechts (Vrije Universiteit Brussel)	For a full list of contributors, see "credits.txt".	The full license can be read in "license.txt".	This program 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; either version 2	of the License, or (at your option) any later version.	See the GNU General Public License for more details.	Contact address: Dokeos, rue du Corbeau, 108, B-1030 Brussels, Belgium	Mail: info@dokeos.com==============================================================================*//**=======================================================================*	LDAP module functions**	If the application uses LDAP, these functions are used*	for logging in, searching user info, adding this info*	to the Dokeos database...=======================================================================	- function ldap_authentication_check()	- function ldap_find_user_info()	- function ldap_login()	- function ldap_put_user_info_locally()	- ldap_set_version()	known bugs	----------	- (fixed 18 june 2003) code has been internationalized	- (fixed 07/05/2003) fixed some non-relative urls or includes	- (fixed 28/04/2003) we now use global config.inc variables instead of local ones	- (fixed 22/04/2003) the last name of a user was restricted to the first part	- (fixed 11/04/2003) the user was never registered as a course manager	version history	---------------	3.2 - updated to allow for specific term search for teachers identification	3.1 - updated code to use database settings, to respect coding conventions as much as possible (camel-case removed) and to allow for non-anonymous login 	3.0	- updated to use ldap_var.inc.php instead of ldap_var.inc (deprecated)		(November 2003)	2.9	- further changes for new login procedure		- (busy) translating french functions to english		(October 2003)	2.8	- adapted for new Claroline login procedure		- ldap package now becomes a standard, in auth/ldap	2.7 - uses more standard LDAP field names: mail, sn, givenname			instead of mail, preferredsn, preferredgivenname			there are still		- code cleanup		- fixed bug: dc = xx, dc = yy was configured for UGent			and put literally in the code, this is now a variable			in configuration.php ($LDAPbasedn)	with thanks to	- Stefan De Wannemacker (Ghent University)	- Universite Jean Monet (J Dubois / Michel Courbon)	- Michel Panckoucke for reporting and fixing a bug	- Patrick Cool: fixing security hole	*	@author Roan Embrechts	*	@version 3.0	*	@package dokeos.auth.ldap=======================================================================*/require('ldap_var.inc.php');/**===============================================================	function	CHECK LOGIN & PASSWORD WITH LDAP*	@return true when login & password both OK, false otherwise===============================================================*	@author Roan Embrechts (based on code from Universit锟

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -