summaryrefslogtreecommitdiff
path: root/source3/libnet
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-07-29 10:16:37 +0200
committerMichael Adam <obnox@samba.org>2008-08-01 16:04:42 +0200
commit18976c0129239b5352fca5e8c7e0e61b2cb5d0bf (patch)
treec987b7b25bf612135ee078f5bbebcad17ff81df1 /source3/libnet
parent363fd6e2971358b86b6e35dd71d2e3154a20106a (diff)
downloadsamba-18976c0129239b5352fca5e8c7e0e61b2cb5d0bf.tar.gz
samba-18976c0129239b5352fca5e8c7e0e61b2cb5d0bf.tar.bz2
samba-18976c0129239b5352fca5e8c7e0e61b2cb5d0bf.zip
libnet keytab: add enctype parameter to libnet_keytab_search().
Not really used yet. Note: callers use ENCTYPE_ARCFOUR_HMAC enctype for UTDV (for now). This is what is currently stored. This is to be changed to ENCTYPE_NULL. Michael (This used to be commit cb91d07413430e0e0a16846d2c44aae8c165400e)
Diffstat (limited to 'source3/libnet')
-rw-r--r--source3/libnet/libnet_dssync_keytab.c6
-rw-r--r--source3/libnet/libnet_keytab.c1
-rw-r--r--source3/libnet/libnet_proto.h1
3 files changed, 6 insertions, 2 deletions
diff --git a/source3/libnet/libnet_dssync_keytab.c b/source3/libnet/libnet_dssync_keytab.c
index cc53c983af..526bb73647 100644
--- a/source3/libnet/libnet_dssync_keytab.c
+++ b/source3/libnet/libnet_dssync_keytab.c
@@ -73,7 +73,8 @@ static NTSTATUS keytab_startup(struct dssync_context *ctx, TALLOC_CTX *mem_ctx,
ctx->nc_dn, ctx->dns_domain_name);
NT_STATUS_HAVE_NO_MEMORY(principal);
- entry = libnet_keytab_search(keytab_ctx, principal, 0, mem_ctx);
+ entry = libnet_keytab_search(keytab_ctx, principal, 0, ENCTYPE_ARCFOUR_HMAC,
+ mem_ctx);
if (entry) {
enum ndr_err_code ndr_err;
old_utdv = talloc(mem_ctx, struct replUpToDateVectorBlob);
@@ -129,7 +130,8 @@ static NTSTATUS keytab_finish(struct dssync_context *ctx, TALLOC_CTX *mem_ctx,
status = add_to_keytab_entries(mem_ctx, keytab_ctx, 0,
ctx->nc_dn, "UTDV",
- ENCTYPE_NULL, blob);
+ ENCTYPE_ARCFOUR_HMAC,
+ blob);
if (!NT_STATUS_IS_OK(status)) {
goto done;
}
diff --git a/source3/libnet/libnet_keytab.c b/source3/libnet/libnet_keytab.c
index cec39273e3..e51cd05572 100644
--- a/source3/libnet/libnet_keytab.c
+++ b/source3/libnet/libnet_keytab.c
@@ -143,6 +143,7 @@ krb5_error_code libnet_keytab_add(struct libnet_keytab_context *ctx)
struct libnet_keytab_entry *libnet_keytab_search(struct libnet_keytab_context *ctx,
const char *principal, int kvno,
+ const krb5_enctype enctype,
TALLOC_CTX *mem_ctx)
{
krb5_error_code ret = 0;
diff --git a/source3/libnet/libnet_proto.h b/source3/libnet/libnet_proto.h
index 65d37b0ab8..43046a44c0 100644
--- a/source3/libnet/libnet_proto.h
+++ b/source3/libnet/libnet_proto.h
@@ -53,6 +53,7 @@ krb5_error_code libnet_keytab_add(struct libnet_keytab_context *ctx);
struct libnet_keytab_entry *libnet_keytab_search(struct libnet_keytab_context *ctx,
const char *principal, int kvno,
+ const const krb5_enctype enctype,
TALLOC_CTX *mem_ctx);
#endif