18.13 LDAP_DNPREP Function
This function replaces any occurrences of a period character ( . ) with an underscore character ( _ ) in the passed in p_username value and then returns that newly massaged username value.
Syntax
APEX_CUSTOM_AUTH.LDAP_DNPREP (
p_username IN VARCHAR2 )
RETURN VARCHAR2;
IS
BEGIN
RETURN replace(p_username,'.','_');
END ldap_dnprep;Parameters
| Parameter | Description |
|---|---|
p_username |
Username value of an end user. |
Example
The following example demonstrates how to return a username formatted for LDAP authentication.
return apex_custom_auth.ldap_dnprep(p_username =>
:USERNAME);Parent topic: APEX_CUSTOM_AUTH