small myldap.c patch
[Date Prev][Date Next] [Thread Prev][Thread Next]small myldap.c patch
- From: Robert Brooks <robert.brooks [at] reporo.com>
- To: nss-pam-ldapd-users [at] lists.arthurdejong.org
- Subject: small myldap.c patch
- Date: Wed, 26 Aug 2015 12:02:29 -0700
Hi,
I believe we are looking to set TLS_REQUIRE_CERT to hard here...
--- nss-pam-ldapd-0.9.6.orig/nslcd/myldap.c 2015-05-24 13:05:40.000000000 +0000
+++ nss-pam-ldapd-0.9.6/nslcd/myldap.c 2015-08-26 18:39:58.106283171 +0000
@@ -875,8 +875,8 @@
{
/* use tls */
i = LDAP_OPT_X_TLS_HARD;
- log_log(LOG_DEBUG, "ldap_set_option(LDAP_OPT_X_TLS,LDAP_OPT_X_TLS_HARD)");
- LDAP_SET_OPTION(session->ld, LDAP_OPT_X_TLS, &i);
+ log_log(LOG_DEBUG, "ldap_set_option(LDAP_OPT_X_TLS_REQUIRE_CERT,LDAP_OPT_X_TLS_HARD)");
+ LDAP_SET_OPTION(session->ld, LDAP_OPT_X_TLS_REQUIRE_CERT, &i);
}
#endif /* LDAP_OPT_X_TLS */
#ifdef LDAP_OPT_X_SASL_NOCANON
Regards,
--
I believe we are looking to set TLS_REQUIRE_CERT to hard here...
--- nss-pam-ldapd-0.9.6.orig/nslcd/myldap.c 2015-05-24 13:05:40.000000000 +0000
+++ nss-pam-ldapd-0.9.6/nslcd/myldap.c 2015-08-26 18:39:58.106283171 +0000
@@ -875,8 +875,8 @@
{
/* use tls */
i = LDAP_OPT_X_TLS_HARD;
- log_log(LOG_DEBUG, "ldap_set_option(LDAP_OPT_X_TLS,LDAP_OPT_X_TLS_HARD)");
- LDAP_SET_OPTION(session->ld, LDAP_OPT_X_TLS, &i);
+ log_log(LOG_DEBUG, "ldap_set_option(LDAP_OPT_X_TLS_REQUIRE_CERT,LDAP_OPT_X_TLS_HARD)");
+ LDAP_SET_OPTION(session->ld, LDAP_OPT_X_TLS_REQUIRE_CERT, &i);
}
#endif /* LDAP_OPT_X_TLS */
#ifdef LDAP_OPT_X_SASL_NOCANON
Regards,
Rob
--
Robert Brooks
Head of Systems
Reporo
Tel: +1 (415) 758-2220
http://www.reporo.com
World's Largest & Most Lucrative Mobile Ad Network
Head of Systems
Reporo
Tel: +1 (415) 758-2220
http://www.reporo.com
World's Largest & Most Lucrative Mobile Ad Network
-- To unsubscribe send an email to nss-pam-ldapd-users-unsubscribe@lists.arthurdejong.org or see http://lists.arthurdejong.org/nss-pam-ldapd-users/
- small myldap.c patch, Robert Brooks
- Re: small myldap.c patch,
Arthur de Jong
- Re: small myldap.c patch,
Robert Brooks
- Re: small myldap.c patch,
Arthur de Jong
- Re: small myldap.c patch, Robert Brooks
- Re: small myldap.c patch,
Arthur de Jong
- Re: small myldap.c patch,
Robert Brooks
- Prev by Date: [PATCH] allow tls_randfile to be a file or a character device
- Next by Date: Re: [PATCH] allow tls_randfile to be a file or a character device
- Previous by thread: Re: [PATCH] allow tls_randfile to be a file or a character device
- Next by thread: Re: small myldap.c patch