Bug 43853 - Test case 53_samba-common/30winbind fails in UCS 4.2
Test case 53_samba-common/30winbind fails in UCS 4.2
Status: CLOSED FIXED
Product: UCS Test
Classification: Unclassified
Component: Samba
unspecified
Other Linux
: P5 normal (vote)
: UCS 4.2
Assigned To: Stefan Gohmann
Arvid Requate
: interim-4
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-03-14 21:24 CET by Stefan Gohmann
Modified: 2017-04-04 18:28 CEST (History)
0 users

See Also:
What kind of report is it?: ---
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 Stefan Gohmann univentionstaff 2017-03-14 21:24:59 CET
The test case 53_samba-common/30winbind fails in UCS 4.2

root@master421:~# /usr/share/ucs-test/53_samba-common/30winbind -f
##  create User
info 2017-03-14 17:20:57         create user 9w9oüme0
Object created: uid=9w9oüme0,cn=users,dc=deadlock42,dc=intranet
debug 2017-03-14 17:20:57        Waiting for replication...
OK: replication complete (nid=2394 lid=2394)
##  wbinfo -t
info 2017-03-14 17:20:58         replication complete.
checking the trust secret for domain DEADLOCK42 via RPC calls succeeded
##  wbinfo --ping
Ping to winbindd succeeded
##  wbinfo --ping-dc
checking the NETLOGON for domain[DEADLOCK42] dc connection to "master421.deadlock42.intranet" succeeded
##  wbinfo -D
Waiting for S4-Connector and LDAP replication of domain sambaSID for user 9w9oüme0 (current: S-1-4-2076)...
S4-Connector and LDAP replication of domain sambaSID took 43 seconds
##  wbinfo --name-to-sid:       S-1-5-21-2160655556-514580091-1068932707-1179
##  wbinfo --sid-to-uid:        2076
##  wbinfo --uid-to-sid:        S-1-5-21-2160655556-514580091-1068932707-1179
##  wbinfo --sid-to-name:       DEADLOCK42+9w9oüme0
##  checking user groups
##  wbinfo --user-domgroups:    S-1-5-21-2160655556-514580091-1068932707-1179
failed to call wbcSidToGid: WBC_ERR_DOMAIN_NOT_FOUND
Could not convert sid S-1-5-21-2160655556-514580091-1068932707-1179 to gid
error 2017-03-14 17:21:17        wbinfo --sid-to-gid 'S-1-5-21-2160655556-514580091-1068932707-1179' failed
error 2017-03-14 17:21:17        **************** Test failed above this line (1) ****************
info 2017-03-14 17:21:17         remove user 9w9oüme0
##  wbinfo --sid-to-gid:        Object removed: uid=9w9oüme0,cn=users,dc=deadlock42,dc=intranet
debug 2017-03-14 17:21:17        user 9w9oüme0 removed
info 2017-03-14 17:21:17         checking whether the user 9w9oüme0 is really removed
debug 2017-03-14 17:21:17        user 9w9oüme0 does not exist
Starting 1 ucs-test at 2017-03-14 17:21:17 to /dev/null
Winbind Test............................................................................................................................................ Test failed
root@master421:~# 


It looks like 'wbinfo --user-domgroup' returns the user sid too:

root@master421:~# wbinfo --user-domgroups=S-1-5-21-2160655556-514580091-1068932707-1119
S-1-5-21-2160655556-514580091-1068932707-1119
S-1-5-21-2160655556-514580091-1068932707-513
root@master421:~#
Comment 1 Stefan Gohmann univentionstaff 2017-03-14 21:31:44 CET
r77716:
* 53_samba-common/30winbind: In UCS 4.2, wbinfo --user-domgroups
  returns the user sid too. The test case no longer tries to convert
  this sid into group information (Bug #43853)
Comment 2 Arvid Requate univentionstaff 2017-03-23 13:59:53 CET
Ok, I didn't find the origin of this change yet. net rpc user info only returns the groups.
Comment 3 Stefan Gohmann univentionstaff 2017-04-04 18:28:42 CEST
UCS 4.2 has been released:
 https://docs.software-univention.de/release-notes-4.2-0-en.html
 https://docs.software-univention.de/release-notes-4.2-0-de.html

If this error occurs again, please use "Clone This Bug".