[Kroupware] LC_* and LANG not working for kolab, ldap database empty, auth fails ...

Miroslav Zubcic kroupware@mail.kde.org
Tue, 25 Mar 2003 12:03:55 +0100


Summary of my problems with kolab is in the subject.

Platform: Red Hat 8.0

All packages are installed by reading instructions in QIM, except for
couple of dependencies and minor problems (openssl, perl-ssl
precedence, apache and mod_ssl and other trivial problems).

When installing kolab rpm, after problems with slapd hanging I have
reinstalled it under this environment:

LC_ALL=C
LC_MESSAGES=C
LANG=C

... are exported in environment, for root AND for kolab server.

[root@mvz etc]# env | grep ^L
LC_ALL=C
LC_MESSAGES=C
LANG=C
LOGNAME=kolab
LESSOPEN=|/usr/bin/lesspipe.sh %s
[root@mvz etc]# /kolab/etc/kolab/kolab -v -o
Can't call method "attributes" on an undefined value at /kolab/etc/kolab/kolab line 300.

If I comment out three lines (300, 301 and 302) I can start script,
but ldap database is still empty:

[root@mvz etc]# strings /kolab/var/openldap/openldap-data/dn2id.dbb 

[root@mvz etc]# /kolab/bin/ldapsearch -x -w 'rbSBOQD43Sdd.' \
-D "cn=manager,dc=mvz,dc=hac,dc=hr" -b "dc=mvz,dc=hac,dc=hr"
# extended LDIF
#
# LDAPv3
# base <dc=mvz,dc=hac,dc=hr> with scope sub
# filter: (objectclass=*)
# requesting: ALL
#

# search result
search: 2
result: 32 No such object

# numResponses: 1

Furthermore, I cannot log in web interface (for obvious reasons):

tail /kolab/var/apache/log/*

[Tue Mar 25 10:53:01 2003] [error] [client 192.168.40.187] \
 [mod_auth_ldap.c] - ldap_search_s() failed

[Tue Mar 25 10:53:01 2003] [error] [client 192.168.40.187] \
 [mod_auth_ldap.c] - Error: No such object

If I disable authentification in /kolab/etc/apache/apache.conf I found
that file is rewritten by startup scripts, if I disable
authentification in /kolab/etc/kolab/httpd.conf.template and rerun
/kolab/etc/kolab/kolab script (with commented out lines 300-302)

I can open web interface, but page is full of errors (cannot bind
anonymously, cannot bind etc ...).

What's wrong with my configuration?

<paranoia>
        I have recompiled perl, perl-ldap, apache and kolab-rpm under
        LC_* and LANG environment set to POSIX (C) locale. Still no
        luck.
</paranoia>



-- 
		The Network is the Filesystem