您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

ldap - php如何修改windows AD的帐号密码

2025/10/24 5:07:33发布25次查看
通过下面的代码,可以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_opt_protocol_version, 3 );
ldap_set_option ( $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 ( $ad, ldap_opt_protocol_version, 3 );
ldap_set_option ( $ad, ldap_opt_referrals, 0 );
@ldap_bind ( $ad, {$user}@{$domain}, $password )
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product