Click here to get back home

LDAP authentication security ?

 HomeNewsGroups | Search | About
 microsoft.public.windows.server.security    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
LDAP authentication security ? Pascal 12-03-2007
Posted by Pascal on December 3, 2007, 11:25 am
Please log in for more thread options
Hi,
(First, sorry for my english ;-))

I would like to use an LDAP authentication with my application (Quality
Center). So, the user will have to type his Active Directory username
and password BUT the LDAP authentication secured is it secured ?

By default, there is no encryption so the password is transmitted in
clear text ?

Do I need to use LDAP Over SSL ?
What is SASL ?

Thank you

--
Pascal



Posted by Joe Kaplan on December 4, 2007, 9:24 am
Please log in for more thread options
This depends on the application. If the application only supports LDAP
simple bind, then you will need an additional security mechanism like
SSL/LDAP in order for the credential validation to be secure.

If the application supports SASL bind with either GSS-SPNEGO or DIGEST
authentication, then you can use that directly with AD without needing to
secure the channel as those authentication mechanisms are already secure
without channel encryption.

Simple bind is the authentication mechanism in the LDAP V3 spec and is
supported by all LDAP directories. SASL is a mechanism used in LDAP and
other places of adding in additional authentication protocols. Not all LDAP
servers and clients support all SASL mechanisms, so whether or not you can
use SASL depends a great deal on the capabilities of the LDAP client ( the
application).

If you need SSL, AD supports SSL LDAP just fine, assuming you get a
certificate for your domain controllers. You can either use a Windows CA or
procure SSL certificates from an external CA. Either work and both have
their pros and cons.

Joe K.

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
> Hi,
> (First, sorry for my english ;-))
>
> I would like to use an LDAP authentication with my application (Quality
> Center). So, the user will have to type his Active Directory username and
> password BUT the LDAP authentication secured is it secured ?
>
> By default, there is no encryption so the password is transmitted in clear
> text ?
>
> Do I need to use LDAP Over SSL ?
> What is SASL ?
>
> Thank you
>
> --
> Pascal
>
>



Posted by Pascal on December 7, 2007, 9:12 am
Please log in for more thread options
Hi Joe,

thank you for your answer.
It is very clear (as most of your interventions here :D).

Actually we don't have any PKI so we will buy a commercial SSL
certificates.
You said that both solutions have pros and cons.
Why ? And do you know where I can find the pros and cons of each one ?

Thank you again.



> This depends on the application. If the application only supports LDAP
> simple bind, then you will need an additional security mechanism like
> SSL/LDAP in order for the credential validation to be secure.
>
> If the application supports SASL bind with either GSS-SPNEGO or DIGEST
> authentication, then you can use that directly with AD without needing to
> secure the channel as those authentication mechanisms are already secure
> without channel encryption.
>
> Simple bind is the authentication mechanism in the LDAP V3 spec and is
> supported by all LDAP directories. SASL is a mechanism used in LDAP and
> other places of adding in additional authentication protocols. Not all LDAP
> servers and clients support all SASL mechanisms, so whether or not you can
> use SASL depends a great deal on the capabilities of the LDAP client ( the
> application).
>
> If you need SSL, AD supports SSL LDAP just fine, assuming you get a
> certificate for your domain controllers. You can either use a Windows CA or
> procure SSL certificates from an external CA. Either work and both have
> their pros and cons.
>
> Joe K.
>
> --
> Joe Kaplan-MS MVP Directory Services Programming
> Co-author of "The .NET Developer's Guide to Directory Services Programming"
> http://www.directoryprogramming.net
> --
>> Hi,
>> (First, sorry for my english ;-))
>>
>> I would like to use an LDAP authentication with my application (Quality
>> Center). So, the user will have to type his Active Directory username and
>> password BUT the LDAP authentication secured is it secured ?
>>
>> By default, there is no encryption so the password is transmitted in clear
>> text ?
>>
>> Do I need to use LDAP Over SSL ?
>> What is SASL ?
>>
>> Thank you
>>
>> -- Pascal
>>
>>

--
Pascal



Posted by Joe Kaplan on December 7, 2007, 11:31 am
Please log in for more thread options
I'm actually a big fan of external SSL certs for DCs simply because they are
trusted by most clients by default. Using an internally rooted CA can be
less expensive, but it is less easy to get all of the clients to trust your
certs issued by this CA, especially in an environment that includes
non-Windows machines that can't take advantage of auto enrollment or GPO for
distributing trusted roots.

The biggest downside of external certs for DCs is that they expire and you
need to renew them manually. Nothing is going to warn you that the certs
are expiring, so you have to remember this (which can be hard a year or two
after you bought them). There are ways to deal with this, but I've seen
lots of temporary application failures due to unexpected expiration of DC
certs. With a Windows CA, they are typically renewed automatically.

There is also more manual effort with external certs, but I don't think
that's a huge big deal.

