2 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] LDAP_AUXOPTIONS
FromSent OnAttachments
Wai-Sun ChiaOct 3, 2007 1:40 am 
Tony EarnshawOct 3, 2007 2:23 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [maildropl] LDAP_AUXOPTIONSActions...
From:Tony Earnshaw (ton@hetnet.nl)
Date:Oct 3, 2007 2:23:52 am
List:net.sourceforge.lists.courier-maildrop

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