summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2013-08-05 09:25:11 +0200
committerAndreas Schneider <asn@cryptomilk.org>2013-08-05 12:24:43 +0200
commit6659f0164c6b8d7ad522bcd6c2c6748c3d9bca81 (patch)
treed65506f88c3f9645d9528d391a1677abe7d4daf3 /source3
parent94be8d63cd21fbb9e31bf7a92af82e19c596f94f (diff)
downloadsamba-6659f0164c6b8d7ad522bcd6c2c6748c3d9bca81.tar.gz
samba-6659f0164c6b8d7ad522bcd6c2c6748c3d9bca81.tar.bz2
samba-6659f0164c6b8d7ad522bcd6c2c6748c3d9bca81.zip
s3-libads: Print a message if no realm has been specified.
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Mon Aug 5 12:24:44 CEST 2013 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r--source3/libads/kerberos.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source3/libads/kerberos.c b/source3/libads/kerberos.c
index bb74305059..b026e09901 100644
--- a/source3/libads/kerberos.c
+++ b/source3/libads/kerberos.c
@@ -839,7 +839,13 @@ bool create_local_private_krb5_conf_for_domain(const char *realm,
return false;
}
- if (!realm || !domain || !pss || !kdc_name) {
+ if (realm == NULL) {
+ DEBUG(0, ("No realm has been specified! Do you really want to "
+ "join an Active Directory server?\n"));
+ return false;
+ }
+
+ if (domain == NULL || pss == NULL || kdc_name == NULL) {
return false;
}