e7c8da6 Ticket #48143 - Password is not correctly passed to perl command line tools if it contains shell special characters.

Authored and Committed by nhosoi 6 years ago
    Ticket #48143 - Password is not correctly passed to perl command line tools if it contains shell special characters.
    
    Description: If a password contains shell special characters such as '$', '!',
    '"', or ''', they were evaluated before passing to the core programs, e.g.,
    ns-slapd for import and export or ldapmodify for tasks.
    
    This patch escapes the special characters using shellEscape subroutine
    in DSUtil.pm.
    
    Example:
      Directory Manager Password: pas$w!or'd"
      $ ./db2ldif.pl -n userRoot -D 'cn=directory manager' -w -w pas\$w\!or\'d\"
      Successfully added task entry "cn=export_2015_4_7_15_17_16,cn=export,cn=tasks,cn=config"
    
    https://fedorahosted.org/389/ticket/48143
    
    Reviewed by rmeggins@redhat.com (Thank you, Rich!!)