Bug 2170557 - dsctl ldifgen error: DirSrv has no attribute 'userid'
Summary: dsctl ldifgen error: DirSrv has no attribute 'userid'
Keywords:
Status: ON_QA
Alias: None
Product: Red Hat Directory Server
Classification: Red Hat
Component: 389-ds-base
Version: 11.7
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: DS11.8
: dirsrv-11.8
Assignee: mreynolds
QA Contact: LDAP QA Team
Zuzana Zoubkova
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-02-16 17:30 UTC by Viktor Ashirov
Modified: 2023-08-11 16:24 UTC (History)
6 users (show)

Fixed In Version: redhat-ds-11-8090020230808123031.4a0d6ab8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker IDMDS-3514 0 None None None 2023-08-07 18:40:38 UTC
Red Hat Issue Tracker IDMDS-3516 0 None None None 2023-08-07 18:41:05 UTC

Description Viktor Ashirov 2023-02-16 17:30:30 UTC
Description of problem:
I get an error while running 
dsctl -v standalone1 ldifgen users
...
DEBUG: DirSrv has no attribute 'userid'
Traceback (most recent call last):
  File "/usr/sbin/dsctl", line 160, in <module>
    result = args.func(inst, log, args)
  File "/usr/lib/python3.6/site-packages/lib389/cli_ctl/dbgen.py", line 195, in dbgen_create_users
    dbgen_users(inst, args.number, args.ldif_file, args.suffix, generic=args.generic, parent=args.parent, startIdx=args.start_idx, rdnCN=False, pseudol10n=args.localize)
  File "/usr/lib/python3.6/site-packages/lib389/dbgen.py", line 296, in dbgen_users
    finalize_ldif_file(instance, ldif_file)
  File "/usr/lib/python3.6/site-packages/lib389/dbgen.py", line 135, in finalize_ldif_file
    userid = ensure_str(instance.userid)
  File "/usr/lib64/python3.6/site-packages/ldap/ldapobject.py", line 363, in __getattr__
    self.__class__.__name__,repr(name)
AttributeError: DirSrv has no attribute 'userid'
ERROR: Error: DirSrv has no attribute 'userid'
Version-Release number of selected component (if applicable):


How reproducible:
always

Steps to Reproduce:
1. dsctl -v standalone1 ldifgen users


Actual results:
dsctl exits with traceback

Expected results:
dsctl should generate an ldif with users.

Additional info:
https://github.com/389ds/389-ds-base/issues/5142


Note You need to log in before you can comment on or make changes to this bug.