smbtorture TCONDEV fails to connect to a server running with ADS security as the flags for initiating the connection are not set correctly. The correct code in torture.c::1238 looks as follows: ---------------------------------------------------------- static BOOL run_tcon_devtype_test(int dummy) { static struct cli_state *cli1 = NULL; BOOL retry; int flags = 0; NTSTATUS status; BOOL ret = True; if (use_kerberos) flags |= CLI_FULL_CONNECTION_USE_KERBEROS; status = cli_full_connection(&cli1, myname, host, NULL, port_to_use, NULL, NULL, username, workgroup, password, flags, Undefined, &retry); ----------------------------------------------------------