s3-libads: Print a message if no realm has been specified.
authorAndreas Schneider <asn@samba.org>
Mon, 5 Aug 2013 07:25:11 +0000 (09:25 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 5 Aug 2013 10:24:43 +0000 (12:24 +0200)
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

source3/libads/kerberos.c

index bb7430505900e1dd23bfd4efaf8892ec1b154f3b..b026e099013506ea40e09d4b617fde452767144a 100644 (file)
@@ -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;
        }