encodeForDN

Encodes the given string for safe output in LDAP Distinguished Names. Lucee only, not supported on Adobe CF.

encodeForDN( string ); → returns String

Argument Reference for the encodeForDN function

string

Required: Yes
string to encode.

Compatibility

ColdFusion:

Version 11+ Works on CF 11+ but not documented.

Examples sample code invoking the encodeForDN function


Script Syntax

<cfscript> 
 enc=encodeForDN('<script>'); 
 writeDump(enc); 
 </cfscript> 

Fork me on GitHub