# Migration to ldap3

**URL:** https://discuss.tryton.org/t/migration-to-ldap3/75
**Category:** Ideas
**Created:** [March 4, 2016, 11:25pm UTC](https://discuss.tryton.org/t/migration-to-ldap3/75 "2016-03-04T23:25:46Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![pokoli](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/pokoli/32/22_2.png) [@pokoli](https://discuss.tryton.org/u/pokoli)
#### Post date: [March 4, 2016, 11:25pm UTC](https://discuss.tryton.org/t/migration-to-ldap3/75/1 "2016-03-04T23:25:46Z")

</div>

## Description:

Tryton has the [ldap\_autentication](http://hg.tryton.org/modules/ldap_authentication/) module that’s used to autenticate users to and [LDAP](https://en.wikipedia.org/wiki/Lightweight_Directory_Access_Protocol) server. Currently [python-ldap](https://pypi.python.org/pypi/python-ldap) is used to talk with the ldap server. In order to support Python 3 (and other python implementation like PyPy), we should replace python-ldap by [ldap3](https://pypi.python.org/pypi/ldap3).  
In addition, we would like to implement an optional mechanism to automatically synchronise LDAP groups with the Tryton groups.

> **[Use ldap3 instead of python-ldap (#5324) · Issues · Tryton / Tryton · GitLab](https://foss.heptapod.net/tryton/tryton/-/issues/5324)**
>
> In order to support Python 3 (and other python implementation like PyPy), I think we should replace python-ldap by ldap3 \[1\]. It is written in pure Python but...

## Skills:

Knowledge in Python and knowledge of LDAP

## Difficulty level:

Easy

## Potential mentors:

@pokoli  
@ced  
@kstenger

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [March 6, 2016, 8:02pm UTC](https://discuss.tryton.org/t/migration-to-ldap3/75/3 "2016-03-06T20:02:07Z")

</div>

I think porting the ldap3 is to small for a GSoC so I propose to add also the implementation of a mechanism to automatically synchronise LDAP groups with Tryton groups.

---

<div class="post-metadata">

### Author: ![yland](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/y/b19c9b/32.png) [@yland](https://discuss.tryton.org/u/yland)
#### Post date: [March 9, 2016, 2:15pm UTC](https://discuss.tryton.org/t/migration-to-ldap3/75/4 "2016-03-09T14:15:26Z")

</div>

Hello,

My name is Yolande Amate from the University of Buea, Cameroon. I am proficient C, C++ and python and I would like to work on this project.

> **[yland - Overview](https://github.com/yland)**
>
> yland has 12 repositories available. Follow their code on GitHub.

Thanks  
Yolande

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [March 9, 2016, 2:36pm UTC](https://discuss.tryton.org/t/migration-to-ldap3/75/5 "2016-03-09T14:36:50Z")

</div>

Good, you should read: [Google Summer of Code 2016](https://discuss.tryton.org/t/google-summer-of-code-2016/66)  
and try to submit a first patch following: [Tryton - Get Involved](http://www.tryton.org/how-to-contribute.html)

---

<div class="post-metadata">

### Author: ![pokoli](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/pokoli/32/22_2.png) [@pokoli](https://discuss.tryton.org/u/pokoli)
#### Post date: [March 9, 2016, 3:33pm UTC](https://discuss.tryton.org/t/migration-to-ldap3/75/6 "2016-03-09T15:33:52Z")

</div>

You can find the LDAP configuration docs in [http://doc.tryton.org/3.8/trytond/trytond/modules/ldap\_authentication/doc/index.html](http://doc.tryton.org/3.8/trytond/trytond/modules/ldap_authentication/doc/index.html)

---

<div class="post-metadata">

### Author: ![yland](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/y/b19c9b/32.png) [@yland](https://discuss.tryton.org/u/yland)
#### Post date: [March 10, 2016, 9:47pm UTC](https://discuss.tryton.org/t/migration-to-ldap3/75/7 "2016-03-10T21:47:21Z")

</div>

Please, I would like to be assigned the following bug [Missing implementation of drop\_column for SQLite (#2647) · Issues · Tryton / Tryton · GitLab](https://bugs.tryton.org/issue2647) , as I am presently working on it.

@ced can I assign the task to myself.

---

<div class="post-metadata">

### Author: ![kstenger](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/kstenger/32/30_2.png) [@kstenger](https://discuss.tryton.org/u/kstenger)
#### Post date: [March 10, 2016, 10:01pm UTC](https://discuss.tryton.org/t/migration-to-ldap3/75/8 "2016-03-10T22:01:25Z")

</div>

@yland, register yourself at [https://bugs.tryton.org](https://bugs.tryton.org) then you can assign the issue to yourself

Just to clarify: Under normal conditions for a Tryton developer, an issue is assigned to you by yourself when you start working on it, later on conditions may change, but usually you want to finish your issue 🙂

It’s just for those issues related to the GSoC that the assignation process seems different.

---

<div class="post-metadata">

### Author: ![yland](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/y/b19c9b/32.png) [@yland](https://discuss.tryton.org/u/yland)
#### Post date: [March 10, 2016, 10:20pm UTC](https://discuss.tryton.org/t/migration-to-ldap3/75/9 "2016-03-10T22:20:08Z")

</div>

@kstenger, Thanks for the directives.

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [September 18, 2018, 7:28am UTC](https://discuss.tryton.org/t/migration-to-ldap3/75/10 "2018-09-18T07:28:54Z")

</div>


