Re: LDAP log???
Hugo Monteiro <[email protected]> Wed, 20 Oct 2010 15:43:08 +0100
| Newsgroups | gmane.mail.qmail.ldap |
|---|---|
| Message-ID | <[email protected]> |
On 10/20/2010 01:44 PM, Jimmy S. wrote: > > Hugo Monteiro <[email protected]> escribió: > >> On 10/19/2010 11:16 AM, Jimmy S. wrote: >>> >>> Hugo Monteiro <[email protected]> escribió: >>> >>>> >>>> try playing with loglevel directive in slapd.conf. >>>> >>>> man slapd.conf (5) will help you with the choice of the log level. >>> >>> I already got track the log of my local OpenLdap server with the >>> reply of Shepherd Nhongo (Wed, 6 Oct 2010 15:44:23), but now I need >>> track the behavior of qmail when I try connect to my Active >>> Directory server, so I think my local OpenLdap server isn't >>> important here. Am I wrong? >>> >>> Thanks! >>> >>> Regards >>> >>> >> >> Thought you were trying to use openldap as backend there. In that >> case i have no idea.. Maybe AD has some sort of debugging options? >> On Qmail-LDAP, i know you can compile with -DDEBUG, but i can't >> recall if that will enable printouts of the LDAP conversation. My >> guess is yes. (In this case, don't forget to set the DEBUG >> environmental variable). > > > Thanks Hugo. > > -DDEBUG option affect to qmail-smtpd? I think that only affect to pop > and imap server. Am I wrong? > > I compiled with -DDEBUG options, but I don't see any difference in log > file when I use DEBUG="" in qmail-smtpd.rules. > > Regards and Thank You very much. > > Hello Jummy, I just recalled that although it's not the same as qmail-smtpd, you can use the qmail-ldaplookup command, with debugging options, to check what will be retrieved from the ldap server. $ /var/qmail/bin/qmail-ldaplookup usage: qmail-ldaplookup [-d level] [-D binddn -w passwd] -u uid [-p passwd] qmail-ldaplookup [-d level] [-D binddn -w passwd] -m mail qmail-ldaplookup [-d level] [-D binddn -w passwd] -f ldapfilter options: -d level sets log-level to level -u uid search for user id uid (pop3/imap lookup) -p passwd password for user id lookups (only by root) -m mail lookup the mailaddress -D binddn bind DN -w passwd bind password Regards, Hugo Monteiro. -- fct.unl.pt:~# cat .signature Hugo Monteiro Email : [email protected] Telefone : +351 212948300 Ext.15307 Web : http://hmonteiro.net Divisão de Informática Faculdade de Ciências e Tecnologia da Universidade Nova de Lisboa Quinta da Torre 2829-516 Caparica Portugal Telefone: +351 212948596 Fax: +351 212948548 www.fct.unl.pt [email protected] fct.unl.pt:~# _