Bug 43913 - Test case 53_samba-common/05domain-join-ntlm-auth fails in UCS 4.2
Test case 53_samba-common/05domain-join-ntlm-auth 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: Arvid Requate
Stefan Gohmann
: interim-4
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-03-16 15:56 CET by Stefan Gohmann
Modified: 2017-04-04 18:29 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Development Internal
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
test_1489675617.log (17.76 KB, text/plain)
2017-03-16 16:16 CET, Stefan Gohmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Gohmann univentionstaff 2017-03-16 15:56:00 CET
In UCS 4.2, the test case 53_samba-common/05domain-join-ntlm-auth fails on a memberserver joined in S4:

*** BEGIN *** ['/bin/bash', '05domain-join-ntlm-auth'] ***
*** 53_samba-common/05domain-join-ntlm-auth *** Checking domain join and ntlm authentication ***
*** START TIME: 2017-03-16 15:47:40 ***
----create user
info 2017-03-16 15:47:41         create user njro9z1a
Object created: uid=njro9z1a,cn=users,dc=deadlock42,dc=intranet
info 2017-03-16 15:47:42         add user njro9z1a to group Domain Admins
Object modified: cn=Domain Admins,cn=groups,dc=deadlock42,dc=intranet
Traceback (most recent call last):
  File "/usr/sbin/univention-directory-manager", line 201, in <module>
    main()
  File "/usr/sbin/univention-directory-manager", line 196, in main
    result = process_output(output, cmdfile)
  File "/usr/sbin/univention-directory-manager", line 152, in process_output
    print line
IOError: [Errno 32] Broken pipe
could not obtain winbind interface details: WBC_ERR_WINBIND_NOT_AVAILABLE
could not obtain winbind separator!
debug 2017-03-16 15:47:44        Waiting for replication...
OK: replication complete (nid=1740 lid=1740)
info 2017-03-16 15:47:44         replication complete.
----wait for the user to be created
wbcLookupSid: WBC_ERR_WINBIND_NOT_AVAILABLE
TIMEOUT: The user which has been created in UDM could not be found in samba after 20 seconds
----restart winbind
Restarting winbind (via systemctl): winbind.service.
----ntml auth with a wrong password (should fail)
NT_STATUS_NO_SUCH_USER: No such user (0xc0000064)
----ntml auth with a wrong username (should fail)
NT_STATUS_NO_SUCH_USER: No such user (0xc0000064)
----ntml auth with correct credentials
NT_STATUS_NO_SUCH_USER: No such user (0xc0000064)
Comment 1 Stefan Gohmann univentionstaff 2017-03-16 16:14:39 CET
It is currently not reproducible on the same host:

root@member425:~# /usr/share/ucs-test/53_samba-common/05domain-join-ntlm-auth -f
----create user
info 2017-03-16 16:13:20	 create user p2s81oxp
Object created: uid=p2s81oxp,cn=users,dc=deadlock42,dc=intranet
info 2017-03-16 16:13:20	 add user p2s81oxp to group Domain Admins
Object modified: cn=Domain Admins,cn=groups,dc=deadlock42,dc=intranet
debug 2017-03-16 16:13:22	 Waiting for replication...
OK: replication complete (nid=2106 lid=2106)
----wait for the user to be created
info 2017-03-16 16:13:22	 replication complete.
----restart winbind
Failed to open /dev/tty: Kein passendes Gerät bzw. keine passende Adresse gefunden
Restarting winbind (via systemctl): winbind.service.
----ntml auth with a wrong password (should fail)
NT_STATUS_WRONG_PASSWORD: Wrong Password (0xc000006a)
----ntml auth with a wrong username (should fail)
NT_STATUS_NO_SUCH_USER: No such user (0xc0000064)
----ntml auth with correct credentials
NT_STATUS_OK: Success (0x0)
info 2017-03-16 16:13:30	 remove user p2s81oxp
Object removed: uid=p2s81oxp,cn=users,dc=deadlock42,dc=intranet
debug 2017-03-16 16:13:30	 user p2s81oxp removed
info 2017-03-16 16:13:30	 checking whether the user p2s81oxp is really removed
debug 2017-03-16 16:13:31	 user p2s81oxp does not exist
Starting 1 ucs-test at 2017-03-16 16:13:31 to /dev/null
Checking domain join and ntlm authentication................................................................................................................................................................................................ Test passed
root@member425:~# /usr/share/ucs-test/53_samba-common/05domain-join-ntlm-auth -f
----create user
info 2017-03-16 16:13:36	 create user umuwuzhv
Object created: uid=umuwuzhv,cn=users,dc=deadlock42,dc=intranet
info 2017-03-16 16:13:37	 add user umuwuzhv to group Domain Admins
Object modified: cn=Domain Admins,cn=groups,dc=deadlock42,dc=intranet
Traceback (most recent call last):
  File "/usr/sbin/univention-directory-manager", line 201, in <module>
    main()
  File "/usr/sbin/univention-directory-manager", line 196, in main
    result = process_output(output, cmdfile)
  File "/usr/sbin/univention-directory-manager", line 152, in process_output
    print line
IOError: [Errno 32] Broken pipe
debug 2017-03-16 16:13:38	 Waiting for replication...
OK: replication complete (nid=2141 lid=2141)
----wait for the user to be created
info 2017-03-16 16:13:38	 replication complete.
----restart winbind
Failed to open /dev/tty: Kein passendes Gerät bzw. keine passende Adresse gefunden
Restarting winbind (via systemctl): winbind.service.
----ntml auth with a wrong password (should fail)
NT_STATUS_WRONG_PASSWORD: Wrong Password (0xc000006a)
----ntml auth with a wrong username (should fail)
NT_STATUS_NO_SUCH_USER: No such user (0xc0000064)
----ntml auth with correct credentials
NT_STATUS_OK: Success (0x0)
info 2017-03-16 16:13:45	 remove user umuwuzhv
Object removed: uid=umuwuzhv,cn=users,dc=deadlock42,dc=intranet
debug 2017-03-16 16:13:45	 user umuwuzhv removed
info 2017-03-16 16:13:45	 checking whether the user umuwuzhv is really removed
debug 2017-03-16 16:13:46	 user umuwuzhv does not exist
Starting 1 ucs-test at 2017-03-16 16:13:46 to /dev/null
Checking domain join and ntlm authentication................................................................................................................................................................................................ Test passed
root@member425:~#
Comment 2 Stefan Gohmann univentionstaff 2017-03-16 16:16:12 CET
Created attachment 8559 [details]
test_1489675617.log
Comment 3 Arvid Requate univentionstaff 2017-03-16 16:36:34 CET
"wbinfo --separator" failed in this case, no clue why. I changed the test to use testparm instead (r77825).
Comment 4 Stefan Gohmann univentionstaff 2017-03-17 06:41:16 CET
OK, woks now.
Comment 5 Stefan Gohmann univentionstaff 2017-04-04 18:29:33 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".