Undefined Symbol?

jfdoyon at server.methane.org jfdoyon at server.methane.org
Tue Oct 23 16:46:55 CEST 2001


Hello,

I am now trying to get an SSL connection working with my OpenLDAP 2.0.11
slapd server, and have run into problems again :(

I run my slapd with "-h ldaps:///" so that it runs ONLY over SSL, this
means it listens on port 636.

Here's my bit of code:

server = ldap.open('myhost',636)
server.version = ldap.VERSION3
server.start_tls_s()
server.simple_bind_s("hidden","hidden")

And here's the result:

Traceback (most recent call last):
  File "urds.py", line 5, in ?
    server.start_tls_s()
ldap.SERVER_DOWN: {'desc': "Can't contact LDAP server"}

Here's what my slapd, with maximum logging (1), has to say about that:

Oct 23 10:38:57 grumbler slapd[5627]: connection_get(9): got connid=4 
Oct 23 10:38:57 grumbler slapd[5627]: connection_read(9): checking for
input on id=4 
Oct 23 10:38:57 grumbler slapd[5627]: connection_read(9): TLS accept error
error=-1 id=4, closing 
Oct 23 10:38:57 grumbler slapd[5627]: connection_closing: readying conn=4
sd=9 for close 
Oct 23 10:38:57 grumbler slapd[5627]: connection_close: conn=4 sd=9 

Unfortunately, not very helpfull!

Any ideas? I successfully connect to this server using Perl and various
tools.  I compiled my pyton-ldap from CVS and patched with all the patches
in the original "starttls" message from the list.

One thing: It would me nice ot have a central place where to get patches
and so on, took me a while to figure out where to get them, and even now,
I'm not allways sure which patch does what!

Thanks again!
J.F.


On Mon, 22 Oct 2001, Jean-François Doyon wrote:

> Hello,
> 
> OK, never mind, I eventually figured it out :) Turns out the patches are
> hidden inside the RPM's !
> 
> I had to do some manual work since I wanted it to work with Python 2.1, but
> now I'm not getting any errors ...
> 
> I'm looking forward to trying it out :)
> 
> Thanks for the contribution!
> 
> Jean-François Doyon
> Carbon IT
> http://methane.org
> Tel.: (819) 827-9997
> Fax : (819) 827-6653
> 
> -----Original Message-----
> From: python-ldap-dev-admin at lists.sourceforge.net
> [mailto:python-ldap-dev-admin at lists.sourceforge.net]On Behalf Of
> jfdoyon at server.methane.org
> Sent: October 22, 2001 5:01 PM
> To: Michael Ströder
> Cc: python-ldap-dev at lists.sourceforge.net
> Subject: Re: Undefined Symbol?
> 
> Michael,
> 
> I did see it, unfortunately, I'm not sure WHERE to find these patches,
> they don't seem to be in the CVS tree! Also, the README in the CVS says it
> was tested again OpenLDAP 2.0 and Python 2.0 ... Which is pretty damn
> close to what I'm using (Python 2.1.1 with OpenLDAP 2.0.17, although the
> files say 2.0.11 for some reason).
> 
> Maybe I'll try the RPM's :) I just like hacking things myself!
> 
> Thanks!
> J.F.
> 
> 
> 
> On Mon, 22 Oct 2001, Michael [iso-8859-1] Ströder wrote:
> 
> > jfdoyon at server.methane.org wrote:
> > >
> > >
> > > I just installed OpenLDAP 2.0.17 and the CVS version of python-ldap,
> >
> > See item 3 on http://python-ldap.sourceforge.net/faq.shtml
> >
> > Note that applying patches to python-ldap is experimental.
> >
> > Ciao, Michael.
> >
> > 


More information about the python-ldap mailing list