Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

ldap python how to print entries

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)
 
PREVIOUS NEXT
Tagged: #ldap #python #print #entries
ADD COMMENT
Topic
Name
2+1 =