📄 password_check.php3
字号:
<?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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -