Oracle Solution for Error ora-31229

Solution for Oracle Error ORA-31229

ORA-31229: DBMS_LDAP: invalid input parameter

What triggered the Error:

An invalid argument has been passed by a PL/SQL module to a DBMS_LDAP subprogram

What should we do to fix it:

Check the input argument to the DBMS_LDAP subprogram in PL/SQL module involving DBMS_LDAP.