使用最广泛的radius的linux的源码

源代码在线查看: password_check.php3

软件大小: 3428 K
上传用户: qq448792326
关键词: radius linux 源码
下载地址: 免注册下载 普通下载 VIP

相关代码

								require('password.php3');								if ($action == 'checkpass'){					$ds=@ldap_connect("$config[ldap_server]");  // must be a valid ldap server!					if ($ds){						if ($dn != ''){							if ($passwd == '')								$passwd = 'not_exist';							$r = @ldap_bind($ds,$dn,$passwd);							if ($r)								$msg = 'YES It is that';							else								$msg = 'NO It is wrong';						}						else							$msg = 'User DN is not available. Check your configuration';						@ldap_close($ds);					}					else						$msg = 'Could not connect to LDAP server';					echo "$msg\n";				}				?>											

相关资源