Wai-Sun Chia skrev, on 03-10-2007 10:41:
My authdaemond, maildrop, imap combo is working well with LDAP. :-)
I'm looking toward enhancing some functionality, I want to pull
another couple of LDAP attribute and process it within maildroprc,
very similar to MAILDIRQUOTA.
I've enabled authldaprc: LDAP_AUXOPTIONS enableSpamFolder=spamfolder
When I do authtest, hey! It shows up "spamfolder=active". Yay! Round one to me!
Now, I'm stuck. How do I get this OPTIONS into maildroprc?
I tried printing out $OPTIONS, it doesn't work.
Next, I tried "import OPTIONS", it doesn't work either.
So, in summary, how do I access LDAP_AUXOPTIONS variables in maildroprc?
Ermmm ... if I understand you right, you don't. maildrop/maildroprc
doesn't know a thing about ldap, that's all done by authlib. And if you
want to have extra attributes in your filter, LDAP_AUXOPTIONS is not the
right place.
Here's an extra attribute in our authlib's authldaprc:
LDAP_FILTER (accountStatus=active) which gets anded with uid.
You could have more, like (accountStatus=active)(eyes=brown), they'll be
anded too.
--Tonni