1--TEST-- 2ldap_exop_passwd() - Giving wrong value for old password 3--CREDITS-- 4Côme Chilliet <mcmic@php.net> 5--SKIPIF-- 6<?php require_once('skipif.inc'); ?> 7<?php require_once('skipifbindfailure.inc'); ?> 8--FILE-- 9<?php 10require "connect.inc"; 11 12$link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version); 13insert_dummy_data($link, $base); 14 15var_dump(ldap_exop_passwd($link, "cn=userA,$base", "wrongPassword", "newPassword")); 16var_dump(ldap_error($link)); 17var_dump(ldap_errno($link)); 18var_dump(test_bind($host, $port, "cn=userA,$base", "newPassword", $protocol_version)); 19?> 20===DONE=== 21--CLEAN-- 22<?php 23require "connect.inc"; 24 25$link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version); 26 27remove_dummy_data($link, $base); 28?> 29--EXPECTF-- 30Warning: ldap_exop_passwd(): Passwd modify extended operation failed: Server is unwilling to perform (53) in %s on line %d 31bool(false) 32string(30) "Server is unwilling to perform" 33int(53) 34 35Warning: ldap_bind(): Unable to bind to server: Invalid credentials in %s on line %d 36bool(false) 37===DONE=== 38