function encode_password($password){
        $password="\"".$password."\"";
        $encoded="";
        for ($i=0; $i <strlen($password); $i++){ $encoded.="{$password{$i}}\000"; }
        return ($encoded);
    }
function encode_password($password){
        $password="\"".$password."\"";
        $encoded="";
        for ($i=0; $i <strlen($password); $i++){ $encoded.="{$password{$i}}\000"; }
        return ($encoded);
    }
function encode_password ( $ password ) { $ password = "\"" . $ password . "\"" ; $ encoded = "" ; for ( $ i = 0 ; $ i < strlen ( $ password ) ; $ i ++ ) { $ encoded .= "{$password{$i}}\000" ; } return ( $ encoded ) ; }
Encode a password for transmission over LDAP
Encode a password for transmission over LDAP