Re: [exim] howto store virtual users in ldap

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Jonathan Gonzalez
Data:  
Para: Jonas Meurer
CC: exim-users
Asunto: Re: [exim] howto store virtual users in ldap
Hi,

i have recently posted something similar and after a lot of comments i
can tell you that i have integrated the 80% of the work at the moment,
but without the qmail schema.

In you case you should include int he slapd.conf config file the qmail
schema (qmail.schema) and for ease of work i recommend you phpldapadmin
in order to manage your schema.

As soon as i get to work with my integration i will post the configs and
results, with the good and bad of the config for others to improve it.

BR,

jonathan




Jonas Meurer wrote:
> hello,
>
> i try to store virtual users for different domains inside a ldap
> database. this is the first time i use ldap, so please don't wonder
> about dump questions ;)
>
> i still did not decide which schema to use, as i don't know which is the
> best for my case.
>
> i have to split mail accounts on the system by domain, so
> user1@??? is another account than user1@???.
>
> as far as i understand, i need the mailaddress ($local_part@$domain) and
> the maildir folder inside the ldap.
> exim could put the mail inside the maildir folder depending on the
> mailaddress, and a imap/pop3 server could use the same database.
>
> and want to store the mail accounts inside subfolders (organizationalUnit).
> i need attributes mailAddress and mailMaildir, but how exactly do i add
> entries to ldap?
>
> with qmail.schema i got the following to work, but i guess it's a little
> bit overkill for only two needed attributes.
>
> dn: uid=bla@???,dc=resivo,dc=mejo,dc=net
>         objectClass: inetOrgPerson
>         objectClass: qmailUser
>         uid: bla@???
>         sn: bla
>         cn: bla
>         mail: bla@???
>         mailMessageStore: /home/mailusers/bla/Maildir

>
> are there any other schemas that cover the two required attributes?
>
> the best would be some example exim4 config and ldif file from somebody
> who has virtual users and domains stored inside ldap and uses this for
> mail + imap/pop3 servers.
>
> bye
> jonas
>