Univention Bugzilla – Bug 29058
Samba4-Test: Password Wechsel
Last modified: 2013-11-19 06:43:00 CET
Es soll getestet werden ob bei einer Änderung des Passworts mit Samba, UDM oder Kerberos diese Änderung auch zu den jeweils anderen beiden Komponenten synchronisiert wird.
Test wurde hinzugefügt als 51_samba4/41password_change Revision 36987
Der Test schlägt im Jenkins fehl: Standard Ausgabe (STDOUT) Password complexity deactivated! Minimum password age changed! All changes applied successfully! Object created: uid=pyvst5dw,cn=users,dc=eu-west-1,dc=compute,dc=amazonaws,dc=com ----initial connection ----password change with samba-tool Changed password OK ----password change with udm Object modified: uid=pyvst5dw,cn=users,dc=eu-west-1,dc=compute,dc=amazonaws,dc=com ----password change with kpasswd Found /root/root.secret, using that secret for Administrator access ldap_bind: Invalid credentials (49) kinit: Password incorrect Object removed: uid=pyvst5dw,cn=users,dc=eu-west-1,dc=compute,dc=amazonaws,dc=com Password complexity activated! Minimum password age changed! All changes applied successfully! Standard Fehler (STDERR) debug 2013-03-11 04:14:17 Locale is en_US.UTF-8:UTF-8 debug 2013-03-11 04:14:17 locale: LANG=en_US.UTF-8 LANGUAGE= LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL= info 2013-03-11 04:14:17 create user pyvst5dw error 2013-03-11 04:15:02 Could not authenticate against samba after password change with kpasswd. error 2013-03-11 04:15:02 **************** Test failed above this line (1) **************** error 2013-03-11 04:15:36 *** Check failed (1), but this might be caused by the error above *** error 2013-03-11 04:15:46 *** Check failed (1), but this might be caused by the error above *** info 2013-03-11 04:15:46 remove user pyvst5dw debug 2013-03-11 04:15:46 user pyvst5dw removed info 2013-03-11 04:15:46 checking whether the user pyvst5dw is really removed debug 2013-03-11 04:15:46 user pyvst5dw does not exist
Created attachment 5151 [details] Patch-Vorschlag Ich denke ssh kann hier vermieden werden. Bei pexpect sollte darauf geachtet werden, dass die erwarteten Strings auch wirklich auftreten damit es nicht erst auf die timeouts wartet.
Der Patch wurde so angewendet. Es wird nun also ssh vermieden und die Anzahl der Iterationen der einzelnen Abfragen ausgegeben. Zudem wurde ein Fehler beim Wiederherstellen der Passworteinstellungen behoben.
Ich habe noch eine Abhängigkeit auf python-pexpect hinzugefügt: Aus der Logdatei: Authentication against kinit after password change with UDM succeeded at attempt 1. ----password change with kpasswd Traceback (most recent call last): File "kpasswd_change_pwd.py", line 2, in <module> import pexpect ImportError: No module named pexpect
Ok, works. There should be one changelog entry gathering all recent (post 3.1-1) changes to the samba4 testcases.
I also activated the tests for backup ans slave. changelog added, please QA.
Move to TM 3.2.
OK, the test looks good. The S3 test still failed, but that is Bug #31794.
UCS 3.2 has been released: http://docs.univention.de/release-notes-3.2-en.html http://docs.univention.de/release-notes-3.2-de.html If this error occurs again, please use "Clone This Bug".