failing tests in the testsuite on debian

Michael Tokarev mjt at tls.msk.ru
Sat Nov 12 20:24:21 UTC 2022


ok. After quite some digging I found out that the selftest was missing
two pieces - namely, tdb-tools (for tdbbackup) and lmdb-utils - spotted
this in the test log, by a very good chance.  After installing the two,
the --quick test looks quite a bit more promising now.  But there are
failures still.


1.
xfail: samba3.smb2.session enc.reconnect1(nt4_dc) [
Exception: Exception: ../../source4/torture/smb2/session.c:91: (&io1)->out.file_attr was 128 (0x80), expected 32 (0x20): out.file_attr incorrect
]
there are 30+ failures like this.

This is FILE_ATTRIBUTE_ARCHIVE (0x20) vs FILE_ATTRIBUTE_NORMAL (0x80).
Apparently the testsuite expects a file to have ARCHIVE attribute,
but in reality it is NORMAL instead.  This happens in
samba3.smb2.session enc.* tests only, so far.


2.
failure: samba3.rpc.schannel_anon_setpw anonymous password set (schannel enforced server-side).schannel_anon_setpw(nt4_dc_schannel) [
Exception: Exception: ../../source4/torture/rpc/schannel.c:796: status was NT_STATUS_CONNECTION_DISCONNECTED, expected NT_STATUS_OK: Failed to connect 
without schannel
]


3.
Repacking database from v1 to v2 format (first record CN=CA-Certificate-DN,CN=Schema,CN=Configuration,DC=LOCALRPCPROXY)
Repack: re-packed 10000 records so far
Repacking database from v1 to v2 format (first record CN=organizationalUnit-Display,CN=40C,CN=DisplaySpecifiers,CN=Configuration,DC=LOCALRPCPROXY)
Repacking database from v1 to v2 format (first record CN=Backup Operators,CN=Builtin,DC=LOCALRPCPROXY)
Could not find machine account in secrets database: Failed to fetch machine account password for SAMBADOMAIN from both secrets.ldb (Could not find 
entry to match filter: '>
Could not find machine account in secrets database: Failed to fetch machine account password for SAMBADOMAIN from both secrets.ldb (Could not find 
entry to match filter: '>
Could not find machine account in secrets database: Failed to fetch machine account password for SAMBADOMAIN from both secrets.ldb (Could not find 
entry to match filter: '>
Joined domain SAMBADOMAIN (S-1-5-21-3017863810-1230438808-2260356029)
ERROR: Unable to find account where 'sAMAccountName=localrpcproxy$'
Delegation failed
NSS_WRAPPER_HOSTS='/build/pkg/samba-4.17.2+dfsg/testbuild/st/hosts' SOCKET_WRAPPER_DEFAULT_IFACE="21" 
RESOLV_WRAPPER_HOSTS="/build/pkg/samba-4.17.2+dfsg/testbuild/st/dns_h>
failed to start up environment 'rpc_proxy' at /build/pkg/samba-4.17.2+dfsg/testbuild/selftest/target/Samba.pm line 126.
samba can't start up known environment 'rpc_proxy' at /build/pkg/samba-4.17.2+dfsg/testbuild/selftest/selftest.pl line 824.
no output for name[samba4.rpc.echo against rpc proxy with domain creds(rpc_proxy)]

It is still failing in setting environment for rpc_proxy, but now due to a different error,
it seems, - missing sAMAccountName=localrpcproxy$.  This is seen in the output only not
in st/subunit. In the subunit file, here's the info about this:

PROVISIONING RPC PROXY...
User 'testallowed' added successfully
User 'srv_account' added successfully
Modified 1 records successfully
Modified 1 records successfully
User 'testdenied' added successfully
Modified 1 records successfully
User 'testupnspn' added successfully
Modified 1 records successfully
Added members to group Allowed RODC Password Replication Group
User 'alice' added successfully
User 'bob' added successfully
User 'jane' added successfully
User 'joe' added successfully
Added group Samba Users
Added members to group Samba Users
Changed primary group to 'Samba Users'
Modified 1 records successfully
NSS_WRAPPER_HOSTS='/build/pkg/samba-4.17.2+dfsg/testbuild/st/hosts' SOCKET_WRAPPER_DEFAULT_IFACE="21" 
RESOLV_WRAPPER_HOSTS="/build/pkg/samba-4.17.2+dfsg/testbuild/st/dns_host_file" 
KRB5_CONFIG="/build/pkg/samba-4.17.2+dfsg/testbuild/st/ad_dc_ntvfs/etc/krb5.conf" 
KRB5CCNAME="/build/pkg/samba-4.17.2+dfsg/testbuild/st/rpc_proxy/krb5_ccache" 
RESOLV_CONF="/build/pkg/samba-4.17.2+dfsg/testbuild/st/dns_hub/rootdnsforwarder/resolv.conf" 
GNUPGHOME="/build/pkg/samba-4.17.2+dfsg/testbuild/st/ad_dc_ntvfs/gnupg" python3 ./bin/samba-tool delegation for-any-protocol 'LOCALRPCPROXY$' on 
--configfile=/build/pkg/samba-4.17.2+dfsg/testbuild/st/ad_dc_ntvfs/etc/smb.conftestsuite: samba4.rpc.echo against rpc proxy with domain creds(rpc_proxy)
testsuite-error: samba4.rpc.echo against rpc proxy with domain creds(rpc_proxy) [
unable to set up environment rpc_proxy - exiting
]


And the summary is:
FAILED (39 failures, 0 errors and 0 unexpected successes in 3 testsuites)


Should we be concerned?

Thanks,

/mjt



More information about the samba-technical mailing list