summaryrefslogtreecommitdiff
path: root/source4/libnet
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-11-30 07:45:25 +1100
committerAndrew Bartlett <abartlet@samba.org>2011-11-30 03:22:11 +0100
commit12ce07e53b9453f35a1483d941bfce9c23f790a0 (patch)
tree30ccccb52153031095f8b68a666fb7d101432ec4 /source4/libnet
parent0ee447fef5563e2b26fac6cac7c8fd7a71c80c0a (diff)
downloadsamba-12ce07e53b9453f35a1483d941bfce9c23f790a0.tar.gz
samba-12ce07e53b9453f35a1483d941bfce9c23f790a0.tar.bz2
samba-12ce07e53b9453f35a1483d941bfce9c23f790a0.zip
s4-kdc: Add hdb plugin for samba4, to allow kadmin to work
This will help users who are used to the kadmin interface, and could be extended to import existing MIT or Heimdal keys into a Samba4 AD domain. To use, add to your krb5.conf [kdc] database = { dbname = samba4: } or [kdc] database = { dbname = samba4:/usr/local/samba/etc/smb.conf } And copy hdb_samba4.so from PREFIX/modules/hdb to your Heimdal lib directory Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Wed Nov 30 03:22:11 CET 2011 on sn-devel-104
Diffstat (limited to 'source4/libnet')
-rw-r--r--source4/libnet/libnet_export_keytab.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source4/libnet/libnet_export_keytab.c b/source4/libnet/libnet_export_keytab.c
index 2dae370b1a..593f5fd5d9 100644
--- a/source4/libnet/libnet_export_keytab.c
+++ b/source4/libnet/libnet_export_keytab.c
@@ -5,8 +5,6 @@
#include "kdc/samba_kdc.h"
#include "libnet/libnet.h"
-extern struct hdb_method hdb_samba4;
-
NTSTATUS libnet_export_keytab(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, struct libnet_export_keytab *r)
{
krb5_error_code ret;
@@ -35,7 +33,7 @@ NTSTATUS libnet_export_keytab(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, s
ret = krb5_plugin_register(smb_krb5_context->krb5_context,
PLUGIN_TYPE_DATA, "hdb",
- &hdb_samba4);
+ &hdb_samba4_interface);
if(ret) {
return NT_STATUS_NO_MEMORY;
}