You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2005/01/25 16:08:16 UTC
[Bug 4102] Extended LDAP search functionality
http://bugzilla.spamassassin.org/show_bug.cgi?id=4102
------- Additional Comments From jonathanparkin@businessserve.co.uk 2005-01-25 07:08 -------
Created an attachment (id=2623)
--> (http://bugzilla.spamassassin.org/attachment.cgi?id=2623&action=view)
Proposed patch for bug 4102
This patch is one way to solve bug 4102.
Usage:
1) Ensure spamd is being invoked with the --ldap-config and -x options
2) Define user_scores_dsn in your SpamAssassin configuration file. This must
start 'ldap:' (without the quote marks). I reccomend something obvious to
indicate this will be overidden, for example 'ldap:dynamic' or
'ldap:__USERNAME__'. A better version of this patch would restrict this to a
given string.
3) Define user_scores_ldap_username and user_scores_ldap_password as normal.
When these changes are loaded this functionality can be made use of by using a
relevant LDAP URL (including host name), for example:
spamc -u
'ldap://ldap.example.org/dc=user1,dc=example,dc=org,o=myOrg?spamAssassinPrefs?base?(objectclass=top)'
< message
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.