cba77de Issue 51086 - Improve dscreate instance name validation

Authored and Committed by Simon Pichugin 3 years ago
    Issue 51086 - Improve dscreate instance name validation
    
    Bug Description: When creating an instance using dscreate, it doesn't enforce
    max name length. The ldapi socket name contains name of the instance. If it's
    too long, we can hit limits, and the file name will be truncated. Also, it
    doesn't sanitize the instance name, it's possible to create an instance with
    non-ascii symbols in its name.
    
    Fix Description: Add more checks to 'dscreate from-file' installation.
    Add a limitation for nsslapd-ldapifilepath string lenght because it is
    limited by sizeof((*ports_info.i_listenaddr)->local.path)) it is copied to.
    
    https://pagure.io/389-ds-base/issue/51086
    
    Reviewed by: firstyear, mreynolds (Thanks!)
    
        
file modified
+12 -0