ldap usage

Jed Parsons jedp at ilm.com
Wed Mar 29 06:30:22 CEST 2006

Looks like the top of my message got garbled

I was trying to say that I'm using ldap for the first time,
trying to write a script that authenticates a user against
our ldap server.  etc.  The rest came through.

Hope that makes more sense now :)


-----Original Message-----
From: python-list-bounces+jedp=ilm.com at python.org on behalf of Jed Parsons
Sent: Tue 3/28/2006 5:55 PM
To: python-list at python.org
Subject: ldap usage


  authenticates a user against our ldap server.: User types in name and 
password, and module sees if name and password check out right with the 
ldap server.

I see that it's pretty straightforward to do this with:

     import ldap
     l = ldap.open('our.ldap.server')
         l.bind_s(username, password, ldap.AUTH_SIMPLE)
         authenticated = True
	authenticated = False

But this uses the plaintext of the user's password.  Is there a proper 
way to send a cryptographic hash to the ldap server?  Or do I have to 
negotiate this through an ssl tunnel or something?

Thanks for any tips.  Cheers!

Jed Parsons       Industrial Light + Magic  (415) 746-2974
"++,++2-27,280,481=1-7.1++2,800+++2,8310/1+4131+1++2,80\0.  What!?")));

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20060328/12ba0e45/attachment.html>

More information about the Python-list mailing list