You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@directory.apache.org by s_humbi <s_...@yahoo.com.INVALID> on 2016/02/25 16:33:37 UTC
StartTLS enforced
Hello,does anybody know, if there is a way to force the ldap-client to use StartTLS ? I dont wont to offer our ldap-clients an unsecure way to talk with our LDAP-Server.
Yes I can disable the default-Port 389 and only enable the SSL-Port 636.But there is written in the DS documentation: " **LDAPS** is considered as deprecated. You should always favor startTLS instead. "
And I also need the port 389 (with StartTLS) for replication, so i can not disable it.
At the moment i use onlyTLSV1.2 (attribute ads-enabledProtocols). But the users can still connect without TLS.
I found this interesting paper:
http://people.apache.org/~elecharny/ldapcon/Andrew%20Findlay-paper.pdf--> see Caption caption: "The correct and standard approach is to start LDAP without encryption and then negotiate the TLS security layer. If necessary, the server can be configured to refuse all operations other than 'Start TLS' until TLS is in place"
Is this possible with Apache DS ?
Many Thanks for helping ...Humbi
Re: StartTLS enforced
Posted by Kiran Ayyagari <ka...@apache.org>.
On Thu, Feb 25, 2016 at 10:26 PM, Emmanuel Lécharny <el...@gmail.com>
wrote:
> Le 25/02/16 16:33, s_humbi a écrit :
> > Hello,does anybody know, if there is a way to force the ldap-client to
> use StartTLS ? I dont wont to offer our ldap-clients an unsecure way to
> talk with our LDAP-Server.
> > Yes I can disable the default-Port 389 and only enable the SSL-Port
> 636.But there is written in the DS documentation: " **LDAPS** is considered
> as deprecated. You should always favor startTLS instead. "
> > And I also need the port 389 (with StartTLS) for replication, so i can
> not disable it.
> > At the moment i use onlyTLSV1.2 (attribute ads-enabledProtocols). But
> the users can still connect without TLS.
> > I found this interesting paper:
> > http://people.apache.org/~elecharny/ldapcon/Andrew%20Findlay-paper.pdf-->
> see Caption caption: "The correct and standard approach is to start LDAP
> without encryption and then negotiate the TLS security layer. If necessary,
> the server can be configured to refuse all operations other than 'Start
> TLS' until TLS is in place"
> >
> > Is this possible with Apache DS ?
> > Many Thanks for helping ...Humbi
> >
> >
> >
> >
> No, sorry, we can't enforce that atm. At least, here is no way to do
> that through configuration.
>
> Actually we can, through configuration (I understand, it is very rarely
used, so hard to remember ;)
Setting the value of attribute ads-confidentialityRequired to TRUE and
restart the server,
This will force the user to use a secure connection using StartTLS.
This attribute is present in the entry -
ads-serverId=ldapServer,ou=servers,ads-directoryServiceId=default,ou=config
And yes, this is missing. In OpenLDAP, you can enforce TLS through some
> parameter, and I think that would be a good addition to ApacheDS.
> Would you fancy creating a JIRA with such a demand ?
>
> Thanks !
>
Kiran Ayyagari
http://keydap.com
Re: StartTLS enforced
Posted by Emmanuel Lécharny <el...@gmail.com>.
Le 25/02/16 18:25, Ogg a écrit :
> sure, i was aware of this feature, however it would be nice to see a roadmap to have those insecure versions actually removed from apacheDS, eg promote better security choices by not offering obviously broken protocols.
It would be good if they were banned from any of the existing
applications ;-)
Sadly, many people are still using them... Consider that Microsoft IE 11
is still accepting SSL 3.0 if you enable it (FF removed support for SSL
3 in June 2015 and Chrome in April 2015). TLS 1.0 is still enabled on
all the browsers.
Re: StartTLS enforced
Posted by Ogg <og...@sr375.com>.
sure, i was aware of this feature, however it would be nice to see a roadmap to have those insecure versions actually removed from apacheDS, eg promote better security choices by not offering obviously broken protocols.
> On Feb 25, 2016, at 9:23 AM, Emmanuel Lécharny <el...@gmail.com> wrote:
>
> Le 25/02/16 17:59, Ogg a écrit :
>> I also would be interested in the feature. It, would also be interesting to deprecate TLS 1.0, TLS 1.1 and SSL any flavor.
>
> You can actually prohibit the use of ancient versions of SSL/TLS. We
> have added some parameter to do that : ads-enabledProtocols. For instance :
>
> dn:
> ads-transportid=ldaps,ou=transports,ads-serverId=ldapServer,ou=servers,ads-directoryServiceId=default,ou=config
> ads-systemport: 10636
> ads-transportenablessl: true
> ads-transportaddress: localhost
> ads-transportid: ldaps
> ads-needClientAuth: false
> ads-wantClientAuth: true
> ads-enabledCiphers: AAA
> ads-enabledCiphers: BBB
> ads-enabledCiphers: CCC
> ads-enabledCiphers: DDD
> ads-enabledProtocols: TLSv1
> ads-enabledProtocols: TLSv1.1
> ads-enabledProtocols: TLSv1.2
> objectclass: ads-transport
> objectclass: ads-tcpTransport
> objectclass: top
> ads-enabled: true
>
>
> enables TLSv1, TLSv1.1 and TLSv1.2. You can just remove the two first
> parameters.
Re: StartTLS enforced
Posted by Emmanuel Lécharny <el...@gmail.com>.
Le 25/02/16 17:59, Ogg a écrit :
> I also would be interested in the feature. It, would also be interesting to deprecate TLS 1.0, TLS 1.1 and SSL any flavor.
You can actually prohibit the use of ancient versions of SSL/TLS. We
have added some parameter to do that : ads-enabledProtocols. For instance :
dn:
ads-transportid=ldaps,ou=transports,ads-serverId=ldapServer,ou=servers,ads-directoryServiceId=default,ou=config
ads-systemport: 10636
ads-transportenablessl: true
ads-transportaddress: localhost
ads-transportid: ldaps
ads-needClientAuth: false
ads-wantClientAuth: true
ads-enabledCiphers: AAA
ads-enabledCiphers: BBB
ads-enabledCiphers: CCC
ads-enabledCiphers: DDD
ads-enabledProtocols: TLSv1
ads-enabledProtocols: TLSv1.1
ads-enabledProtocols: TLSv1.2
objectclass: ads-transport
objectclass: ads-tcpTransport
objectclass: top
ads-enabled: true
enables TLSv1, TLSv1.1 and TLSv1.2. You can just remove the two first
parameters.
Re: StartTLS enforced
Posted by Ogg <og...@sr375.com>.
I also would be interested in the feature. It, would also be interesting to deprecate TLS 1.0, TLS 1.1 and SSL any flavor.
> On Feb 25, 2016, at 8:56 AM, Emmanuel Lécharny <el...@gmail.com> wrote:
>
> Le 25/02/16 16:33, s_humbi a écrit :
>> Hello,does anybody know, if there is a way to force the ldap-client to use StartTLS ? I dont wont to offer our ldap-clients an unsecure way to talk with our LDAP-Server.
>> Yes I can disable the default-Port 389 and only enable the SSL-Port 636.But there is written in the DS documentation: " **LDAPS** is considered as deprecated. You should always favor startTLS instead. "
>> And I also need the port 389 (with StartTLS) for replication, so i can not disable it.
>> At the moment i use onlyTLSV1.2 (attribute ads-enabledProtocols). But the users can still connect without TLS.
>> I found this interesting paper:
>> http://people.apache.org/~elecharny/ldapcon/Andrew%20Findlay-paper.pdf--> see Caption caption: "The correct and standard approach is to start LDAP without encryption and then negotiate the TLS security layer. If necessary, the server can be configured to refuse all operations other than 'Start TLS' until TLS is in place"
>>
>> Is this possible with Apache DS ?
>> Many Thanks for helping ...Humbi
>>
>>
>>
>>
> No, sorry, we can't enforce that atm. At least, here is no way to do
> that through configuration.
>
> And yes, this is missing. In OpenLDAP, you can enforce TLS through some
> parameter, and I think that would be a good addition to ApacheDS.
> Would you fancy creating a JIRA with such a demand ?
>
> Thanks !
Re: StartTLS enforced
Posted by Kiran Ayyagari <ka...@apache.org>.
On Fri, Feb 26, 2016 at 3:23 AM, Stefan Seelmann <ma...@stefan-seelmann.de>
wrote:
> On 02/25/2016 05:56 PM, Emmanuel Lécharny wrote:
> > Le 25/02/16 16:33, s_humbi a écrit :
> >> Hello,does anybody know, if there is a way to force the ldap-client to
> use StartTLS ? I dont wont to offer our ldap-clients an unsecure way to
> talk with our LDAP-Server.
> >> Yes I can disable the default-Port 389 and only enable the SSL-Port
> 636.But there is written in the DS documentation: " **LDAPS** is considered
> as deprecated. You should always favor startTLS instead. "
> >> And I also need the port 389 (with StartTLS) for replication, so i can
> not disable it.
> >> At the moment i use onlyTLSV1.2 (attribute ads-enabledProtocols). But
> the users can still connect without TLS.
> >> I found this interesting paper:
> >>
> http://people.apache.org/~elecharny/ldapcon/Andrew%20Findlay-paper.pdf-->
> see Caption caption: "The correct and standard approach is to start LDAP
> without encryption and then negotiate the TLS security layer. If necessary,
> the server can be configured to refuse all operations other than 'Start
> TLS' until TLS is in place"
> >>
> > No, sorry, we can't enforce that atm. At least, here is no way to do
> > that through configuration.
> >
> > And yes, this is missing. In OpenLDAP, you can enforce TLS through some
> > parameter, and I think that would be a good addition to ApacheDS.
> > Would you fancy creating a JIRA with such a demand ?
>
> But that cannot prevent the client from sending a request, e.g. a simple
> bind with plain text password, right? Even if the server then refuses
>
just like with any network client, it is still possible, unless client does
some negotiation with server prior to sending a bind request
> the operation, the password was sent over the wire. Would it then be
> appropriate to lock the account automatically?
>
> the server just rejects the request even before looking into it, IMO the
server shouldn't
do anything other than rejecting the request.
> Kind Regards,
> Stefan
>
> Kiran Ayyagari
http://keydap.com
Re: StartTLS enforced
Posted by Emmanuel Lécharny <el...@gmail.com>.
Le 25/02/16 22:53, Stefan Seelmann a écrit :
> On 02/25/2016 05:56 PM, Emmanuel Lécharny wrote:
>> Le 25/02/16 16:33, s_humbi a écrit :
>>> Hello,does anybody know, if there is a way to force the ldap-client to use StartTLS ? I dont wont to offer our ldap-clients an unsecure way to talk with our LDAP-Server.
>>> Yes I can disable the default-Port 389 and only enable the SSL-Port 636.But there is written in the DS documentation: " **LDAPS** is considered as deprecated. You should always favor startTLS instead. "
>>> And I also need the port 389 (with StartTLS) for replication, so i can not disable it.
>>> At the moment i use onlyTLSV1.2 (attribute ads-enabledProtocols). But the users can still connect without TLS.
>>> I found this interesting paper:
>>> http://people.apache.org/~elecharny/ldapcon/Andrew%20Findlay-paper.pdf--> see Caption caption: "The correct and standard approach is to start LDAP without encryption and then negotiate the TLS security layer. If necessary, the server can be configured to refuse all operations other than 'Start TLS' until TLS is in place"
>>>
>> No, sorry, we can't enforce that atm. At least, here is no way to do
>> that through configuration.
>>
>> And yes, this is missing. In OpenLDAP, you can enforce TLS through some
>> parameter, and I think that would be a good addition to ApacheDS.
>> Would you fancy creating a JIRA with such a demand ?
> But that cannot prevent the client from sending a request, e.g. a simple
> bind with plain text password, right?
It will. Check on http://www.openldap.org/doc/admin24/security.html,
par.14.2.1. Setting the 'security' parameter to a value > 1 will reject
any non-encrypted connection.
> Even if the server then refuses
> the operation, the password was sent over the wire. Would it then be
> appropriate to lock the account automatically?
You won't be able to send a request in clear text, AFAIU.
Re: StartTLS enforced
Posted by Stefan Seelmann <ma...@stefan-seelmann.de>.
On 02/25/2016 05:56 PM, Emmanuel Lécharny wrote:
> Le 25/02/16 16:33, s_humbi a écrit :
>> Hello,does anybody know, if there is a way to force the ldap-client to use StartTLS ? I dont wont to offer our ldap-clients an unsecure way to talk with our LDAP-Server.
>> Yes I can disable the default-Port 389 and only enable the SSL-Port 636.But there is written in the DS documentation: " **LDAPS** is considered as deprecated. You should always favor startTLS instead. "
>> And I also need the port 389 (with StartTLS) for replication, so i can not disable it.
>> At the moment i use onlyTLSV1.2 (attribute ads-enabledProtocols). But the users can still connect without TLS.
>> I found this interesting paper:
>> http://people.apache.org/~elecharny/ldapcon/Andrew%20Findlay-paper.pdf--> see Caption caption: "The correct and standard approach is to start LDAP without encryption and then negotiate the TLS security layer. If necessary, the server can be configured to refuse all operations other than 'Start TLS' until TLS is in place"
>>
> No, sorry, we can't enforce that atm. At least, here is no way to do
> that through configuration.
>
> And yes, this is missing. In OpenLDAP, you can enforce TLS through some
> parameter, and I think that would be a good addition to ApacheDS.
> Would you fancy creating a JIRA with such a demand ?
But that cannot prevent the client from sending a request, e.g. a simple
bind with plain text password, right? Even if the server then refuses
the operation, the password was sent over the wire. Would it then be
appropriate to lock the account automatically?
Kind Regards,
Stefan
Re: StartTLS enforced
Posted by Emmanuel Lécharny <el...@gmail.com>.
Le 25/02/16 16:33, s_humbi a écrit :
> Hello,does anybody know, if there is a way to force the ldap-client to use StartTLS ? I dont wont to offer our ldap-clients an unsecure way to talk with our LDAP-Server.
> Yes I can disable the default-Port 389 and only enable the SSL-Port 636.But there is written in the DS documentation: " **LDAPS** is considered as deprecated. You should always favor startTLS instead. "
> And I also need the port 389 (with StartTLS) for replication, so i can not disable it.
> At the moment i use onlyTLSV1.2 (attribute ads-enabledProtocols). But the users can still connect without TLS.
> I found this interesting paper:
> http://people.apache.org/~elecharny/ldapcon/Andrew%20Findlay-paper.pdf--> see Caption caption: "The correct and standard approach is to start LDAP without encryption and then negotiate the TLS security layer. If necessary, the server can be configured to refuse all operations other than 'Start TLS' until TLS is in place"
>
> Is this possible with Apache DS ?
> Many Thanks for helping ...Humbi
>
>
>
>
No, sorry, we can't enforce that atm. At least, here is no way to do
that through configuration.
And yes, this is missing. In OpenLDAP, you can enforce TLS through some
parameter, and I think that would be a good addition to ApacheDS.
Would you fancy creating a JIRA with such a demand ?
Thanks !
Re: StartTLS enforced
Posted by Emmanuel Lécharny <el...@gmail.com>.
Le 26/02/16 17:01, s_humbi a écrit :
> OK. I tested:Setting the value of attribute ads-confidentialityRequired to TRUE and restart the server,
> This attribute is present in the entry ads-serverId=ldapServer,ou=servers,ads-directoryServiceId=default,ou=config And yes! It is working!--> I closed the JIRA-Issue.Maybe i will open a feature request for Apache-DS-Studio to make this config-option visible.
> Thx. Humbi
Good catch !
And thanks Kiran to be the living memory of the project ;-)
Re: StartTLS enforced
Posted by s_humbi <s_...@yahoo.com.INVALID>.
OK. I tested:Setting the value of attribute ads-confidentialityRequired to TRUE and restart the server,
This attribute is present in the entry ads-serverId=ldapServer,ou=servers,ads-directoryServiceId=default,ou=config And yes! It is working!--> I closed the JIRA-Issue.Maybe i will open a feature request for Apache-DS-Studio to make this config-option visible.
Thx. Humbi
WG: StartTLS enforced
Posted by s_humbi <s_...@yahoo.com.INVALID>.
Hello,
feature request in Jira:
https://issues.apache.org/jira/browse/DIRSERVER-2126Thx,Humbi