mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
s3:libads: net ads keytab list fails with "Key table name malformed"
When keytab_name is NULL don't call smb_krb5_kt_open use ads_keytab_open
instead, this function will determine the correct keytab to use.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13166
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
(cherry picked from commit 3048ae318f
)
This commit is contained in:
parent
3679be1eae
commit
19c99976da
@ -639,7 +639,11 @@ int ads_keytab_list(const char *keytab_name)
|
||||
return ret;
|
||||
}
|
||||
|
||||
ret = smb_krb5_kt_open(context, keytab_name, False, &keytab);
|
||||
if (keytab_name == NULL) {
|
||||
ret = ads_keytab_open(context, &keytab);
|
||||
} else {
|
||||
ret = smb_krb5_kt_open(context, keytab_name, False, &keytab);
|
||||
}
|
||||
if (ret) {
|
||||
DEBUG(1, ("smb_krb5_kt_open failed (%s)\n",
|
||||
error_message(ret)));
|
||||
|
Loading…
Reference in New Issue
Block a user