Patch to support vpopmail-ldap module and set connection parameter via /var/vpopmail/etc/vpopmail.ldap instead of hardcoding it in vldap.h Reproducible: Always Steps to Reproduce:
Created attachment 73730 [details] ebuild diff against 5.4.13
Created attachment 73731 [details, diff] files/vpopmail-5.4.13-ldap.patch
Created attachment 73732 [details] files/vpopmail.ldap
Somebody have tested this patchs?
I have tested this patchset. Had to massage the ebuild patch a little bit to apply against the current 5.4.13 ebuild, but I managed to get it to compile cleanly. However, the resulting vpopmail could not add a domain. It created the domain on-disk, and it added it to /var/qmail/control/locals, but when trying to add it to LDAP, vadddomain failed with the following error: vadddomain: error.c:188: ldap_perror: Assertion `ld != ((void *)0)' failed. A strace revealed that it wasn't trying to connect to LDAP, and moreover, that it wasn't even trying to read /var/vpopmail/etc/vpopmail.ldap.
No time left to fix this currently :( Will re-open once I can track that down further