1
1
Fork 0

getmailad

This commit is contained in:
David 2012-05-22 18:34:32 +02:00
parent eedc72e3c9
commit 2a06d95065
1 changed files with 3 additions and 2 deletions

View File

@ -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)