summaryrefslogtreecommitdiffstats
path: root/saslauthd
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-09-12 01:10:55 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-10-03 17:53:57 +0200
commita9f7ca7f249362e96abcb68a21a0ef85a2d9f7d7 (patch)
tree003921e0f655b1ee99205381356413af76e82990 /saslauthd
parent62df71a225fc2dbc2351a9e8ac211546c6af4ac8 (diff)
downloadpykolab-a9f7ca7f249362e96abcb68a21a0ef85a2d9f7d7.tar.gz
Actually fix the socket file
Diffstat (limited to 'saslauthd')
-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
)