# uncomment and change the various KRB* lines to point to where the
# kerberos libraries and include files are installed at your site.
#
+# *** NOTE ***
+# If you have an MIT Kerberos V distribution and you compiled it with -krb4
+# flag which enables Kerberos IV compatibility, uncomment KERBEROS_V -
+# this will make sure all your includes can be found where they actually are -
+# in this case /usr/local/kerberos/include/kerberosIV - simple change of
+# KRBINCLUDEFLAG will _not_ work. Also uncomment the correct KRBLIBS define.
+#
+# For Kerberos V with Kerberos IV compatibility uncomment the following line
+#KERBEROS=-DKERBEROS -DKERBEROS_V
+# For Kerberos IV uncomment the following line
#KERBEROS=-DKERBEROS
+#
#AFSKERBEROS=-DAFSKERBEROS
#KRBINCLUDEFLAG = -I/usr/local/kerberos/include
#KRBLIBFLAG = -L/usr/local/kerberos/lib
+# For Kerberos V with Kerberos IV compatibility uncomment the following line
+#KRBLIBS = -lkrb4 -lkrb5 -ldes425
+# For Kerberos IV uncomment the following line
#KRBLIBS = -lkrb -ldes
#############################################################################
# uncomment and change the various KRB* lines to point to where the
# kerberos libraries and include files are installed at your site.
#
+# *** NOTE ***
+# If you have an MIT Kerberos V distribution and you compiled it with -krb4
+# flag which enables Kerberos IV compatibility, uncomment KERBEROS_V -
+# this will make sure all your includes can be found where they actually are -
+# in this case /usr/local/kerberos/include/kerberosIV - simple change of
+# KRBINCLUDEFLAG will _not_ work. Also uncomment the correct KRBLIBS define.
+#
+# For Kerberos V with Kerberos IV compatibility uncomment the following line
+#KERBEROS=-DKERBEROS -DKERBEROS_V
+# For Kerberos IV uncomment the following line
#KERBEROS=-DKERBEROS
+#
#AFSKERBEROS=-DAFSKERBEROS
#KRBINCLUDEFLAG = -I/usr/local/kerberos/include
#KRBLIBFLAG = -L/usr/local/kerberos/lib
+# For Kerberos V with Kerberos IV compatibility uncomment the following line
+#KRBLIBS = -lkrb4 -lkrb5 -ldes425
+# For Kerberos IV uncomment the following line
#KRBLIBS = -lkrb -ldes
#############################################################################
#include <ctype.h>
#ifdef KERBEROS
#include <sys/types.h>
+#ifdef KERBEROS_V
+#include <kerberosIV/krb.h>
+#else
#include <krb.h>
-#endif
+#endif /* KERBEROS_V */
+#endif /* KERBEROS */
#include <lber.h>
#include <ldap.h>
#ifndef lint
static char rcsid_string_to_key_c[] =
-"$Id: string_to_key.c,v 1.1.3.1 1998/08/08 22:43:17 kurt Exp $";
+"$Id: string_to_key.c,v 1.2 1998/08/31 18:49:27 kurt Exp $";
#endif
+#ifdef KERBEROS_V
+#include <kerberosIV/mit-copyright.h>
+#include <kerberosIV/des.h>
+#else
#include <mit-copyright.h>
-#include <stdio.h>
#include <des.h>
+#endif /* KERBEROS_V */
+
+#include <stdio.h>
+
/* #include "des_internal.h" */
#if 1
+#ifdef KERBEROS_V
+#include <kerberosIV/krb.h>
+#else
#include <krb.h>
-#endif
+#endif /* KERBEROS_V */
+#endif /* 1 */
extern int des_debug;
extern int des_debug_print();
#ifdef DOS
#include "msdos.h"
#endif /* DOS */
+
+#ifdef KERBEROS_V
+#include <kerberosIV/krb.h>
+#else
#include <krb.h>
+#endif /* KERBEROS_V */
+
#include <stdlib.h>
#if !defined(DOS) && !defined( _WIN32 )
#include <sys/types.h>
#include <stdio.h>
#include <sys/types.h>
-#include "krb.h"
+#ifdef KERBEROS_V
+#include <kerberosIV/krb.h>
+#else
+#include <krb.h>
+#endif /* KERBEROS_V */
#include <sys/socket.h>
#include <netdb.h>
#include <netinet/in.h>
#include "slap.h"
#include "back-ldbm.h"
#ifdef KERBEROS
-#include "krb.h"
-#endif
+#ifdef KERBEROS_V
+#include <kerberosIV/krb.h>
+#else
+#include <krb.h>
+#endif /* KERBEROS_V */
+#endif /* KERBEROS */
#ifdef LDAP_CRYPT
/* change for crypted passwords -- lukeh */
#include "back-ldbm.h"
#ifdef KERBEROS
-#include "krb.h"
+#ifdef KERBEROS_V
+#include <kerberosIV/krb.h>
+#else
+#include <krb.h>
+#endif /* KERBEROS_V */
#define LDAP_KRB_PRINCIPAL "ldapserver"
#include <sys/time.h>
#ifdef KERBEROS
+#ifdef KERBEROS_V
+#include <kerberosIV/krb.h>
+#else
#include <krb.h>
+#endif /* KERBEROS_V */
#endif /* KERBEROS */
#include <lber.h>