Hi, I am not applying the domain alias patch, I am only using qmail-ldap-1.03-20120221.patch (no extra patches) that is why I mention that I think the problem is with qldap-filter.c or either qmail-ldap in the way the 'domain alias' patch was applied on this release to support domain aliasing.
On freebsd qbiff/auth_dovecot cause problems, in the middle time I will disable them, since I currently don't have the fix that Claudio post earlier. After compiling, just using (make) and running ./qmail-ldaplookup -m test I got this: Searching ldap for: (null pointer) under dn: ou=vusers,dc=inbox,dc=im Found 4 entries: Uh-oh: multiple entries found but should be unique! dn: ou=vusers,dc=inbox,dc=im ------------------------------------------------------- objectClass: top objectClass: organizationalUnit qmail-ldaplookup: fatal: qldap_get_attr(mail): no such object And when using ./qmail-ldaplookup -m t...@ejemplo.org Searching ldap for: (|(mail=t...@ejemplo.org)(mailAlternateAddress=t...@ejemplo.org))) under dn: ou=vusers,dc=inbox,dc=im qmail-ldaplookup: fatal: qldap_filter: unspecified error any ideas? Another test that I did was to use the same qmail-ldaplookup.c (of version qmail-ldap-1.03-20060201.patch ) replacing the "new" version of qmail-ldap-1.03-20120221.patch but got the same results. regards. On Fri, Mar 16, 2012 at 3:26 PM, Ismail YENIGUL <ismail.yeni...@surgate.com> wrote: > Hi Nicolas, > > I am also using qmail-ldap-1.03-20120221.patch without extra patch (just > small fix about auth_dovecot sent by Claudio) > It does not report any error for qmail-ldaplookup. Are you applying > domainalias patch to qmail-ldap-1.03-20120221.patch? > This patch is already exist in qmail-ldap-1.03-20120221.patch > > Can you please do following and tell the result: > > 1. Apply only qmail-ldap-1.03-20120221.patch and just type make without > setup check > 2. run ./qmail-ldaplookup -m test > > > > > Ismail YENIGUL > Team Leader / Takım Lideri > SurGATE Labs > Phone :+90 216-4709423 | Mobile:+90 533 747 36 65 > SurGATE: West Coast Labs Premium Anti-Spam Certificated > Twitter: http://www.twitter.com/surgate > Blog: http://www.surgate.com/blog > > On 16.03.2012 17:15, Nicolas de Bari Embriz Garcia Rojas wrote: >> >> Hi, sorry for the confusion, I mean qmail-ldap-1.03-20120221.patch. >> >> Also I do not think it is an issue with the control/ldap settings >> since with the past versions< 20120221 the qmail-ldaplookup works >> fine, I think something is missing/broken on qldap-filter.c. >> >> What I am doing for testing (FreeBSD 9 amd64) is compiling the base of >> qmail-ldap-1.03-20060201.patch plus this patches: >> >> domain alias >> http://kristof.bajnok.hu/qmail/qldap-domainalias.patch (domain alias) >> >> multiple qmqpc servers (for ezml lists) >> >> http://code.google.com/p/qmail-ldap-smtpauthuser/source/browse/trunk/qmail-qmqpc-servers_on_cmd_line.c >> >> SRS support >> >> http://code.google.com/p/qmail-ldap-smtpauthuser/source/browse/trunk/qmail-ldap-1.03-20060201-SRS.patch >> >> my conf-cc looks like this: >> cc -O2 -pipe -DLDAP_DEPRECATED -fno-strict-aliasing >> >> and conf-ld >> cc -s -rpath=/usr/lib:/usr/local/lib >> >> So far, version qmail-ldap-1.03-20060201 works fine with all this >> patches, but now when trying to 'upgrade'/compile/test version >> qmail-ldap-1.03-20120221.patch using/sharing the same >> /var/qmail/control, qmail-ldaplookup does not work. >> >> Using only qmail-ldap-1.03-20120221.patch (no extra patches) compiles >> fine but qmail-ldaplook fails again, doing a little debug/diff between >> versions (2012 vs 2006) I notice that qldap-filter.c on version 2012 >> change considerable and this is because the implementation of the >> 'domainalias' patch: >> >> http://kristof.bajnok.hu/qmail/qldap-domainalias.patch >> >> I think that the implementation of the domain alias patch to the core >> (for avoiding the -DDOMAIN_ALIAS) on version >> qmail-ldap-1.03-20120221.patch is causing problems. >> >> The ldiff that I use is something like: >> >> dn: uid=t...@ejemplo.org,ou=ejemplo.org,ou=vusers,dc=inbox,dc=im >> objectClass: top >> objectClass: person >> objectClass: inetOrgPerson >> objectClass: qmailUser >> uid: t...@ejemplo.org >> cn: test >> sn: test >> mail: t...@ejemplo.org >> mailMessageStore: ejemplo.org/test >> accountStatus: active >> smtpThrottle: 7 >> mailQuotaSize: 2147483648 >> userPassword: {SSHA}bRfoHmTRZTXyVywVdunoncu9jWWx32G2 >> mailQuotaCount: 0 >> >> >> PS. On either version qmail-ldap-1.03-20120221.patch or >> qmail-ldap-1.03-20060201-SRS.patch I edit the Makefile and modify the >> auto_uids.c with something like this: >> >> auto_uids.c: >> mv auto_uids.c.tmp auto_uids.c >> >> where auto_uids.c has this: >> >> /* These values are hard-coded here, which looks bad until you * >> * realise that they're hard-coded in ${PORTSDIR}/?IDs anyway. */ >> /* $FreeBSD: ports/mail/qmail/files/patch-auto_uids-c-dist,v 1.1 >> 2011/07/18 20:55:29 garga Exp $ */ >> int auto_uida = 81; >> int auto_uidd = 82; >> int auto_uidl = 83; >> int auto_uido = 0; >> int auto_uidp = 84; >> int auto_uidq = 85; >> int auto_uidr = 86; >> int auto_uids = 87; >> int auto_gidq = 82; >> int auto_gidn = 81; >> >> >> On Fri, Mar 16, 2012 at 2:05 PM, Ismail YENIGUL >> <ismail.yeni...@surgate.com> wrote: >>> >>> Hi Nicolas, >>> >>> First of all new patch is qmail-ldap-1.03-20120221.patch not >>> qmail-ldap-1.03-20060201.patch >>> I compiled both patch on FreeBSD& Linux without any problem. >>> >>> Can you please post here exact output and ldap ldiff about >>> dom...@ejemplo.org >>> Did you verify that control/ldap* settings are correct? >>> >>> >>> Thanks >>> >>> Ismail YENIGUL >>> Team Leader / Takım Lideri >>> SurGATE Labs >>> Phone :+90 216-4709423 | Mobile:+90 533 747 36 65 >>> SurGATE: West Coast Labs Premium Anti-Spam Certificated >>> Twitter: http://www.twitter.com/surgate >>> Blog: http://www.surgate.com/blog >>> >>> >>> On 15.03.2012 15:41, Nicolas de Bari Embriz Garcia Rojas wrote: >>>> >>>> Hi, after compiling qmail with the new patch qmail-ldap-1.03-20060201, >>>> (freebsd) something seems to be broken on qldap-filter.c >>>> >>>> when trying to run /var/qmail/bin/qmail-ldaplookup -m dom...@ejemplo.org >>>> >>>> I get qmail-ldaplookup: fatal: qldap_filter: unspecified error >>>> >>>> Any idea of how to fix this? >>>> >>>> regards. >>>> >>>> >>>> >> >> > -- > nbari