OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: Help with LDAP
From: Marcio Cesar Pompermayer (pomperintra.procergs.com.br)
Date: Wed May 03 2000 - 07:27:29 CDT


Hi everybody! I´m new in Postfix so, please be patient. We are using
internally Postfix (version 19991231.06) with LDAP suport (OpenLDAP v 1.2.8
- without kerberos) in a FreeBSD v 3.4. We are also using IMAP (Cyrus v
1.5.19) and I have troubles to send messages to a mail list, so I'm writing
to call for help.
 When we send a mail to a person the Postfix deliver the mail to the IMAP
box without problems. But when we send a message to a groupofnames (the
name of the objectclass in LDAP) the Postfix returns the following message:
"<focoqueen.procergs>: user unknown. Command output: foco: Mailbox does
not exist _." But the field member is available.

 In the main.cf we have these configurations:
...
1- alias_maps = hash:/etc/aliases, ldap:ldapgroup, ldap:ldapsource
2- ldapsource_server_host = localhost
3- ldapsource_search_base = o=ESTADO, c=BR
4- ldapsource_query_filter = (&(mail=%s)(objectclass=person))
5- ldapsource_result_attribute = uid

6- ldapgroup_server_host = localhost
7- ldapgroup_search_base = o=ESTADO, c=BR
8- ldapgroup_query_filter = (&(mail=%s)(objectclass=groupofnames))
9- ldapgroup_result_attribute = member
...

In our LDAP definitions we have two objectclass: person and grupofnames
(for mail lists). In the objectclass person the result_attribute is uid
(line 5), in grupofnames the result attribute is the "field" member.
The definition of the object grupofnames is the following:
dn: cn=Grupo Foco, ou=D7, ou=PROCERGS, ou=SARH, o=ESTADO, c=BR
owner: cn=manager, o=ESTADO, c=BR
ou: D7
ou: PROCERGS
ou: SARH
member: mauro
member: lilian
member: fabiano
member: froes
mail: focoqueen.procergs
objectclass: groupOfNames
uid: foco
modifytimestamp: 20000405142110Z
modifiersname: cn=manager, o=estado, c=br
cn: foco
cn: grupo foco
description: Grupo de Desenvolvimento

Thanks

Marcio Pompermayer
pomperintra.procergs.com.br