summaryrefslogtreecommitdiff
path: root/usr.sbin/ldapd/ldape.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ldapd/ldape.c')
-rw-r--r--usr.sbin/ldapd/ldape.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/ldapd/ldape.c b/usr.sbin/ldapd/ldape.c
index 4071d9fe8a7..4862dfda826 100644
--- a/usr.sbin/ldapd/ldape.c
+++ b/usr.sbin/ldapd/ldape.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ldape.c,v 1.2 2010/05/31 18:29:04 martinh Exp $ */
+/* $OpenBSD: ldape.c,v 1.3 2010/06/03 17:29:54 martinh Exp $ */
/*
* Copyright (c) 2009, 2010 Martin Hedenfalk <martin@bzero.se>
@@ -285,6 +285,11 @@ ldape(struct passwd *pw, char *csockpath, int pipe_parent2ldap[2])
ssl_setup(conf, l);
}
+ TAILQ_FOREACH(ns, &conf->namespaces, next) {
+ if (namespace_open(ns) != 0)
+ fatal(ns->suffix);
+ }
+
if (pw != NULL) {
if (chroot(pw->pw_dir) == -1)
fatal("chroot");
@@ -297,11 +302,6 @@ ldape(struct passwd *pw, char *csockpath, int pipe_parent2ldap[2])
fatal("cannot drop privileges");
}
- TAILQ_FOREACH(ns, &conf->namespaces, next) {
- if (namespace_open(ns) != 0)
- fatal(ns->suffix);
- }
-
log_debug("ldape: entering event loop");
event_dispatch();