Why do I get a failed to connect to LDAP URL when using Samba's Ldb Python module?

Richard Sharpe realrichardsharpe at gmail.com
Fri Aug 14 20:59:00 UTC 2015


Hi folks,

I just got this:

   >>> from samba import Ldb
   >>> ldb_obj =
Ldb('ldap://drtnasdcprod01.xxxx.yyyy.eng.someorg.com',
credentials=creds)
   Failed to connect to ldap URL
'ldap://drtnasdcprod01.xxxx.yyyy.eng.someorg.com' - LDAP client
internal error: NT_STATUS_BAD_NETWORK_NAME
   Failed to connect to
'ldap://drtnasdcprod01.xxxx.yyyy.eng.someorg.com' with backend
'ldap':(null)
   Traceback (most recent call last):
     File "<stdin>", line 1, in <module>
     File "/usr/lib64/python2.6/site-packages/samba/__init__.py", line
114, in __init__
        self.connect(url, flags, options)
   _ldb.LdbError: (1, None)

It looked so easy ... but wasn't.

What have I done wrong?

-- 
Regards,
Richard Sharpe
(何以解憂?唯有杜康。--曹操)



More information about the samba-technical mailing list