c->creds = samba_cmdline_get_creds();
{
+ enum credentials_obtained principal_obtained =
+ cli_credentials_get_principal_obtained(c->creds);
+ enum credentials_obtained password_obtained =
+ cli_credentials_get_password_obtained(c->creds);
enum credentials_obtained username_obtained =
CRED_UNINITIALISED;
enum smb_encryption_setting encrypt_state =
cli_credentials_get_kerberos_state(c->creds);
uint32_t gensec_features;
+ if (principal_obtained == CRED_SPECIFIED) {
+ c->explicit_credentials = true;
+ }
+ if (password_obtained == CRED_SPECIFIED) {
+ c->explicit_credentials = true;
+ }
+
c->opt_user_name = cli_credentials_get_username_and_obtained(
c->creds,
&username_obtained);
const char *opt_password;
const char *opt_user_name;
bool opt_user_specified;
+ bool explicit_credentials;
const char *opt_workgroup;
int opt_long_list_entries;
int opt_reboot;
r->in.debug = debug;
c->creds = self->creds;
+ c->explicit_credentials = true;
c->opt_user_name = cli_credentials_get_username(self->creds);
c->opt_password = cli_credentials_get_password(self->creds);
c->opt_kerberos = cli_credentials_get_kerberos_state(self->creds);