[python3-ldap] ldap3 version 0.9.8.1 released

Giovanni Cannata cannatag at gmail.com
Sun Apr 5 00:01:07 CEST 2015


Hello everybody, I've released the 0.9.8.1 version of ldap3. This
release supports NTLMv2 authentication to Active Directory. It uses a
non-standard protocol from Microsoft named Sicily that encapsulates
the NTLM message in the bindRequest and bindResponse. It doesn't
follow the LDAP RFCs and breaks a few rules of LDAP protocol itself,
but should not have any side effect on the standard bind operation.

There is no additional package to import, the ldap.utils.ntlm module
is pure python and should work with Python 2 and Python 3.

To use the new authentcation method you must set the authentication
parameter to NTLM and pass the domainname\username value for the user
name while defining the connection:

Example:
from ldap3 import Server, Connection, NTLM

s = Server('win1')
c = Connection(s, user='MYDOMAIN\MyUser', password='mypassword',
authentication=NTLM)
c.bind()
#other ldap operations
c.unbind()

I've developed the ldap3.utils.ntlm package following the official
microsoft documentation at
https://msdn.microsoft.com/en-us/library/cc236621.aspx and tested
against a Microsoft WIndows Server 2012 R2, Because I have no easy
access to other versions Active Directory servers let me know if this
works for you.

Thanks,
Giovanni


More information about the python3-ldap mailing list