From: Timothy W. <wi...@vi...> - 2000-06-26 14:41:55
|
On Sun, 25 Jun 2000, Michael [iso-8859-1] Ströder wrote: > > Python 1.5.2 (#0, Apr 3 2000, 14:46:48) [GCC 2.95.2 20000313 (Debian > > GNU/Linux)] on linux2 > > Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam > > >>> import ldap > > >>> l = ldap.open("206.131.108.2",389) > > >>> l.simple_bind_s("ou=do,o=isd_197","") > ^^^^^^^^^^^^^^^^^^^ > Please read the doc of ldapmodule again. The DN is meant for binding > as this object (e.g. an entry describing a user) and is used for > authentication/authorization. If doing a anonymous bind you can > simply use an empty DN. Aha! Changing to l.simple_bind_s("", "") makes everything work fine. (At least as far as my simple example goes.) I will go through the source for ZLDAP and try to determine how it's being done there. -Tim -- Tim Wilson | Visit Sibley online: | Check out: Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/ W. St. Paul, MN | | http://slashdot.org/ wi...@vi... | <dtml-var pithy_quote> | http://linux.com/ |