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

📄 find.php3

📁 linux1.0内核的源代码,欢迎大家使用
💻 PHP3
字号:
<?phprequire_once('../lib/ldap/functions.php3');$ds=@ldap_connect("$config[ldap_server]");  // must be a valid ldap server!if ($ds) {	$r=@da_ldap_bind($ds,$config);	if ($search_IN == 'name' || $search_IN == 'ou')		$attr = ($search_IN == 'name') ? 'cn' : 'ou';	else if ($search_IN == 'radius'){		require('../lib/ldap/attrmap.php3');		$attr = $attrmap[$radius_attr];	}	if ($config[ldap_debug] == 'true')		print "<b>DEBUG(LDAP): Search Query: BASE='$config[ldap_base]',FILTER='$attr=*$search*'</b><br>\n";	$sr=@ldap_search($ds,"$config[ldap_base]", "$attr=*$search*",array('uid'),0,$max_results);	if (($info = @ldap_get_entries($ds, $sr))){		for ($i = 0; $i < $info["count"]; $i++)			$found_users[] = $info[$i]['uid'][0];	}	@ldap_close($ds);}else	echo "<b>Could not connect to the LDAP server</b><br>\n";?>

⌨️ 快捷键说明

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