Django:寻找一个好的LDAP操作库 [英] Django : looking for a good LDAP manipulation library

查看:96
本文介绍了Django:寻找一个好的LDAP操作库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Django上寻找一个好的ldap库,这将允许我管理我的ldap服务器:

I am looking for a good ldap library on Django, that would allow me to manage my ldap server :

  • 添加,修改,删除条目
  • 用于组,用户和所有对象

django-ldapdb 看起来很有希望,它提供了Model基类可以用来以Django方式声明ldap对象(这是我们理想中想要的),但是我们遇到了一些错误,而且似乎不再维护了.

The library django-ldapdb looked promising, it offers a Model base class that can be used to declare ldap objects in a Django fashion (which is what we ideally want), however we've had some bugs with it, and furthermore it seems like it is not maintained any more.

有人知道一个可以做到这一点的好图书馆吗?否则我想我只会尝试改善和调试django-ldapdb ...

Does somebody know a good library that could do the trick ? Otherwise I guess I'll just try to improve and debug django-ldapdb ...

谢谢!

推荐答案

当使用ldapdb查询ldap时,其结果超出服务器允许的范围,而不是获得部分列表(例如前500个用户),我得到SIZELIMIT_EXCEEDED异常.尝试更改代码以捕获该异常导致结果对象为空. 还有其他人有这个问题吗?

When using ldapdb to query ldap with more results than the server allows instead of getting the partial list (of say the first 500 users) I get SIZELIMIT_EXCEEDED exception. Trying to change the code to catch that exception resulted in an empty result objects. Anyone else had that problem?

我通过将search_s函数更改为使用search_ext并逐一读取结果直到发生异常来解决了这个问题.

I fixed that problem by changing the search_s function to use search_ext and read the results one by one until the exception happens.

这篇关于Django:寻找一个好的LDAP操作库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