ldap usage

Jed Parsons jedp at ilm.com
Tue Mar 28 23:30:22 EST 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 :)

j

-----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
 

Hi,

  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')
     try:
         l.bind_s(username, password, ldap.AUTH_SIMPLE)
         authenticated = True
     except:
	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!
j

-- 
Jed Parsons       Industrial Light + Magic  (415) 746-2974
	
grep(do{for(ord){(!$_&&print"$s\n")||(($O+=(($_-1)%6+1)and
grep(vec($s,$O++,1)=1,1..int(($_-6*6-1)/6))))}},(split(//,
"++,++2-27,280,481=1-7.1++2,800+++2,8310/1+4131+1++2,80\0.  What!?")));
-- 
http://mail.python.org/mailman/listinfo/python-list


-------------- 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