const struct sockaddr_storage *remote_sockaddr = NULL;
bool sealed_pipes = true;
bool strong_key = true;
+ bool require_schannel = false;
retry:
result = init_dc_connection_rpc(domain, false);
TALLOC_FREE(conn->lsa_pipe);
- if (IS_DC) {
+ if (IS_DC ||
+ domain->secure_channel_type != SEC_CHAN_NULL)
+ {
/*
- * Make sure we only use schannel as AD DC.
+ * Make sure we only use schannel as DC
+ * or with a direct trust
*/
+ require_schannel = true;
goto schannel;
}
goto done;
}
- if (IS_DC) {
+ if (require_schannel) {
/*
- * Make sure we only use schannel as AD DC.
+ * Make sure we only use schannel as DC
+ * or with a direct trust
*/
goto done;
}
anonymous:
- if (IS_DC) {
+ if (require_schannel) {
/*
- * Make sure we only use schannel as AD DC.
+ * Make sure we only use schannel as DC
+ * or with a direct trust
*/
goto done;
}