diff options
author | Günther Deschner <gd@samba.org> | 2013-05-17 15:14:35 +0200 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2013-08-05 10:29:59 +0200 |
commit | 6dc7c63efa95d0c04b542667d9b6a6621c8139bf (patch) | |
tree | 6a2798cbe32035f6fc7d443e292f2d3ac5a71315 /source3 | |
parent | b699d404bb5d4385a757b5aa5d0e792cf9d5de59 (diff) | |
download | samba-6dc7c63efa95d0c04b542667d9b6a6621c8139bf.tar.gz samba-6dc7c63efa95d0c04b542667d9b6a6621c8139bf.tar.xz samba-6dc7c63efa95d0c04b542667d9b6a6621c8139bf.zip |
s3-libads: Fail create_local_private_krb5_conf_for_domain() if parameters missing.
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libads/kerberos.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/libads/kerberos.c b/source3/libads/kerberos.c index 96d194dc31..bb74305059 100644 --- a/source3/libads/kerberos.c +++ b/source3/libads/kerberos.c @@ -839,6 +839,10 @@ bool create_local_private_krb5_conf_for_domain(const char *realm, return false; } + if (!realm || !domain || !pss || !kdc_name) { + return false; + } + dname = lock_path("smb_krb5"); if (!dname) { return false; |