Re: Antw: Re: OpenLDAP with ssl client certs

2013-11-05 Thread Michael Ströder
Quanah Gibson-Mount wrote: --On Monday, November 04, 2013 8:54 AM +0100 Ulrich Windl ulrich.wi...@rz.uni-regensburg.de wrote: Sorry, but if you insist on that, you didn't understand the concept: Any certificate signed (transitively) by a root CA is valid. There are no distinctions between

Antw: Re: OpenLDAP with ssl client certs

2013-11-04 Thread Ulrich Windl
Michael Strödermich...@stroeder.com schrieb am 01.11.2013 um 19:26 in Nachricht 5273f248.4030...@stroeder.com: Howard Chu wrote: Michael Ströder wrote: BTW: In case of client certs the cert's subject-DN is the authc-DN which can be directly used in authz-regexp which very much ties the

Re: OpenLDAP with ssl client certs

2013-11-04 Thread Michael Ströder
Ulrich Windl wrote: Michael Strödermich...@stroeder.com schrieb am 01.11.2013 um 19:26 in Unfortunately it's not that easy: Consider a (somewhat broken) official CA, which you definitely cannot avoid or fix and which issues client certs with non-unique subject-DNs. In this case one has

Re: Antw: Re: OpenLDAP with ssl client certs

2013-11-04 Thread Quanah Gibson-Mount
--On Monday, November 04, 2013 8:54 AM +0100 Ulrich Windl ulrich.wi...@rz.uni-regensburg.de wrote: Sorry, but if you insist on that, you didn't understand the concept: Any certificate signed (transitively) by a root CA is valid. There are no distinctions between more or less valid

Antw: Re: OpenLDAP with ssl client certs

2013-11-03 Thread Ulrich Windl
Howard Chu h...@symas.com schrieb am 01.11.2013 um 19:12 in Nachricht 5273ef18.3070...@symas.com: Michael Ströder wrote: Howard Chu wrote: Brent Bice wrote: I was recently asked if we could use ssl client certs as a 2nd form of authentication with OpenLDAP and didn't know for sure. Is

OpenLDAP with ssl client certs

2013-11-01 Thread Brent Bice
I was recently asked if we could use ssl client certs as a 2nd form of authentication with OpenLDAP and didn't know for sure. Is it possible to have OpenLDAP require both a DN/password pair *and* a client ssl cert? Just to see if I could make any form of client cert authentication

Re: OpenLDAP with ssl client certs

2013-11-01 Thread Michael Ströder
Brent Bice wrote: I was recently asked if we could use ssl client certs as a 2nd form of authentication with OpenLDAP and didn't know for sure. Is it possible to have OpenLDAP require both a DN/password pair *and* a client ssl cert? Regarding client certs you have two options: 1. Let the

Re: OpenLDAP with ssl client certs

2013-11-01 Thread Howard Chu
Brent Bice wrote: I was recently asked if we could use ssl client certs as a 2nd form of authentication with OpenLDAP and didn't know for sure. Is it possible to have OpenLDAP require both a DN/password pair *and* a client ssl cert? You can make the server require a client cert, but it

Re: OpenLDAP with ssl client certs

2013-11-01 Thread Michael Ströder
Howard Chu wrote: Brent Bice wrote: I was recently asked if we could use ssl client certs as a 2nd form of authentication with OpenLDAP and didn't know for sure. Is it possible to have OpenLDAP require both a DN/password pair *and* a client ssl cert? You can make the server require a

Re: OpenLDAP with ssl client certs

2013-11-01 Thread Howard Chu
Michael Ströder wrote: Howard Chu wrote: Brent Bice wrote: I was recently asked if we could use ssl client certs as a 2nd form of authentication with OpenLDAP and didn't know for sure. Is it possible to have OpenLDAP require both a DN/password pair *and* a client ssl cert? You can

Re: OpenLDAP with ssl client certs

2013-11-01 Thread Michael Ströder
Howard Chu wrote: Michael Ströder wrote: BTW: In case of client certs the cert's subject-DN is the authc-DN which can be directly used in authz-regexp which very much ties the mapping to subject-DN conventions of the PKI. But in some cases it would be very handy to map a distinct client

Re: OpenLDAP with ssl client certs

2013-11-01 Thread Brent Bice
On 11/01/2013 12:12 PM, Howard Chu wrote: I would reject such an ITS. Cert-pinning is an issue for clients that have a very large collection of trusted CAs. The Admin Guide clearly states that servers should only trust a single CA - the CA that signed its own certs and the certs of its clients.

Re: OpenLDAP with ssl client certs

2013-11-01 Thread Michael Ströder
Brent Bice wrote: So, was I right in trying to use ~/.ldaprc to try to force ldapsearch (for instance) to use a cert for authentication? Running a sniffer and looking at the traffic, it doesn't look like ldapsearch is ever doing anything beyond an anonymous bind unless I specify -D and -W