Bug 1212635

Summary: 389ds: the command dsctl db2ldif fails
Product: [openSUSE] openSUSE Distribution Reporter: Giacomo Comes <comes>
Component: OtherAssignee: William Brown <william.brown>
Status: NEW --- QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Leap 15.5   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Giacomo Comes 2023-06-23 04:16:18 UTC
In order to make a backup of a ds instance I run:
  dsctl <DSINST> stop
  dsctl <DSINST> db2ldif --replication userRoot
and a backup file is created in /var/lib/dirsrv/slapd-<DSINST>/ldif
The second command works on Leap 15.4 but it fails on Leap 15.5 with the error message:
  Error: expected str, bytes or os.PathLike object, not NoneType
If I specify the path to the ldif output location:
  dsctl <DSINST> db2ldif --replication userRoot /path/to/file.ldif
then the command succeeds.
dsctl <DSINST> db2ldif --help
shows:
  usage: dsctl [instance] db2ldif [-h] [--replication] [--encrypted]
                                backend [ldif]
which indicates that the ldif path is an optional parameter.

Either there is a bug in the leap 15.5 version of dsctl, or the behaviour has changed and the help output had not been updated.