Bug 54591 - Attribute (username) is parsed wrong as (3000012), expected in ('Administrator')
Attribute (username) is parsed wrong as (3000012), expected in ('Administrator')
Status: NEW
Product: UCS@school
Classification: Unclassified
Component: Samba 4
UCS@school 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: Samba maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2022-03-25 11:09 CET by Florian Best
Modified: 2023-06-12 16:29 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2022-03-25 11:09:11 CET
The smbstatus parser is failing since some time to detect the correct Administrator username:

https://univention-dist-jenkins.k8s.knut.univention.de/job/UCSschool-5.0/job/Install%20Multiserver/lastCompletedBuild/Config=s4,TestGroup=base1,UCSRelease=public/testReport/90_ucsschool/103_ucsschool_smbstatus_parser/test_smbstatus_parser/

Error Message

AssertionError: Attribute (username) is parsed wrong as (3000012), expected in ('Administrator') assert '3000012' == 'Administrator'   - 3000012   + Administrator

Stacktrace

Traceback (most recent call last):
  File "/usr/share/ucs-test/90_ucsschool/103_ucsschool_smbstatus_parser.py", line 65, in test_smbstatus_parser
    check_attributes(process, expected_values)
  File "/usr/share/ucs-test/90_ucsschool/103_ucsschool_smbstatus_parser.py", line 93, in check_attributes
    assert (
AssertionError: Attribute (username) is parsed wrong as (3000012), expected in ('Administrator')
assert '3000012' == 'Administrator'
  - 3000012
  + Administrator

Standard Output

smbstatus =  [{'pid': '26134', 'username': '3000012', 'group': 'Domain Admins', 'machine': '10.207.197.166', 'ipAddress': None, 'ipv4Address': '10.207.197.166:57248', 'ipv6Address': None, 'version': 'SMB3_11'}, {'pid': '26132', 'username': '3000012', 'group': 'Domain Admins', 'machine': '10.207.197.166', 'ipAddress': None, 'ipv4Address': '10.207.197.166:57246', 'ipv6Address': None, 'version': 'SMB3_11'}, {'pid': '26136', 'username': '3000012', 'group': 'Domain Admins', 'machine': '10.207.197.166', 'ipAddress': None, 'ipv4Address': '10.207.197.166:57250', 'ipv6Address': None, 'version': 'SMB3_11'}]
Comment 1 Florian Best univentionstaff 2022-03-25 11:27:02 CET
fad2d567b3 Bug #54591: [grep_traceback]: ignore traceback