You are not logged in.

#1 2006-09-18 19:32:45

SenorSnor
Member
From: Delft, Netherlands
Registered: 2006-09-13
Posts: 48

Quotes in options /etc/default/slapd

I want to start the openldap-server (slapd) on two of the four interfaces I have: eth1 and localhost. On the commandline you can start slapd with the option -h "ldap://127.0.0.1 ldap://192.168.1.1". The quotes surround all the options to the -h parameter.

With arch, I'm supposed to supply the options in /etc/defaults/slapd. There's the line:
SLAPD_OPTIONS=""

If I put the above options in there, I get an error message about ldap://192.168.1.1 not being a command. I tried to escape the quotes by putting a  in front of 'm, but that didn't work either. Is there a way to do this?

Offline

#2 2006-09-18 20:24:07

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Quotes in options /etc/default/slapd

I don't use this package, so this may not help, but I can assign the right value for SLAPD_OPTIONS on the command line like this:

$ SLAPD_OPTIONS="-h "ldap://127.0.0.1 ldap://192.168.1.1""
$ echo $SLAPD_OPTIONS
-h "ldap://127.0.0.1 ldap://192.168.1.1"

Any use to you?

Offline

#3 2006-09-18 23:23:20

SenorSnor
Member
From: Delft, Netherlands
Registered: 2006-09-13
Posts: 48

Re: Quotes in options /etc/default/slapd

Tnx. I tried that but it doesn't work .. forgot the message, will check tonight smile

Offline

Board footer

Powered by FluxBB