Skip to content

Commit 5bf0237

Browse files
committed
find_expiring_certs, handle_cert_mail: Restore needed vhosts.connect()
Signed-off-by: Anders Kaseorg <[email protected]>
1 parent 06e8a33 commit 5bf0237

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

find_expiring_certs.py

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
def main():
1212
now = datetime.utcnow()
1313

14+
vhosts.connect()
1415
res = vhosts.conn.search_s(
1516
"ou=VirtualHosts,dc=scripts,dc=mit,dc=edu",
1617
ldap.SCOPE_ONELEVEL,

handle_cert_mail.py

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ def main():
2929
list(names) + list(names) + BLACKLIST,
3030
)
3131

32+
vhosts.connect()
3233
res = vhosts.conn.search_s(
3334
"ou=VirtualHosts,dc=scripts,dc=mit,dc=edu",
3435
ldap.SCOPE_ONELEVEL,

0 commit comments

Comments
 (0)