通過下面的程式碼,可以ldap_bind偵測認證,但是不知道修改密碼要怎麼弄;
$domain = 'sclivein.com';
$ad = ldap_connect ( "192.168.1.100" ) or die ( 'Could not connect to LDAP server.' );
ldap_set_option ( $ad, LDAP server.3);
. $ad, LDAP_OPT_REFERRALS, 0 );
@ldap_bind ( $ad, "{$user}@{$domain}", $password )
通過下面的程式碼,可以ldap_bind偵測認證,但是不知道修改密碼要怎麼弄;
$domain = 'sclivein.com';
$ad = ldap_connect ( "192.168.1.100" ) or die ( 'Could not connect to LDAP server.' );
ldap_set_option ( $T, LDAP server.3);
. $ad, LDAP_OPT_REFERRALS, 0 );
@ldap_bind ( $ad, "{$user}@{$domain}", $password )