Zitat von lixiang <[EMAIL PROTECTED]>: Hi lixiang,
sorry for my late responds, I have been off for holiday ;-)) So if you verified your LDAP-Entries that they look like below ( e.g. with gq ) your are fine. > dc=koal,dc=com > | > ->ou=people > | > -> ou=test.com > | > ->uid=postmaster > ->uid=user1 > ->uid=user2 > It may be an access error, please check your settings in slapd.conf and compare them with your compilation in vldap.h BaseDN and Binddn _must_ be correct, because if vpopmail tries to bind via an non existing ldap-user it doesn't see any entries at all. Here is a sample of a successful auth: ---snip conn=1047818 fd=7 ACCEPT from IP=::1 32811 (IP=:: 389) Jul 15 10:35:09 mail slapd[4671]: conn=1047818 op=0 BIND dn="cn=xxxx,dc=xxxxx,dc=net" method=128 Jul 15 10:35:09 mail slapd[4671]: conn=1047818 op=0 AUTHZ dn="cn=xxxx,dc=xxxxx,dc=net" mech=simple ssf=0 Jul 15 10:35:09 mail slapd[4671]: conn=1047818 op=0 RESULT tag=97 err=0 text= Jul 15 10:35:09 mail slapd[21275]: conn=1047818 op=1 SRCH base="ou=xxxxx.de,ou=people,dc=xxxxx,dc=net" scope=2 filter="(& (objectClass=qmailUser)(uid=user1))" Jul 15 10:35:09 mail slapd[21275]: conn=1047818 op=1 SEARCH RESULT tag=101 err=0 nentries=1 text= --- snap Make sure your settings in vldap.h are correct: --- snip define VLDAP_SERVER "localhost" #define VLDAP_PORT LDAP_PORT #define VLDAP_USER "cn=root,dc=xxxx,dc=net" <---- This must be equal to slapd.conf #define VLDAP_PASSWORD "password" <---- This must be equal to slapd.conf #define MAX_BUFF 500 #define VLDAP_BASEDN "ou=people,dc=xxxxx,dc=net" --- snap ############ Look at slapd.conf ############### --- snip rootdn "cn=root,dc=xxxx,dc=net" <--- This must be equal to vldap.h rootpw password <---- This must be equal to vldap.h --- snap I think that is the reason for your probs. Have both of the initial LDAP-entries completed ? ----snip dn: dc=xxx,dc=net objectclass: organization o: xxx dn:ou=people,dc=xxxx,dc=cn objectclass: organizationalUnit ou:people ----snap Please let me know if that doesnt help. Cheers Jens