diff options
author | Mike Crute <mcrute@gmail.com> | 2011-06-07 23:30:31 -0400 |
---|---|---|
committer | Mike Crute <mcrute@gmail.com> | 2011-06-07 23:30:31 -0400 |
commit | f568661ef7df093d1ac208cb0a19bec6b055b250 (patch) | |
tree | 19d7cfc10ec1cd38820ad0591f02d61fa0767d78 | |
parent | f243ec4b9f5dbf6292b18ef4bce5474a5a2c3cab (diff) | |
download | d2-f568661ef7df093d1ac208cb0a19bec6b055b250.tar.bz2 d2-f568661ef7df093d1ac208cb0a19bec6b055b250.tar.xz d2-f568661ef7df093d1ac208cb0a19bec6b055b250.zip |
Expanding user to make configs more portable
-rw-r--r-- | lib/d2/config/__init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/d2/config/__init__.py b/lib/d2/config/__init__.py index f75c880..6fa1815 100644 --- a/lib/d2/config/__init__.py +++ b/lib/d2/config/__init__.py | |||
@@ -30,9 +30,9 @@ class LdapConnector(object): | |||
30 | 30 | ||
31 | def _set_certfile(self, sections): | 31 | def _set_certfile(self, sections): |
32 | if 'certfile' in sections['ldap']: | 32 | if 'certfile' in sections['ldap']: |
33 | if os.path.exists(sections['ldap']['certfile']): | 33 | certfile = os.path.expanduser(sections['ldap']['certfile']) |
34 | ldap.set_option(ldap.OPT_X_TLS_CACERTFILE, | 34 | if os.path.exists(certfile): |
35 | sections['ldap']['certfile']) | 35 | ldap.set_option(ldap.OPT_X_TLS_CACERTFILE, certfile) |
36 | 36 | ||
37 | def _initialize(self, sections): | 37 | def _initialize(self, sections): |
38 | con = ldap.initialize(sections['ldap']['server']) | 38 | con = ldap.initialize(sections['ldap']['server']) |