I want to listen on multiple ports for openldap. Not ldaps, just ldap. I have tried (let's say port 100 and 200 - not the real ports):
ldap.conf:
URI ldap://0.0.0.0:100 ldap://0.0.0.0:200
and
slapd -h ldap://:100/ -h ldap://:200/
It always only comes up on port 100, never sees port 200. If I swap the numbers, then port 200 comes up and not 100. I am not sure what I am missing. Thanks for any help!
Quoting "Douglas B. Jones" douglas@gpc.edu:
I want to listen on multiple ports for openldap. Not ldaps, just ldap. I have tried (let's say port 100 and 200 - not the real ports):
ldap.conf:
URI ldap://0.0.0.0:100 ldap://0.0.0.0:200
and
slapd -h ldap://:100/ -h ldap://:200/
It always only comes up on port 100, never sees port 200. If I swap the numbers, then port 200 comes up and not 100. I am not sure what I am missing. Thanks for any help!
From what I remember of this, this is expected behaviour. It will
only try the next server/port if the previous failed.
Douglas B. Jones wrote:
I want to listen on multiple ports for openldap. Not ldaps, just ldap. I have tried (let's say port 100 and 200 - not the real ports):
ldap.conf:
URI ldap://0.0.0.0:100 ldap://0.0.0.0:200
from ldap.conf(5):
The ldap.conf configuration file is used to set system-wide defaults to be applied when running ldap clients.
so it has nothing to do with slapd(8) which is a ldap server.
and
slapd -h ldap://:100/ -h ldap://:200/
from slapd(8):
-h URLlist slapd will by default serve ldap:/// (LDAP over TCP on all interfaces on default LDAP port). That is, it will bind using INADDR_ANY and port 389. The -h option may be used to specify LDAP (and other scheme) URLs to serve. For example, if slapd is given -h "ldap://127.0.0.1:9009/ ldaps:/// ldapi:///", it will listen on 127.0.0.1:9009 for LDAP, 0.0.0.0:636 for LDAP over TLS, and LDAP over IPC (Unix domain sockets).
It always only comes up on port 100, never sees port 200. If I swap the numbers, then port 200 comes up and not 100. I am not sure what I am missing. Thanks for any help!
You're missing the man pages, which should be the most obvious place to first look at.
p.
Ing. Pierangelo Masarati OpenLDAP Core Team
SysNet s.n.c. Via Dossi, 8 - 27100 Pavia - ITALIA http://www.sys-net.it ------------------------------------------ Office: +39.02.23998309 Mobile: +39.333.4963172 Email: pierangelo.masarati@sys-net.it ------------------------------------------
On Mon, 12 Feb 2007, Douglas B. Jones wrote:
slapd -h ldap://:100/ -h ldap://:200/
It always only comes up on port 100, never sees port 200. If I swap the numbers, then port 200 comes up and not 100. I am not sure what I am missing. Thanks for any help!
Try slapd -H 'ldap://:100/ ldap://:200/'
(Notice the single argument.)
openldap-software@openldap.org