Learning Python Network Programming

(Sean Pound) #1

Interacting with Remote Systems


If you a run a simple LDAP query with the help of ldapsearch, then you will see
results such as:


ldapsearch -x -b "dc=localdomain,dc=loc" -h 10.0.2.15 -p 389


extended LDIF



LDAPv3


base <dc=localdomain,dc=loc> with scope subtree


filter: (objectclass=*)


requesting: ALL



localdomain.loc


dn: dc=localdomain,dc=loc


objectClass: top


objectClass: dcObject


objectClass: organization


o: localdomain.loc


dc: localdomain


admin, localdomain.loc


dn: cn=admin,dc=localdomain,dc=loc


objectClass: simpleSecurityObject


objectClass: organizationalRole


cn: admin


description: LDAP administrator


groups, localdomain.loc


dn: ou=groups,dc=localdomain,dc=loc


ou: groups


objectClass: organizationalUnit


objectClass: top

Free download pdf