linux1.0内核的源代码,欢迎大家使用

源代码在线查看: defaults.php3

软件大小: 2997 K
上传用户: kzdai22
关键词: linux 1.0 内核 源代码
下载地址: 免注册下载 普通下载 VIP

相关代码

								require_once('../lib/ldap/functions.php3');				if ($config[ldap_default_dn] != ''){					include('../lib/ldap/attrmap.php3');					$regular_profile_attr = $config[ldap_regular_profile_attr];					$ds=@ldap_connect("$config[ldap_server]");  // must be a valid ldap server!					if ($ds) {				       		$r=@da_ldap_bind($ds,$config);						if ($config[ldap_debug] == 'true')							print "DEBUG(LDAP): Search Query: BASE='$config[ldap_default_dn]',FILTER='objectclass=*'\n";				       		$sr=@ldap_search($ds,"$config[ldap_default_dn]", 'objectclass=*');				       		if ($info = @ldap_get_entries($ds, $sr)){				       			$dn = $info[0]['dn'];				       			if ($dn != ''){				               			foreach($attrmap as $key => $val){										if ($info[0]["$val"][0] != '' && $key != 'Dialup-Access'){											if ($attrmap[generic]["$key"] == 'generic'){												for($i=0;$i													$default_vals["$key"][] = $info[0]["$val"][$i];												$default_vals["$key"][count] += $info[0]["$val"][count];											}											else												$default_vals["$key"] = $info[0]["$val"];										}								}							}						}						if ($regular_profile_attr != ''){							$get_attrs = array("$regular_profile_attr");							if ($config[ldap_filter] != '')								$filter = ldap_xlat($config[ldap_filter],$login,$config);							else								$filter = 'uid=' . $login;							if ($config[ldap_debug] == 'true')								print "DEBUG(LDAP): Search Query: BASE='$config[ldap_base]',FILTER='$filter'\n";							$sr=@ldap_search($ds,"$config[ldap_base]",$filter,$get_attrs);							if ($info = @ldap_get_entries($ds,$sr)){								for($i=0;$i									$dn2 = $info[0][$regular_profile_attr][$i];									if ($dn2 != ''){										if ($config[ldap_debug] == 'true')											print "DEBUG(LDAP): Search Query: BASE='$dn2',FILTER='objectclass=*'\n";										$sr2=@ldap_search($ds,"$dn2",'objectclass=*');										if ($info2 = @ldap_get_entries($ds,$sr2)){											$dn3 = $info2[0]['dn'];											if ($dn3 != ''){												foreach($attrmap as $key => $val){													if ($info2[0]["$val"][0] != '' && $key != 'Dialup-Access'){														if (!isset($default_vals["$key"]))															$default_vals["$key"] = array();														if ($attrmap[generic]["$key"] == 'generic'){															for($j=0;$j																$default_vals["$key"][] = $info2[0]["$val"][$j];															$default_vals["$key"][count] += $info2[0]["$val"][count];														}														else															$default_vals["$key"] = $info2[0]["$val"];													}												}											}										}									}								}							}						}						@ldap_close($ds);					}				}								?>							

相关资源