note 124772 added to function.ldap-mod-replace

From: Date: Thu, 27 Feb 2020 19:50:14 +0000
Subject: note 124772 added to function.ldap-mod-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-214241@lists.php.net to get a copy of this message
An bettter method to create the unicodePwd Active Directory LDAP field from PHP is: $unicodePwd = iconv("UTF-8", "UTF-16LE", "\"".$password."\""); It works when $password is coming from a UTF-8 page. If your $password is not utf-8, change the 1st parameter of iconv. ---- Server IP: 45.112.84.4 Probable Submitter: 185.85.3.195 (proxied: 151.51.12.206) ---- Manual Page -- http://php.net/manual/en/function.ldap-mod-replace.php Edit -- https://master.php.net/note/edit/124772 Del: integrated -- https://master.php.net/note/delete/124772/integrated Del: useless -- https://master.php.net/note/delete/124772/useless Del: bad code -- https://master.php.net/note/delete/124772/bad+code Del: spam -- https://master.php.net/note/delete/124772/spam Del: non-english -- https://master.php.net/note/delete/124772/non-english Del: in docs -- https://master.php.net/note/delete/124772/in+docs Del: other reasons-- https://master.php.net/note/delete/124772 Reject -- https://master.php.net/note/reject/124772 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#214241) next »