52930da Issue 50823 - dsctl doesn't work with 'slapd-' in the instance name

Authored and Committed by mhonek 4 years ago
    Issue 50823 - dsctl doesn't work with 'slapd-' in the instance name
    
    Bug Description:
    DirSrv.list drops all occurrences of 'slapd-' within a serverid
    rendering names containing it damaged.
    
    Fix Description:
    Remove only the first occurrence of 'slapd-' in the serverid, which is
    the prefix that is expected to be removed.
    
    Fixes https://pagure.io/389-ds-base/issue/50823
    
    Author: Matus Honek <mhonek@redhat.com>
    
    Review by: Mark, William (thanks!)