Joe K.

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
> Hi Joe,
>
> thank you for your answer.
> It is very clear (as most of your interventions here :D).
>
> Actually we don't have any PKI so we will buy a commercial SSL
> certificates.
> You said that both solutions have pros and cons.
> Why ? And do you know where I can find the pros and cons of each one ?
>
> Thank you again.
>
>
>
>> This depends on the application. If the application only supports LDAP
>> simple bind, then you will need an additional security mechanism like
>> SSL/LDAP in order for the credential validation to be secure.
>>
>> If the application supports SASL bind with either GSS-SPNEGO or DIGEST
>> authentication, then you can use that directly with AD without needing to
>> secure the channel as those authentication mechanisms are already secure
>> without channel encryption.
>>
>> Simple bind is the authentication mechanism in the LDAP V3 spec and is
>> supported by all LDAP directories. SASL is a mechanism used in LDAP and
>> other places of adding in additional authentication protocols. Not all
>> LDAP servers and clients support all SASL mechanisms, so whether or not
>> you can use SASL depends a great deal on the capabilities of the LDAP
>> client ( the application).
>>
>> If you need SSL, AD supports SSL LDAP just fine, assuming you get a
>> certificate for your domain controllers. You can either use a Windows CA
>> or procure SSL certificates from an external CA. Either work and both
>> have their pros and cons.
>>
>> Joe K.
>>
>> --
>> Joe Kaplan-MS MVP Directory Services Programming
>> Co-author of "The .NET Developer's Guide to Directory Services
>> Programming"
>> http://www.directoryprogramming.net
>> --
>>> Hi,
>>> (First, sorry for my english ;-))
>>>
>>> I would like to use an LDAP authentication with my application (Quality
>>> Center). So, the user will have to type his Active Directory username
>>> and password BUT the LDAP authentication secured is it secured ?
>>>
>>> By default, there is no encryption so the password is transmitted in
>>> clear text ?
>>>
>>> Do I need to use LDAP Over SSL ?
>>> What is SASL ?
>>>
>>> Thank you
>>>
>>> -- Pascal
>>>
>>>
>
> --
> Pascal
>
>



Posted by Pascal on December 10, 2007, 4:44 am
Please log in for more thread options
Thank you for all these informations Joe !


> I'm actually a big fan of external SSL certs for DCs simply because they are
> trusted by most clients by default. Using an internally rooted CA can be
> less expensive, but it is less easy to get all of the clients to trust your
> certs issued by this CA, especially in an environment that includes
> non-Windows machines that can't take advantage of auto enrollment or GPO for
> distributing trusted roots.
>
> The biggest downside of external certs for DCs is that they expire and you
> need to renew them manually. Nothing is going to warn you that the certs are
> expiring, so you have to remember this (which can be hard a year or two after
> you bought them). There are ways to deal with this, but I've seen lots of
> temporary application failures due to unexpected expiration of DC certs.
> With a Windows CA, they are typically renewed automatically.
>
> There is also more manual effort with external certs, but I don't think
> that's a huge big deal.
>
> Joe K.
>
> --
> Joe Kaplan-MS MVP Directory Services Programming
> Co-author of "The .NET Developer's Guide to Directory Services Programming"
> http://www.directoryprogramming.net
> --
>> Hi Joe,
>>
>> thank you for your answer.
>> It is very clear (as most of your interventions here :D).
>>
>> Actually we don't have any PKI so we will buy a commercial SSL
>> certificates.
>> You said that both solutions have pros and cons.
>> Why ? And do you know where I can find the pros and cons of each one ?
>>
>> Thank you again.
>>
>>
>>
>>> This depends on the application. If the application only supports LDAP
>>> simple bind, then you will need an additional security mechanism like
>>> SSL/LDAP in order for the credential validation to be secure.
>>>
>>> If the application supports SASL bind with either GSS-SPNEGO or DIGEST
>>> authentication, then you can use that directly with AD without needing to
>>> secure the channel as those authentication mechanisms are already secure
>>> without channel encryption.
>>>
>>> Simple bind is the authentication mechanism in the LDAP V3 spec and is
>>> supported by all LDAP directories. SASL is a mechanism used in LDAP and
>>> other places of adding in additional authentication protocols. Not all
>>> LDAP servers and clients support all SASL mechanisms, so whether or not
>>> you can use SASL depends a great deal on the capabilities of the LDAP
>>> client ( the application).
>>>
>>> If you need SSL, AD supports SSL LDAP just fine, assuming you get a
>>> certificate for your domain controllers. You can either use a Windows CA
>>> or procure SSL certificates from an external CA. Either work and both
>>> have their pros and cons.
>>>
>>> Joe K.
>>>
>>> --
>>> Joe Kaplan-MS MVP Directory Services Programming
>>> Co-author of "The .NET Developer's Guide to Directory Services
>>> Programming"
>>> http://www.directoryprogramming.net
>>> --
>>>> Hi,
>>>> (First, sorry for my english ;-))
>>>>
>>>> I would like to use an LDAP authentication with my application (Quality
>>>> Center). So, the user will have to type his Active Directory username and
>>>> password BUT the LDAP authentication secured is it secured ?
>>>>
>>>> By default, there is no encryption so the password is transmitted in
>>>> clear text ?
>>>>
>>>> Do I need to use LDAP Over SSL ?
>>>> What is SASL ?
>>>>
>>>> Thank you
>>>>
>>>> -- Pascal
>>>>
>>>>
>>
>> -- Pascal
>>
>>

--
Pascal



Similar ThreadsPosted
LDAP lookup based on a Security group? May 23, 2008, 10:42 am
Kerberos machine authentication - apparent authentication failures May 30, 2005, 10:35 am
Configuring SSL for LDAP October 23, 2007, 10:01 am
Secure SSL with LDAP and AD May 20, 2008, 11:23 am
no server credential/no LDAP over SSL June 17, 2005, 3:24 pm
LDAP allows anonymous binds September 8, 2005, 9:01 am
Access Control to LDAP on AD? October 14, 2005, 9:20 pm
Re-Configuring LDAP CDP on Enterprise Root CA February 17, 2007, 1:31 am
Restricting LDAP search for a normal AD account January 12, 2006, 12:01 am
enabling LDAP over SSL: Enterprise CA in separate AD tree August 17, 2006, 6:31 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap