Re: [exim] working Lookup for LDAP

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Heiko Schlittermann
Date:  
À: exim-users
Sujet: Re: [exim] working Lookup for LDAP
Hello Darko

Darko Hojnik <exim@???> (Sa 13 Mär 2010 10:07:55 CET):
> dn:
> uid=exim@???,ou=example.org,o=Accounts,o=mailserver,dc=directory,dc=example,dc=org
> gidnumber: 10000
> mail: exim@???
> mailquota: 104857600000000
> objectclass: top
> objectclass: account
> objectclass: dbmailUser
> uid: exim@???
> uidnumber: 100318
> userpassword: {MD5}Aw3Q4sjzcy8huGhsj726keCw==
>
>
> So the Users are stored
> ou=DOMAINNAME,o=Accounts,o=mailserver,dc=directory,dc=example,dc=org The
> lookup have to search for the objectclass dbmailUser and uid=%


What do you have for input to your search and what do you expect as
result?

Exim basically follows the RFC2255, if I remember well…

    ${lookup ldap {ldap:///BASE?ATTR?SCOPE?FILTER} }
              |    '~~~~~~~~~~~~~ RFC2255 ~~~~~~'
              |
             ldapm  -> allows to return multiple entries
             ldapdn -> just returns the DN


> dn:
> mailDomain=example.org,o=Domains,o=mailserver,dc=directory,dc=example,dc=org
> maildomain: enturbolation.de
> objectclass: dbmailDomain
> objectclass: top
>
> For this lookup i have to search for the objectclass dbmailDomain and
> maildomain=% in o=Domains,o=mailserver,dc=directory,dc=example,dc=org


Same question as above.

Or do I misunderstand something here?

    Best regards from Dresden/Germany
    Viele Grüße aus Dresden
    Heiko Schlittermann
-- 
 SCHLITTERMANN.de ---------------------------- internet & unix support -
 Heiko Schlittermann HS12-RIPE -----------------------------------------
 gnupg encrypted messages are welcome - key ID: 48D0359B ---------------
 gnupg fingerprint: 3061 CFBF 2D88 F034 E8D2  7E92 EE4E AC98 48D0 359B -