rbuserdb.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:useradm 作者: redbrick 项目源码 文件源码
def dict_reserved_static(self):
        """Return dictionary of all static reserved entries with their
        description."""
        res = self.ldap.search_s(
            rbconfig.ldap_reserved_tree, ldap.SCOPE_ONELEVEL,
            '(&(objectClass=reserved)(flag=static))', ('uid', 'description'))
        tmp = {}
        for data in res:
            tmp[data['uid'][0]] = data['description'][0]
        return tmp

    # -------------------------------- #
    # METHODS RETURNING SEARCH RESULTS #
    # -------------------------------- #
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号