Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 62564 Details for
Bug 96767
sys-auth/{pam_ldap|nss_ldap} not using tls for referred connections
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
tls patch for referrals for nss_ldap
nss_ldap.patch (text/plain), 1022 bytes, created by
rob holland (RETIRED)
on 2005-07-03 15:42:11 UTC
(
hide
)
Description:
tls patch for referrals for nss_ldap
Filename:
MIME Type:
Creator:
rob holland (RETIRED)
Created:
2005-07-03 15:42:11 UTC
Size:
1022 bytes
patch
obsolete
>--- ldap-nss.c 2004-09-28 03:20:11.000000000 +0100 >+++ ldap-nss.c.new 2005-07-04 01:32:12.000000000 +0100 >@@ -330,6 +330,39 @@ > > timelimit = __session.ls_config->ldc_bind_timelimit; > >+#ifdef HAVE_LDAP_START_TLS_S >+ if (__session.ls_config->ldc_ssl_on == SSL_START_TLS) >+ { >+ int version; >+ >+ if (ldap_get_option >+ (__session.ls_conn, LDAP_OPT_PROTOCOL_VERSION, >+ &version) == LDAP_OPT_SUCCESS) >+ { >+ if (version < LDAP_VERSION3) >+ { >+ version = LDAP_VERSION3; >+ ldap_set_option (__session.ls_conn, LDAP_OPT_PROTOCOL_VERSION, >+ &version); >+ } >+ } >+ >+ debug ("==> start_tls"); >+ if (ldap_start_tls_s (__session.ls_conn, NULL, NULL) == LDAP_SUCCESS) >+ { >+ debug ("TLS startup succeeded"); >+ } >+ else >+ { >+ debug ("TLS startup failed"); >+ do_close (); >+ debug ("<== do_open"); >+ return NSS_UNAVAIL; >+ } >+ debug ("<== start_tls"); >+ } >+#endif /* HAVE_LDAP_START_TLS_S */ >+ > return do_bind (ld, timelimit, who, cred, with_sasl); > } > #else
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 96767
: 62564