getmailad
This commit is contained in:
parent
eedc72e3c9
commit
2a06d95065
|
@ -15,7 +15,7 @@ class getmailad(object):
|
|||
#TODO: make this configurable via constructor
|
||||
self._ldap_server = "ldap://dc2.aec.at"
|
||||
self._bind_dn = "david@aec.at"
|
||||
self._bind_pass = "xxxxx"
|
||||
self._bind_pass = "xxxxxxx"
|
||||
self._base_dn = "ou=adm,dc=aec,dc=at"
|
||||
|
||||
|
||||
|
@ -60,7 +60,8 @@ class getmailad(object):
|
|||
if __name__ == "__main__":
|
||||
getmailadobj = getmailad()
|
||||
getmailadobj.get()
|
||||
print getmailadobj.addresslist
|
||||
for item in getmailadobj.addresslist:
|
||||
print item
|
||||
print "\nMail addresses found: %i" %(getmailadobj.count)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue