diff options
author | Gerald Carter <jerry@samba.org> | 2007-01-19 14:29:42 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2007-01-19 14:29:42 +0000 |
commit | 81f26163bcd748f5fbbf79d38af00f4239dc9cc7 (patch) | |
tree | 6945f87edce23dc3f4d05527c30fc327fb1c6c58 | |
parent | 3f68e1f41dc52e1aada1947ef27199147fcc273d (diff) | |
download | samba-81f26163bcd748f5fbbf79d38af00f4239dc9cc7.tar.gz samba-81f26163bcd748f5fbbf79d38af00f4239dc9cc7.tar.xz samba-81f26163bcd748f5fbbf79d38af00f4239dc9cc7.zip |
r20903: Replace the hardcoded "smb.conf" string with the dyn_CONFIGFILE
-rw-r--r-- | source/utils/net_ads.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/source/utils/net_ads.c b/source/utils/net_ads.c index bd679839546..48127f6c8a7 100644 --- a/source/utils/net_ads.c +++ b/source/utils/net_ads.c @@ -936,8 +936,8 @@ static NTSTATUS check_ads_config( void ) } if ( lp_security() == SEC_ADS && !*lp_realm()) { - d_fprintf(stderr, "realm must be set in in smb.conf for ADS " - "join to succeed.\n"); + d_fprintf(stderr, "realm must be set in in %s for ADS " + "join to succeed.\n", dyn_CONFIGFILE); return NT_STATUS_INVALID_PARAMETER; } @@ -1405,9 +1405,9 @@ int net_ads_join(int argc, const char **argv) } if (strcmp(ads->config.realm, lp_realm()) != 0) { - d_fprintf(stderr, "realm of remote server (%s) and realm in smb.conf " + d_fprintf(stderr, "realm of remote server (%s) and realm in %s " "(%s) DO NOT match. Aborting join\n", ads->config.realm, - lp_realm()); + dyn_CONFIGFILE, lp_realm()); nt_status = NT_STATUS_INVALID_PARAMETER; goto fail; } @@ -1470,10 +1470,11 @@ int net_ads_join(int argc, const char **argv) /* Check the short name of the domain */ if ( !strequal(lp_workgroup(), short_domain_name) ) { - d_printf("The workgroup in smb.conf does not match the short\n"); + d_printf("The workgroup in %s does not match the short\n", dyn_CONFIGFILE); d_printf("domain name obtained from the server.\n"); d_printf("Using the name [%s] from the server.\n", short_domain_name); - d_printf("You should set \"workgroup = %s\" in smb.conf.\n", short_domain_name); + d_printf("You should set \"workgroup = %s\" in %s.\n", + short_domain_name, dyn_CONFIGFILE); } d_printf("Using short domain name -- %s\n", short_domain_name); |