Skip to content

Commit ae6e2ed

Browse files
committed
Load app configuration in handle_cert_mail so it can read the keytab path
1 parent 5f54883 commit ae6e2ed

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

handle_cert_mail.py

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env python
22

33
import email
4+
import os.path
45
import sys
56
import ldap
67
import ldap.filter
@@ -82,4 +83,7 @@ def main():
8283

8384
if __name__ == "__main__":
8485
auth.set_user_from_parent_process()
86+
from paste.deploy import loadapp
87+
88+
loadapp("config:development.ini", relative_to=os.path.dirname(__file__))
8589
main()

0 commit comments

Comments
 (0)