Re: [OpenIndiana-discuss] Problem with openldap_24 package

2019-07-17 Thread Dieter Klünter
Tim Mooney  writes:

> In regard to: [OpenIndiana-discuss] Problem with openldap_24 package,...:
>
>> typeset -r CONFDIR=/etc/openldap/slapd.d
>> typeset -r LDAP_URL=ldap:///
>> typeset -r LDAPS_URL=ldaps:///
>> typeset -r LDAPI_URL=ldapi:///
>> typeset -r SLAPD="/usr/lib/64/slapd -h "${LDAP_URL} ${LDAPI_URL}" -u
>> ${LDAPUSR} -g ${LDAPGRP} -f ${CONF_FILE} -F ${CONFDIR}"
>
> One problem is quoting.  You need to get
>
>   -h "${LDAP_URL} ${LDAPI_URL}"
>
> so that it's one argument being passed after -h, but that's not actually
> what's happening.  You'll need to do some careful escaping of the "
> around that argument or just hard-code the two arguments you want in
> single quotes, like this:
>
> typeset -r SLAPD="/usr/lib/64/slapd -h 'ldap:/// ldapi:///' -u
> ${LDAPUSR} -g ${LDAPGRP} -f ${CONF_FILE} -F ${CONFDIR}"
>
>> As I mentioned in an earlier mail, I face some property problems with
>> IPC socket.
>>
>> Some instance, unknown to me, is checking the file ldap-olslapd as the
>> flag '-h' is ignored, according to the logs.
>>
>> lib/svc/method/ldap-olslapd[21]: typeset: ldapi:/// -u openldap -g
>> openldap -f /etc/openldap/slapd.conf -F /etc/openldap/slapd.d: invalid
>> variable name
>
> It's saying that because your quoting is wrong.

We both were completely wrong :-)

The reason forfailing slapd is a malfunction of slapd. I have
configured a back-mdb database and added the initital dataset by means
of slapadd, which in fact is a slapd function (-T). This slapd has a
built-in back-bdb, thus the database was created with berkeleyDB
library plus additional functions of lmdb. Strang, but the database
could not be read anymore.
Now I have to check the sources and probabely rebuild the package.

-Dieter

--
Dieter Klünter | Directory Service
http://sys4.de
53°37'09,95"N
10°08'02,42"E

___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Problem with openldap_24 package

2019-07-16 Thread Tim Mooney

In regard to: [OpenIndiana-discuss] Problem with openldap_24 package,...:


typeset -r CONFDIR=/etc/openldap/slapd.d
typeset -r LDAP_URL=ldap:///
typeset -r LDAPS_URL=ldaps:///
typeset -r LDAPI_URL=ldapi:///
typeset -r SLAPD="/usr/lib/64/slapd -h "${LDAP_URL} ${LDAPI_URL}" -u
${LDAPUSR} -g ${LDAPGRP} -f ${CONF_FILE} -F ${CONFDIR}"


One problem is quoting.  You need to get

-h "${LDAP_URL} ${LDAPI_URL}"

so that it's one argument being passed after -h, but that's not actually
what's happening.  You'll need to do some careful escaping of the "
around that argument or just hard-code the two arguments you want in
single quotes, like this:

typeset -r SLAPD="/usr/lib/64/slapd -h 'ldap:/// ldapi:///' -u ${LDAPUSR} -g 
${LDAPGRP} -f ${CONF_FILE} -F ${CONFDIR}"


As I mentioned in an earlier mail, I face some property problems with
IPC socket.

Some instance, unknown to me, is checking the file ldap-olslapd as the
flag '-h' is ignored, according to the logs.

lib/svc/method/ldap-olslapd[21]: typeset: ldapi:/// -u openldap -g
openldap -f /etc/openldap/slapd.conf -F /etc/openldap/slapd.d: invalid
variable name


It's saying that because your quoting is wrong.

Tim
--
Tim Mooney tim.moo...@ndsu.edu
Enterprise Computing & Infrastructure  701-231-1076 (Voice)
Room 242-J6, Quentin Burdick Building  701-231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164

___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


[OpenIndiana-discuss] Problem with openldap_24 package

2019-07-16 Thread Dieter Klünter
Hi,
I face some problems with the existing openldap_24 package. 
The file '/lib/svc/method/ldap-olslapd' contains information that
obsolete. Thus I modified this file to be in accordance with slapd(8).
The databases back-bdb and back-hdb are obsolete, thus BerkleyDB-Tools
(db_recover etc.) are not required anymore.

These are my modifications of ldap-olslapd


typeset -r CONFDIR=/etc/openldap/slapd.d
typeset -r LDAP_URL=ldap:///
typeset -r LDAPS_URL=ldaps:///
typeset -r LDAPI_URL=ldapi:///
typeset -r SLAPD="/usr/lib/64/slapd -h "${LDAP_URL} ${LDAPI_URL}" -u
${LDAPUSR} -g ${LDAPGRP} -f ${CONF_FILE} -F ${CONFDIR}"

As I mentioned in an earlier mail, I face some property problems with
IPC socket.

Some instance, unknown to me, is checking the file ldap-olslapd as the
flag '-h' is ignored, according to the logs.

lib/svc/method/ldap-olslapd[21]: typeset: ldapi:/// -u openldap -g
openldap -f /etc/openldap/slapd.conf -F /etc/openldap/slapd.d: invalid
variable name 
[ Juli 16 15:16:29 Method "stop" exited with status 1. ]

Is there somebody who may have a look at this issues?

-Dieter

--
Dieter Klünter | Directory Service
http://sys4.de
53°37'09,95"N
10°08'02,42"E

___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss