Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
/*
* This calls cli_credentials_set_conf() to get the defaults
* form smb.conf and set the winbind separator.
+ *
+ * Just warn that we can't read the smb.conf. The might not be
+ * one available or we want to ignore it.
*/
- cli_credentials_guess(creds, lp_ctx);
+ ok = cli_credentials_guess(creds, lp_ctx);
+ if (!ok) {
+ fprintf(stderr,
+ "Unable to read defaults from smb.conf\n");
+ }
(void)cli_credentials_get_password_and_obtained(creds,
&password_obtained);