note 86046 added to function.ldap-mod-replace

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
Here's an easy way to encode AD "unicodepwd" values from linux... 

Download and install recode... 
http://www.gnu.org/software/recode/recode.html

Then write something like this...
<?php
function ADUnicodePwdValue($plain_txt_value)
{
	return str_replace("\n", "", shell_exec("echo -n '\"" . $plain_txt_value . "\"' | recode latin1..utf-16le/base64"));
}

$user["unicodepwd"] = ADUnicodePwdValue("my_password");

?>
----
Server IP: 208.69.120.35
Probable Submitter: 198.133.100.133
----
Manual Page -- http://www.php.net/manual/en/function.ldap-mod-replace.php
Edit        -- https://master.php.net/note/edit/86046
Del: integrated  -- https://master.php.net/note/delete/86046/integrated
Del: useless     -- https://master.php.net/note/delete/86046/useless
Del: bad code    -- https://master.php.net/note/delete/86046/bad+code
Del: spam        -- https://master.php.net/note/delete/86046/spam
Del: non-english -- https://master.php.net/note/delete/86046/non-english
Del: in docs     -- https://master.php.net/note/delete/86046/in+docs
Del: other reasons-- https://master.php.net/note/delete/86046
Reject      -- https://master.php.net/note/reject/86046
Search      -- https://master.php.net/manage/user-notes.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.