return err;
}
+#ifdef LDAP_OPT_NETWORK_TIMEOUT
st->connectionTimeout = atol(ttl);
ap_log_error(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, 0, cmd->server,
"[%d] ldap connection: Setting connection timeout to %ld seconds.",
getpid(), st->connectionTimeout);
+#else
+ ap_log_error(APLOG_MARK, APLOG_NOTICE, 0, s,
+ "LDAP: Connection timout option not supported by the LDAP SDK in use." );
+#endif
return NULL;
}
"LDAP: SSL support unavailable" );
}
+#ifdef LDAP_OPT_NETWORK_TIMEOUT
if (st->connectionTimeout > 0) {
timeOut.tv_sec = st->connectionTimeout;
}
"LDAP: Could not set the connection timeout" );
}
}
+#endif
return(OK);