您的位置:首页 > 编程语言 > MATLAB

Matlab plot 参数设置

2014-09-01 19:23 453 查看
1.代码实现
<?php
$user = $_POST ['name'];
$password = $_POST ['pwd'];

//设定域信息
$domain = 'a.com'; //设定域名
$basedn = 'dc=a,dc=com'; //如果域名为“b.a.com”,则此处为“dc=b,dc=a,dc=com”

$ad = ldap_connect ( "ldap://{$domain}" ) or die ( 'Could not connect to LDAP server.' );
ldap_set_option ( $ad, LDAP_OPT_PROTOCOL_VERSION, 3 );
ldap_set_option ( $ad, LDAP_OPT_REFERRALS, 0 );
@ldap_bind ( $ad, "{$user}@{$domain}", $password ) or die ( 'Authorization failed! Please check your username or password!' );
echo "Welcome ".$user;
?>
2. 一些有用的网站
adLDAP - LDAP Authentication with PHP for Active Directory
http://adldap.sourceforge.net/
PHP: LDAP Functions – Manual http://php.net/manual/en/ref.ldap.php
LDAP 目录协议函数库http://etdep.yxnu.net/php_manu/group.php-25.htm
Apache Module mod_auth_ldap http://httpd.apache.org/docs/2.0/mod/mod_auth_ldap.html
LDAP Authentication (PHP) http://code.activestate.com/recipes/101525-ldap-authentication/
LDAP精华文章 http://www.chinaunix.net/jh/49/本文出自 “ZCC技术博物院” 博客,转载请与作者联系!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: