📜  ldap python 如何打印条目 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:18.982000             🧑  作者: Mango

代码示例1
entries = conn.extend.standard.paged_search(search_base='dc=something,dc=local',
                                                search_filter='(&(objectclass=*)(description=*Zilina*))',
                                                attributes=ALL_ATTRIBUTES, paged_size=5)
count = 0
    for entry in entries:
        print(entry.value)
        count = count + 1
    print("pocet entries: ", count)