diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libads/kerberos.c | 8 |
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; } |