|
From: Michael S. <mi...@st...> - 2008-09-26 10:53:55
|
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.
|