Minimum Mule runtime version: 4.2.1
The password received by application is a text string.
For example:
<set-variable variableName="password" value="#['super_strong_password']" doc:name="SetVariable - password" />
%dw 2.0
output application/java
---
{
dn : "CN=" ++ vars.cnUserName ++ p('baseDN'),
cn : vars.cnUserName,
mail : vars.cnUserName ++ "@contoso.com",
unicodePwd: write(('"' ++ vars.password ++ '"') as Binary {encoding: "UTF-16LE"},"application/java"),
"objectClass": [
"person",
"user",
"top",
"organizationalPerson",
"inetOrgPerson"
]
}
Important, the string that represents the password needs to be specified in a UTF-16 encoded Unicode string containing the password surrounded by quotation marks, which has been BER-encoded as an octet string per the Object(Replica-Link) syntax: unicodePwd
<ldap:modify-single-value-attribute doc:name="Modify single value attribute" doc:id="a954ba1c-c8f2-4189-88a2-ac430d401c8a" config-ref="LDAP_Configuration"
dn="#["CN=" ++ vars.cnUserName ++ p('baseDN')]"
attributeName="unicodePwd"
attributeValue="#[('"' ++ vars.password ++ '"') as Binary {encoding: "UTF-16LE"}]"
ignoreInvalidAttribute="false" />
More information can be found at LDAP Connector - Mule 4
OPERATION_NOT_SUPPORTED: [LDAP: error code 53 - 0000001F: SvcErr: DSID-031A124C, problem 5003 (WILL_NOT_PERFORM), data 0
001116620

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.