Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 61759 invoked from network); 21 May 2004 18:40:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 21 May 2004 18:40:03 -0000 Received: (qmail 49372 invoked by uid 500); 21 May 2004 18:40:13 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 49338 invoked by uid 500); 21 May 2004 18:40:12 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 49324 invoked by uid 98); 21 May 2004 18:40:12 -0000 Received: from BNICHOLES@novell.com by hermes.apache.org by uid 82 with qmail-scanner-1.20 (clamuko: 0.70. Clear:RC:0(137.65.81.169):. Processed in 0.012574 secs); 21 May 2004 18:40:12 -0000 X-Qmail-Scanner-Mail-From: BNICHOLES@novell.com via hermes.apache.org X-Qmail-Scanner: 1.20 (Clear:RC:0(137.65.81.169):. Processed in 0.012574 secs) Received: from unknown (HELO sinclair.provo.novell.com) (137.65.81.169) by hermes.apache.org with SMTP; 21 May 2004 18:40:12 -0000 Received: from INET-PRV-MTA by sinclair.provo.novell.com with Novell_GroupWise; Fri, 21 May 2004 12:39:50 -0600 Message-Id: X-Mailer: Novell GroupWise Internet Agent 6.5.2 Beta Date: Fri, 21 May 2004 12:39:39 -0600 From: "Brad Nicholes" To: , Subject: Re: LDAP SDK behaviour and mod_ldap Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Spam-Rating: hermes.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 500/1000/N This is something that I have been wanting to do for sometime but haven't given it much thought until now. I talked to some of our Novell LDAP engineers to get a better perspective on this. According to them, per-session certificates will not work in Novell LDAP and they also believe that it doesn't work for Netscape or Microsoft either. They also had some concerns about OpenLDAP as well and although per-session certificates appear to be supported, they weren't sure how well it actually worked. Just looking at the code in the util_ldap_post_config() routine and how each of them set up the certificates, I wouldn't expect Netscape, Novell or Microsoft SDK's to support per-session certificates. The Netscape SDK and the Novell SDK use the same function to initialize the SSL libraries, but even though the current util_ldap code for Novell isn't written this way, the Novell SDK allows the user to configure a list of certificates rather than a single certificate by calling ldapssl_add_trusted_cert(). The Netscape SDK probably allows for the same thing through their CERT7 database file which is required. The Microsoft SDK appears to pull its certificate from the registry so I have no idea if it even allows for multiple certificates. All of these methods appear to be global rather than per-session. My feeling is that about the best we could do is to allow the LDAPTrustedCA and LDAPTrustedCAType directives to be callable from within a virtualhost configurtion and keep a list of certificates that can then be passed to the LDAP libraries during the post_config. But this would really only make sense for OpenLDAP and Novell. Since Netscape requires a CERT7 database file, it wouldn't know how to handle multiple files and these directives are NOOPs for Microsoft. Then it might lead the administrator to believe that certain virtual hosts are using certain certificates when in fact that wouldn't be the case. All virtual hosts would use all specified certificates. Brad Brad Nicholes Senior Software Engineer Novell, Inc., the leading provider of Net business solutions http://www.novell.com >>> minfrin@sharp.fm Thursday, May 20, 2004 7:35:48 PM >>> Hi all, There is a request outstanding for the ability to specify the trusted CA for TLS on a per virtualhost basis. With openldap, the TLS setting can be set per connection with the ldap_set_option() function. I don't have info for the ways that the Netscape, Netware or Microsoft SDKs work - can anyone confirm whether setting the CA can be set on a per connection basis? Regards, Graham --