Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/icecrime/pywldap
Python wrapper over Windows Wldap32 library.
https://github.com/icecrime/pywldap
Last synced: 5 days ago
JSON representation
Python wrapper over Windows Wldap32 library.
- Host: GitHub
- URL: https://github.com/icecrime/pywldap
- Owner: icecrime
- License: apache-2.0
- Created: 2012-07-27T17:57:10.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-06-30T18:23:32.000Z (over 11 years ago)
- Last Synced: 2024-11-02T10:08:38.273Z (11 days ago)
- Language: Python
- Size: 264 KB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- License: LICENSE
Awesome Lists containing this project
README
PyWldap
=======[![Build Status](https://travis-ci.org/icecrime/PyWldap.png)](https://travis-ci.org/icecrime/PyWldap) [![Code Coverage](https://coveralls.io/repos/icecrime/PyWldap/badge.png)](https://coveralls.io/r/icecrime/PyWldap)
Python wrapper over Windows Wldap32 library.
Overview
--------This package provides bindings and pythonic wrapper over Wldap32.dll (see [Microsoft MSDN page](http://msdn.microsoft.com/en-us/library/windows/desktop/aa366961.aspx) regarding this library).
**If you need to access LDAP from Python, you most likely want [Python LDAP](http://www.python-ldap.org/)**. 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](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.