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 #
# -------------------------------- #
评论列表
文章目录