I think this is more a LDAP problem than postfix, but as I need to make LDAP
work with postfix, I decided to post in both lists (ldap and postfix).
Using the postfix+ldap+courier_imap howto at postfix.org I've created a simple
entry on my ldap server, but I'm having problems with the structure of the
ldap tree.
here is my system-leave ldif:
dn: dc=example,dc=com
userPassword: {encrypted}
o: example
objectClass: organizationalUnit
dn: ou=postfix,dc=example,dc=com
ou: postfix
objectClass: organizationalUnit
dn: dc=domain,ou=postfix,dc=example,dc=com
associatedDomain: example.com
dc: domain
objectClass: dNSDomain
objectClass: domainRelatedObject
here is my account-leave ldif:
dn: cn=Test User,ou=foobar,dc=domain,ou=postfix,dc=example,dc=com
userPassword: {encrypted}
uid: test
ou: foobar
mail: te...@example.com
homeDirectory: /var/imap/example.com/teste
mailMessageStore: /var/imap/example.com/test/Maildir
objectClass: qmailuser
objectClass: couriermailaccount
accountStatus: active
My question is:
How can I make postfix look at this account?
I've tryed:
...
ldap_search_base = ou=postfix,dc=example,dc=com
...
and
...
ldap_search_base = ou=foobar,dc=domain,ou=postfix,dc=example,dc=com
...
and it can't find the user...
the errors are: No such object and table lookup problem.
I think the problem is on my ldap structure.
Any ideas?
--
Joao Reis.
jo...@afreis.com.br
li...@afreis.com.br
> I think this is more a LDAP problem than postfix, but as I need to make LDAP
> work with postfix, I decided to post in both lists (ldap and postfix).
Indeed it is more of an LDAP problem than a Postfix problem. Make sure
that you understand *completely* how to use utils such as ldapsearch,
ldapmod, ldapwhoami and then come back. Preferably, understand *all*
about slapd and SASL, TLS/SSL and LDAPI.
--Tonni
--
Tony Earnshaw
Do not CC me or your mail will probably be rejected.
I don't like this, either. Blame it on Swen and a slow
Internet connection.