Skip to content

icecrime/PyWldap

Repository files navigation

PyWldap

Build Status Code Coverage

Python wrapper over Windows Wldap32 library.

Overview

This package provides bindings and pythonic wrapper over Wldap32.dll (see Microsoft MSDN page regarding this library).

If you need to access LDAP from Python, you most likely want Python LDAP. However, Python LDAP is built over OpenLDAP which lacks binding methods other than LDAP_AUTH_SIMPLE.

Usage

>>> import wldap
>>> l = wldap.ldap('ldap://xxx')
>>> l.bind_s(None, None, wldap.LDAP_AUTH_DIGEST)
>>> m = l.search_s('DN=world', wldap.LDAP_SCOPE_SUBTREE,
                   '(&(objectClass=user)(cn=icecrime))', ['cn'], 0)
>>> wldap.parse_message(m)
[{u'cn': u'Arnaud Porterie'}]

License

Copyright 2013 Arnaud Porterie

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

Python wrapper over Windows Wldap32 library.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages