This is a discussion on Re: Authentication failed. within the mailing.postfix.users forums, part of the Mail Servers and Related category; sam wun wrote: > sam wun wrote: > >> Hi, >> >> I installed openldap22 with courier-...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
sam wun wrote:
> sam wun wrote: > >> Hi, >> >> I installed openldap22 with courier-imap, courier-auth-lib and >> postfix 22 in freebsd 5.4. But when I test pop3, I got the following >> error in the log: >> >> May 30 12:05:52 mail02 postfix/postfix-script: starting the Postfix >> mail system >> May 30 12:05:53 mail02 postfix/master[7678]: daemon started -- >> version 2.2.3, configuration /usr/local/etc/postfix >> May 30 12:06:51 mail02 authdaemond: authldaplib: error in LDAP >> configuration file, aborting >> May 30 12:06:51 mail02 pop3d: LOGIN FAILED, user=test@authtec.com, >> ip=[::1] >> May 30 12:06:51 mail02 pop3d: authentication error: Input/output error >> > After rebooted the system, and executed the same test, the log shown > more error; > May 30 12:25:50 mail02 pop3d: authentication error: Input/output error > May 30 12:26:20 mail02 postfix/trivial-rewrite[749]: warning: > dict_ldap_connect: Unable to bind to server ldap://localhost:389 as > cn=mailadmin,ou=admin,dc=authtec,dc=com: 49 (Invalid credentials) > May 30 12:26:20 mail02 postfix/trivial-rewrite[749]: fatal: > ldap:mailuser(0,100): table lookup problem > May 30 12:26:21 mail02 postfix/qmgr[569]: warning: premature > end-of-input on private/rewrite socket while reading input attribute name > May 30 12:26:21 mail02 postfix/qmgr[569]: warning: problem talking to > service rewrite: Unknown error: 0 > May 30 12:26:21 mail02 postfix/master[559]: warning: process > /usr/local/libexec/postfix/trivial-rewrite pid 749 exit status 1 > May 30 12:26:21 mail02 postfix/master[559]: warning: > /usr/local/libexec/postfix/trivial-rewrite: bad command startup -- > throttling > As I look further in the debug.log, I found slapd may be has some problem with user mailadmin: May 30 12:30:25 mail02 slapd[468]: conn=10 fd=10 ACCEPT from IP=127.0.0.1:50912 (IP=0.0.0.0:389) May 30 12:30:25 mail02 slapd[468]: conn=10 op=0 BIND dn="cn=mailadmin,ou=admin,dc=authtec,dc=com" method=128 May 30 12:30:25 mail02 slapd[468]: conn=10 op=0 RESULT tag=97 err=49 text= May 30 12:30:26 mail02 slapd[468]: conn=10 fd=10 closed In the slapd.conf file, I define the following access rule for mailadmin : access to dn.subtree="ou=mail02,dc=authtec,dc=com" by dn="cn=mailadmin,ou=admin,dc=authtec,dc=com" write by * none Here is the postfix.ldif file I used to populate mail user into the ldap database (BDB): dn: ou=admin,dc=authtec,dc=com ou: admin objectClass: top objectClass: organizationalUnit dn: ou=mail02,dc=authtec,dc=com ou: mail02 objectClass: top objectClass: organizationalUnit dn: cn=mailadmin,ou=admin,dc=authtec,dc=com cn: mailadmin mail: mailadmin@authtec.com uid: mailadmin displayName: mail admin gidNumber: 80 uidNumber: 80 userStatus: 1 mailMessageStore: authtec.com/mailadmin/Maildir/ mailQuota: 1000000 userPassword: 2320419 objectClass: mailUser objectClass: top homeDirectory: /usr/local/vmail dn: uid=test,ou=mail02,dc=authtec,dc=com cn: test uid: test displayName: test user uidNumber: 80 gidNumber: 80 userPassword: testtest userStatus: 1 objectClass: mailUser objectClass: top mail: test@authtec.com mailMessageStore: authtec.com/test/Maildir/ homeDirectory: /usr/local/vmail Sam. >> How can I track down the problem in detail? >> >> Thanks >> Sam >> >> |