password_check.php3
来自「linux1.0内核的源代码,欢迎大家使用」· PHP3 代码 · 共 26 行
PHP3
26 行
<?phprequire('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 = '<font color=blue><b>YES It is that</b></font>'; else $msg = '<font color=red><b>NO It is wrong</b></font>'; } else $msg = 'User DN is not available. Check your configuration'; @ldap_close($ds); } else $msg = '<font color=red><b>Could not connect to LDAP server</b></font>'; echo "<tr><td colspan=3 align=center>$msg</td></tr>\n";}?></form>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?