/* kerberos.c - ldbm backend kerberos bind routines */
/* $OpenLDAP$ */
/*
- * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved.
+ * Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved.
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
*/
#include "portable.h"
-#ifdef HAVE_KERBEROS
+#ifdef LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND
#include <stdio.h>
#include <ac/string.h>
#include "slap.h"
-#include "back-ldbm.h"
#define LDAP_KRB_PRINCIPAL "ldapserver"
-extern char *ldap_srvtab;
-extern Attribute *attr_find();
-
krbv4_ldap_auth(
Backend *be,
struct berval *cred,
Debug( LDAP_DEBUG_TRACE, "=> kerberosv4_ldap_auth\n", 0, 0, 0 );
- SAFEMEMCPY( ktxt->dat, cred->bv_val, cred->bv_len );
+ AC_MEMCPY( ktxt->dat, cred->bv_val, cred->bv_len );
ktxt->length = cred->bv_len;
strcpy( instance, "*" );