Hi, while setting up a new system with qpsmtpd and LDAP I took rcpt_ok and auth/auth_ldap_bind, mixed it a bit and this is the result ;-) It uses the same config file as auth_ldap_bind... Currently it's not in production use, some tests have been done to see if it works like intended.
While writing I stumbled across the fact that I had to reuse most of the
code from rcpt_ok (sub is_rcpthost()). Can this be moved to some
Qpsmtpd::* module? This was not the first time I did something like
this.
Elliot: mabye you can use the %r / %h / %u substitutions for the
"configurable DN template" mentioned in the POD of your plugin?
Hanno
rcpt_ldap.gz
Description: Binary data
