python-ldap wrong auth. after server down

2008-09-26 Thread mete bilgin
Hi all,
i'm trying to connect ldap into python. when i give it to true username and
password, nothing going wrong...But i try to wrong password ,the server
shutdown...How can i pass that.

ps:
ldap_server=ldap.open('localhost')
ldap_server.protocol_version = ldap.VERSION3
try:
ldap_server.simple_bind_s(word,password)
return 'bind yapıldı'
ldap_server.unbind()
except ldap.LDAPError, e:
return e
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
Python-LDAP-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev


Re: python-ldap wrong auth. after server down

2008-09-26 Thread Michael Ströder
mete bilgin wrote:
> i'm trying to connect ldap into python. when i give it to true username
> and password, nothing going wrong...But i try to wrong password ,the
> server shutdown...How can i pass that.

What does "the server shutdown" mean exactly. Is it stopped?

> ps:
> ldap_server=ldap.open('localhost')
> ldap_server.protocol_version = ldap.VERSION3
> try:
> ldap_server.simple_bind_s(word,password)
> return 'bind yapıldı'
> ldap_server.unbind()
> except ldap.LDAPError, e:
> return e

Frankly you did not provide enough information.

I'd set client-side logging options in python-ldap (see
Demo/initialize.py) and examine the server logs. Which server vendor and
version is that?

Ciao, Michael.

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Python-LDAP-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev


Re: python-ldap wrong auth. after server down

2008-09-26 Thread Michael Ströder
Please don't e-mail me personally. Stay on the mailing list!

mete bilgin wrote:
> 2008/9/26 Michael Ströder <[EMAIL PROTECTED]
> >
> 
> mete bilgin wrote:
> > i'm trying to connect ldap into python. when i give it to true
> username
> > and password, nothing going wrong...But i try to wrong password ,the
> > server shutdown...How can i pass that.
> 
> What does "the server shutdown" mean exactly. Is it stopped?
> 
> yes it's stopped
> [..]
> Sep 26 14:12:27 localhost klogd: slapd[24032]: segfault at 1f ip
> b7c61790 sp b6cf9a40 error 4 in libdb-4.6.so
> [b7bcc000+13a000]

This looks like a bug in OpenLDAP. It has nothing to with python-ldap. I
already saw this myself yesterday when doing SASL/EXTERNAL bind. It's on
my to-do-list to track this down and report to OpenLDAP's ITS if I find
some spare time. You could help if you clarify this on openldap-software
mailing and file an ITS.

Ciao, Michael.

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Python-LDAP-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev