Hello Vol
I understand configuring LDAP is a pain. Is there an alternative in
Vpopmail for people who require Global Address Book.
Also, If at all I succeed in getting LDAP database to work will the
Global Address book be available.
I'd like to hear from people who are using VPOPMAIL+LDAP in production
environment.
Regards
Sumith
[EMAIL PROTECTED] wrote:
> There's a lot going on with the LDAP configuration.
> First of all. Your suffix must be contained within the VLDAP_BASEDN.
>
>> #define VLDAP_BASEDN "ou=%s, o=Inter7"
>
>
> Your suffix should read:
>
> suffix "o=Inter7"
>
> If you don't want the o=Inter7, you must create your own schemas.
> The o, and ou were used because they are standard with OpenLDAP,
> and very little configuration-time would be needed (I thought anyway).
>
> Lastly, you must create your suffix.
>
> bash$ cat > file
> dn: o=Inter7
> o: Inter7
> objectclass: organization
>
> bash$ cat file | ldapinsert
> bash$
>
> Again, to everyone. The LDAP module does function properly, it's just
> a real pain to configure. Second, we're not all too thrilled with
> LDAP anyway, and we always suggest another database. If you feel
> you're stuck with LDAP because you have an LDAP user-base from another
> mail system, then you have no idea how right you are. Converting
> between two different email LDAP database schemas is incredibly
> difficult and time consuming.
>
> That's it! :)
>
> Good luck to everyone still willing to give the LDAP module a shot.
>
> Sumith Ail wrote:
>
>> 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
>