mirror of
https://github.com/samba-team/samba.git
synced 2025-11-07 12:23:51 +03:00
s3-libnet: Allow the keytab function to use a relative path
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
committed by
Stefan Metzmacher
parent
c2f5c30bea
commit
eb880ccc7c
@@ -81,7 +81,10 @@ krb5_error_code libnet_keytab_init(TALLOC_CTX *mem_ctx,
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = smb_krb5_open_keytab(context, keytab_name, true, &keytab);
|
ret = smb_krb5_open_keytab_relative(context,
|
||||||
|
keytab_name,
|
||||||
|
true, /* write_access */
|
||||||
|
&keytab);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
DEBUG(1,("keytab_init: smb_krb5_open_keytab failed (%s)\n",
|
DEBUG(1,("keytab_init: smb_krb5_open_keytab failed (%s)\n",
|
||||||
error_message(ret)));
|
error_message(ret)));
|
||||||
|
|||||||
Reference in New Issue
Block a user