function ldap_help_encodePassword in Lightweight Directory Access Protocol (LDAP) 7
Same name and namespace in other branches
- 8.2 ldap_help/ldap_test_script/functions.inc \ldap_help_encodePassword()
- 7.2 ldap_help/ldap_test_script/functions.inc \ldap_help_encodePassword()
File
- ldap_help/
ldap_test_script/ functions.inc, line 179
Code
function ldap_help_encodePassword($password) {
$password = "\"" . $password . "\"";
$encoded = "";
for ($i = 0; $i < strlen($password); $i++) {
$encoded .= "{$password[$i]}\0";
}
return $encoded;
}