Hello List / Vol / Ken
I am trying to configure Vpopmail 5.0pre5 with OpenLDAP 2.0.7 on RH 7.1.
With the help that I've got from the archives of the list, this is what
I've included in slapd.conf file.
include /etc/openldap/schema/qmail.schema
database ldbm
suffix "o=itisl"
suffix "dc=itisl,dc=net"
rootdn "cn=Sumith,dc=itisl,dc=net"
rootpw password
directory /var/lib/ldap/itisl
defaultaccess read
schemacheck on
lastmod on
in qmail.schema file....
objectclass qmailUser
requires
objectClass,
name,
uid,
qmailGID,
qmailUID,
qmaildomain,
userPassword,
mailQuota,
mailMessageStore
in vldap.h ....
#ifndef VPOPMAIL_LDAP_H
#define VPOPMAIL_LDAP_H
#undef OLD_VLDAP
#define VLDAP_SERVER "localhost"
#define VLDAP_PORT 389
#define VLDAP_USER "cn=Sumith, dc=itisl, dc=net"
#define VLDAP_PASSWORD "password"
#ifdef OLD_VLDAP
#define VLDAP_BASEDN "ou=Subs, o=Inter7"
#else
#define VLDAP_BASEDN "ou=%s, o=Inter7"
#endif
static char *vldap_attrs[] = {
"name",
"uid",
"qmailGID",
"qmailUID",
"qmaildomain",
"userPassword",
"mailQuota",
"mailMessageStore",
NULL
};
#endif
Vpopmail compiled OK but when I try to vaddomian I get "Unable to chdir
to vpopmail/users" error.
The errors that I see in OpenLDAP logs are...
Sep 13 14:53:35 leo slapd[2027]: /etc/openldap/schema/qmail.schema: line
11: old objectclass format not supported.
Sep 13 14:55:46 leo slapd[2029]: do_bind: v2 bind: "cn=Sumith, dc=itisl,
dc=net" to "cn=Sumith,dc=itisl,dc=net"
Sep 13 14:55:46 leo slapd[2029]: send_ldap_result: conn=0 op=0 p=2
Sep 13 14:55:46 leo slapd[2029]: send_ldap_result: 0::
Sep 13 14:55:46 leo slapd[2029]: send_ldap_response: msgid=1 tag=97 err=0
Sep 13 14:55:46 leo slapd[2029]: conn=0 op=0 RESULT tag=97 err=0 text=
Sep 13 14:55:46 leo slapd[2029]: ber_get_next on fd 7 failed errno=11
(Resource temporarily unavailable)
ep 13 14:55:46 leo slapd[2029]: SRCH "ou=test3.com, o=Inter7" 2 0
Sep 13 14:55:46 leo slapd[2029]: 0 0 0
Sep 13 14:55:46 leo slapd[2029]: begin get_filter
Sep 13 14:55:46 leo slapd[2029]: EQUALITY
Sep 13 14:55:46 leo slapd[2029]: end get_filter 0
Sep 13 14:55:46 leo slapd[2029]: filter: (objectClass=qmailUser)
Sep 13 14:55:46 leo slapd[2029]: attrs:
Sep 13 14:55:46 leo slapd[2029]: name
Sep 13 14:55:46 leo slapd[2029]: uid
Sep 13 14:55:46 leo slapd[2029]: qmailGID
Sep 13 14:55:46 leo slapd[2029]: qmailUID
Sep 13 14:55:46 leo slapd[2029]: qmaildomain
Sep 13 14:55:46 leo slapd[2029]: userPassword
Sep 13 14:55:46 leo slapd[2029]: mailQuota
Sep 13 14:55:46 leo slapd[2029]: mailMessageStore
Sep 13 14:55:46 leo slapd[2029]:
Sep 13 14:55:46 leo slapd[2029]: conn=0 op=1 SRCH base="ou=test3.com,
o=Inter7" scope=2 filter="(objectClass=qmailUser)"
Sep 13 14:55:46 leo slapd[2029]: send_ldap_result: conn=0 op=1 p=2
Sep 13 14:55:46 leo slapd[2029]: send_ldap_result: 10::
Sep 13 14:55:46 leo slapd[2029]: send_ldap_response: msgid=2 tag=101 err=32
Sep 13 14:55:46 leo slapd[2029]: conn=0 op=1 RESULT tag=101 err=32 text=
Sep 13 14:55:46 leo slapd[2029]: do_delete
Sep 13 14:55:46 leo slapd[2029]: conn=0 op=2 DEL dn="ou=test3.com,
o=Inter7"
Sep 13 14:55:46 leo slapd[2029]: send_ldap_result: conn=0 op=2 p=2
Sep 13 14:55:46 leo slapd[2029]: send_ldap_result: 10::
Sep 13 14:55:46 leo slapd[2029]: send_ldap_response: msgid=3 tag=107 err=32
Sep 13 14:55:46 leo slapd[2029]: conn=0 op=2 RESULT tag=107 err=32 text=
Sep 13 14:55:46 leo slapd[2029]: ber_get_next on fd 7 failed errno=11
(Resource temporarily unavailable)
Would appreciate any pointers from people who have had success in making
OpenLDAP 2.x to work with Vpopmail. Once this is done I promise to
submit a detail HOWTO on VPOPMAIL+LDAP to the List. Meanwhile I'll
continue reading OpenLDAP docs.
Regards
Sumith Ail