summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Boddie <paul@boddie.org.uk>2014-09-10 17:53:56 +0200
committerPaul Boddie <paul@boddie.org.uk>2014-09-10 17:53:56 +0200
commitb13b24d5a917715a69c22000fc383648f9f9eb3f (patch)
treee3574c0519bb56e7748eb8cb1a09e3e8f05581be
parent6809a2ea710971b2ce9a98c125f31a01278939ad (diff)
downloadpykolab-b13b24d5a917715a69c22000fc383648f9f9eb3f.tar.gz
Access the socketfile setting via the conf object.
-rw-r--r--saslauthd/__init__.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/saslauthd/__init__.py b/saslauthd/__init__.py
index 6590747..1ae09dd 100644
--- a/saslauthd/__init__.py
+++ b/saslauthd/__init__.py
@@ -170,13 +170,13 @@ class SASLAuthDaemon(object):
# TODO: The saslauthd socket path could be a setting.
try:
- os.remove(socketfile)
+ os.remove(conf.socketfile)
except:
# TODO: Do the "could not remove, could not start" dance
pass
- s.bind(socketfile)
- os.chmod(socketfile, 0777)
+ s.bind(conf.socketfile)
+ os.chmod(conf.socketfile, 0777)
s.listen(5)
@@ -271,7 +271,7 @@ class SASLAuthDaemon(object):
def _ensure_socket_dir(self):
utils.ensure_directory(
- os.path.dirname(socketfile),
+ os.path.dirname(conf.socketfile),
conf.process_username,
conf.process_groupname
)