The schemas of openldap-2.1.XX changed. I downloaded the lastest ldap-patches to get native support. The patch provided by Andr
The schemas of openldap-2.1.XX changed. I downloaded the lastest ldap-patches to get native support. The patch provided by André Oppermann changed a lot! It contains most of important patches. It also contains: 1. TLS! 2. smtp_auth! I wrote 2 patches by my own: 1. The first one activates several features like ezmlm-Support, data-compression, TLS an so on in the Makefile. 2. The second fixes some misbehavior of "head -1" and "tail -1" in the Makefile. The qmail.schema gets copied by default and you are only allowed to relay by sending over localhost or using smtp-auth. smtp-auth is only allowed after "start_tls" for security-reasons. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 22858 [details] /usr/portage/net-mail/qmail-ldap/qmail-ldap-1.03-r3.ebuild Based on #28203
Created attachment 22859 [details] /usr/portage/net-mail/qmail-ldap/files/features.diff Modifies the Makefile and activates several features.
Created attachment 22860 [details] /usr/portage/net-mail/qmail-ldap/files/cleanup.diff My system does not like "head -1" and "tail -1" anymore...
This ebuild is based on #28203
Created attachment 23121 [details] /usr/portage/net-mail/qmail-ldap/files/features.diff TLS is a seperate feature now
Created attachment 23122 [details] /usr/portage/net-mail/qmail-ldap/files/tls.diff Activates TLS
Created attachment 23123 [details] /usr/portage/net-mail/qmail-ldap/qmail-ldap-1.03-r3.ebuild if [ `use ssl` ]; then epatch ${FILESDIR}/tls.diff || die "TLS patch failed" fi
sorry, i'm not accepting this at this time. I'm busy redoing all of the qmail stuff to go from as close a single set of code as possible. tls and smtp_auth (after STARTTLS) are already in the mainstream qmail ebuild and the qmail-mysql ebuild. take your patches here and start with the latest qmail ebuild (r13 or r14) instead. the ldap patches should apply with only a little bit of massaging. be sure to test ALL of the features to make sure none of them are broken.
benjamin: you aren't the only one...
Created attachment 23587 [details] qmail-ldap-r2 final This bug is to be marked closed upon the completion of the latest patchset that works for both openldap 2.0 and 2.1. I will be maintaining this as close as I can to the latest. Just a note for those that are using this ebuild for both virtual users AND local users: You may NOT have MailMessageStore AND HomeDirectory in the ldap user ldif or else it crashes with cannot create Maildir.
closing: wala