<s> import sys , time , ldap , ldap . ldapobject , ldapurl <EOL> from ldap . ldapobject import * <EOL> ldap_url = ldapurl . LDAPUrl ( sys . argv [ <NUM_LIT:1> ] ) <EOL> ldap_url . applyDefaults ( { <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : ldap . SCOPE_BASE <EOL> } ) <EOL> ldap . trace_level = <NUM_LIT:1> <EOL> l = ldap . ldapobject . ReconnectLDAPObject ( <EOL> ldap_url . initializeUrl ( ) , trace_level = ldap . trace_level <EOL> ) <EOL> l . protocol_version = ldap . VERSION3 <EOL> l . simple_bind_s ( ldap_url . who , ldap_url . cred ) <EOL> while <NUM_LIT:1> : <EOL> l . search_s ( ldap_url . dn , ldap_url . scope , ldap_url . filterstr , ldap_url . attrs ) <EOL> sys . stdin . readline ( ) </s>
