#define NEED_SOCKETS
+#ifndef _WIN32
+#include "port-sockets.h"
+#endif
#include <krb5.h>
+#ifdef HAVE_KRB4
#include <krb.h>
+#endif
#include <ldap.h>
#ifdef _WIN32
#include <wshelper.h>
#include "krb5_err.h"
#else
-#include "port-sockets.h"
#include <sys/socket.h>
#include <netdb.h>
#include <sys/select.h>
static char temp[128];
ULONG version = LDAP_VERSION3;
ULONG rc;
- int Max_wait_time = 500;
+ int Max_wait_time = 1000;
int Max_size_limit = LDAP_NO_LIMIT;
if (strlen(ldap_domain) == 0)
rc = ldap_set_option((*ldap_handle), LDAP_OPT_SIZELIMIT,
(void *)&Max_size_limit);
rc = ldap_set_option((*ldap_handle), LDAP_OPT_REFERRALS, LDAP_OPT_OFF);
- rc = ldap_adgssapi_bind((*ldap_handle), dn_path, GSSSASL_PRIVACY_PROTECTION);
+ rc = ldap_adgssapi_bind((*ldap_handle), dn_path, 0);
if (rc == LDAP_SUCCESS)
{
if (connect_to_kdc)