encodeForDN

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

encodeForDN( string ); → returns string

encodeForDN Argument Reference

string
Required

string to encode.

Compatibility

ColdFusion:

Version 11+ Works on CF11+ but not documented.

Examples sample code invoking the encodeForDN function


Script Syntax

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

Fork me on GitHub