> Also qmail-showctl works fine. But qmail-ldaplookup failed. So I enabled 
>DEBUGLEVEL=255.
> I seems the qmail configuration is defferent from qmail-showctl and 
>qmail-ldaplookup. I don't why
> these two is defferent. Can you help me? I am really neet your help.
> 
> some reslut from debug.....
> 
> -------  result of qmail-ldaplookup with debug -----------
> simple bind successful (as '')

You're missing something here... Check the files 'ldaplogin', 'ldappassword'
och absolut minimum 'ldapserver' and 'ldapcontroldn'.

> control_ldap_search: search for (&(cn=)(objectclass=qmailControl)) failed (No such 
>object)

It don't know what to look for 'cn=' (empty!).

I know! You're missing the 'me' file! Insert your hosts full FQDN there, then
create a qmailControl object with 'cn=<FQDN>'. Back to reading the FAQ! This
is documented!

> simple bind successful (as '')
> qldap_lookup: searching with ([EMAIL PROTECTED])

Can this uid be found if searching anonymously with 'ldapsearch" (that
is, is the 'mail' and 'mailAlternateAddres' etc readable if anonymously)? 

> me: My name is test.com.

Include hostname!

> ldapserver: My LDAP Server is localhost?
> ldapcontroldn: LDAP controldn: ou=configs,dc=test,dc=com?
> ldapport: LDAP port: 389?
> ldaplogin: LDAP login name: cn=Manager,dc=test,dc=com?
> ldappassword: LDAP login password: secret?
> ldapbasedn: LDAP basedn: dc=test,dc=com?.
> ldapuid: Default UID is: 1501?.
> ldapgid: Default GID is: 1501?.
> ldapmessagestore: Prefix for non absolute paths: /mail/mailuser?.

Oki, these are read from the LDAP server (I can tell from the '?' at
the end :). I'd recomend putting 'ldapserver', 'ldapcontroldn', 'ldaplogin'
and 'ldappassword' as files. Those for are the only one needed as file,
the rest is ok to have in LDAP...
-- 
bomb jihad Saddam Hussein Legion of Doom CIA North Korea Semtex NSA
Delta Force subway BATF Peking Serbian cryptographic Marxist
[See http://www.aclu.org/echelonwatch/index.html for more about this]

Reply via email to