All Projects → noirello → Bonsai

noirello / Bonsai

Licence: mit
Simple Python 3 module for LDAP, using libldap2 and winldap C libraries.

Programming Languages

python
139335 projects - #7 most used programming language
c
50402 projects - #5 most used programming language
python3
1442 projects

Labels

Projects that are alternatives of or similar to Bonsai

Freeipa
Mirror of FreeIPA, an integrated security information management solution
Stars: ✭ 520 (+602.7%)
Mutual labels:  ldap
Eloquent Ldap
A Laravel 5.1 package that first tries to log the user against the internal database if that fails, it tries against the configured LDAP/AD server.
Stars: ✭ 19 (-74.32%)
Mutual labels:  ldap
Ldaptive
A simple, extensible Java API for interacting with LDAP servers
Stars: ✭ 43 (-41.89%)
Mutual labels:  ldap
Authelia
The Single Sign-On Multi-Factor portal for web apps
Stars: ✭ 11,094 (+14891.89%)
Mutual labels:  ldap
Opscloud
运维管理平台(阿里云),自动同步阿里云配置信息,堡垒机(容器),批量运维,Kubernetes,Zabbix管理等功能
Stars: ✭ 788 (+964.86%)
Mutual labels:  ldap
Docker Mailserver
Production-ready fullstack but simple mail server (SMTP, IMAP, LDAP, Antispam, Antivirus, etc.) running inside a container.
Stars: ✭ 8,115 (+10866.22%)
Mutual labels:  ldap
Openrecord
Make ORMs great again!
Stars: ✭ 474 (+540.54%)
Mutual labels:  ldap
Ldap Jwt
Lightweight node.js based web service that provides user authentication against LDAP server (Active Directory / Windows network) credentials and returns a JSON Web Token.
Stars: ✭ 58 (-21.62%)
Mutual labels:  ldap
Adldap2 Laravel
LDAP Authentication & Management for Laravel
Stars: ✭ 825 (+1014.86%)
Mutual labels:  ldap
Ldapper
ldapper — a hassle-free Python LDAP ORM for getting real work done
Stars: ✭ 43 (-41.89%)
Mutual labels:  ldap
Adldap2
A PHP LDAP Package for humans.
Stars: ✭ 654 (+783.78%)
Mutual labels:  ldap
Self Service Password
Web interface to change and reset password in an LDAP directory
Stars: ✭ 699 (+844.59%)
Mutual labels:  ldap
Terraform Provider Ldap
LDAP provider for Terraform
Stars: ✭ 32 (-56.76%)
Mutual labels:  ldap
Docker Phpldapadmin
A docker image to run phpLDAPadmin 🐳
Stars: ✭ 615 (+731.08%)
Mutual labels:  ldap
Freeipa Password Reset
Self-service password reset app for FreeIPA
Stars: ✭ 44 (-40.54%)
Mutual labels:  ldap
Im
IM server based on netty. Provides a client jar. Integrate with your own login system.基于netty实现的IM服务端,提供客户端jar包,可集成自己的登录系统
Stars: ✭ 490 (+562.16%)
Mutual labels:  ldap
Glauth
A lightweight LDAP server for development, home use, or CI
Stars: ✭ 850 (+1048.65%)
Mutual labels:  ldap
Zio Tls Http
100% non-blocking, Java NIO only( inspired by zio-nio) , JSON HTTP server based on Scala ZIO library. Everything including TLS encryption modeled as ZIO effects, convenient route DSL similar to https4s, up to 30K TPS local JSON transaction with 25 threads on 6 cores(i7) with ZIO fibers.
Stars: ✭ 71 (-4.05%)
Mutual labels:  ldap
Ldap Auth Proxy
A simple drop-in HTTP proxy for transparent LDAP authentication which is also a HTTP auth backend.
Stars: ✭ 48 (-35.14%)
Mutual labels:  ldap
Verdaccio Ldap
LDAP auth plugin for verdaccio
Stars: ✭ 39 (-47.3%)
Mutual labels:  ldap

Bonsai

.. image:: https://img.shields.io/pypi/v/bonsai.svg?style=flat-square :target: https://pypi.python.org/pypi/bonsai/ :alt: PyPI Version

.. image:: https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fnoirello%2Fbonsai%2Fbadge%3Fref%3Ddev&style=flat-square :target: https://actions-badge.atrox.dev/noirello/bonsai/goto?ref=dev :alt: GitHub Action Build Status

.. image:: https://img.shields.io/travis/noirello/bonsai/dev.svg?style=flat-square :target: https://travis-ci.org/noirello/bonsai :alt: Travis CI Build Status

.. image:: https://img.shields.io/appveyor/ci/noirello/bonsai/dev.svg?style=flat-square :target: https://ci.appveyor.com/project/noirello/bonsai :alt: AppVeyor CI Build Status

.. image:: https://img.shields.io/codecov/c/github/noirello/bonsai/dev.svg?style=flat-square :target: https://codecov.io/github/noirello/bonsai?branch=dev :alt: Coverage Status

.. image:: https://readthedocs.org/projects/bonsai/badge/?version=latest&style=flat-square :target: http://bonsai.readthedocs.org/en/latest/ :alt: Documentation Status

.. image:: https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square :target: https://raw.githubusercontent.com/noirello/bonsai/master/LICENSE :alt: GitHub License

This is a module for handling LDAP operations in Python. Uses libldap2 on Unix platforms and WinLDAP on Microsoft Windows. LDAP entries are mapped to a special Python case-insensitive dictionary, tracking the changes of the dictionary to modify the entry on the server easily.

Supports only Python 3.5 or newer, and LDAPv3.

Features

  • Uses LDAP libraries (OpenLDAP and WinLDAP) written in C for faster processing.
  • Simple pythonic design.
  • Implements an own dictionary-like object for mapping LDAP entries that makes easier to add and modify them.
  • Works with various asynchronous library (like asyncio, gevent).

Requirements for building

  • python3.5-dev or newer
  • libldap2-dev
  • libsasl2-dev
  • libkrb5-dev or heimdal-dev (optional)

Documentation

Documentation is available online_ with a simple tutorial.

Example

Simple search and modify:

.. code:: python

    import bonsai

    client = bonsai.LDAPClient("ldap://localhost")
    client.set_credentials("SIMPLE", user="cn=admin,dc=bonsai,dc=test", password="secret")
    with client.connect() as conn:
        res = conn.search("ou=nerdherd,dc=bonsai,dc=test", 2, "(cn=chuck)")
        res[0]['givenname'] = "Charles"
        res[0]['sn'] = "Carmichael"
        res[0].modify()

Using with asyncio (on Python 3.5 or newer):

.. code:: python3

    import asyncio
    import bonsai

    async def do():
        client = bonsai.LDAPClient("ldap://localhost")
        client.set_credentials("DIGEST-MD5", user="admin", password="secret")
        async with client.connect(is_async=True) as conn:
            res = await conn.search("ou=nerdherd,dc=bonsai,dc=test", 2)
            print(res)
            who = await conn.whoami()
            print(who)

    loop = asyncio.get_event_loop()
    loop.run_until_complete(do())

Changelog

The changelog is available here_ and included in the documentation as well.

Contribution

Any contributions and advices are welcome. Please report any issues at the GitHub page_.

.. _online: http://bonsai.readthedocs.org/en/latest/ .. _here: https://github.com/noirello/bonsai/blob/master/CHANGELOG.rst .. _GitHub page: https://github.com/Noirello/bonsai/issues

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].