Closed
Bug 122365
Opened 23 years ago
Closed 22 years ago
Allow installation definable LDAP filters as a Parameter
Categories
(Bugzilla :: Administration, task, P3)
Tracking
()
RESOLVED
FIXED
Bugzilla 2.18
People
(Reporter: jlaska, Assigned: bbaetz)
Details
Attachments
(1 file, 1 obsolete file)
2.02 KB,
patch
|
justdave
:
review+
|
Details | Diff | Splinter Review |
I wanted to restrict LDAP users to bugzilla. Since most LDAP servers maintain a
wealth of info about it's users, I wanted to filter on some of that information.
To this end, I have added a Parameter to defparams.pl called LDAPadditional.
This parameter should conform to the string representation for search filters as
defined in RFC 2254 (http://www.faqs.org/rfcs/rfc2254.html). When set, it is
AND'd with the Param("LDAPmailattribute") to come up with a search. For
example, my variables are set as follows:
LDAPmailattribute = mail
LDAPadditional = (|(dept=A)(dept=B))
The above would search for the user with mail equal to the given LDAPusername,
that is in either dept A OR dept B.
Code changes were the addition of a parameter in defparams.pl and filter code in
CGI.pl. I have been using this for several weeks now and I haven't hit any
problems. I will submit a patch following the bug submission.
Reporter | ||
Comment 1•23 years ago
|
||
This patch affects: defparams.pl, CGI.pl
Reporter | ||
Comment 2•23 years ago
|
||
Ooops, I have some extra stuff in the CGI.pl part of the patch. Those fixes are
the result of an outstanding bug that no one has responded to (bug#105504).
Sorry to sneak them in, adjust as you see fit.
Thanks!
Updated•23 years ago
|
Priority: -- → P3
Target Milestone: --- → Bugzilla 2.18
Assignee | ||
Comment 4•22 years ago
|
||
Attachment #66871 -
Attachment is obsolete: true
Assignee | ||
Updated•22 years ago
|
Attachment #126894 -
Flags: review?(justdave)
Comment 5•22 years ago
|
||
Comment on attachment 126894 [details] [diff] [review]
patch
tried this out on landfill. It appears to work as advertised. :)
Attachment #126894 -
Flags: review?(justdave) → review+
Updated•22 years ago
|
Flags: approval+
Assignee | ||
Comment 6•22 years ago
|
||
Fixed.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
QA Contact: matty_is_a_geek → default-qa
You need to log in
before you can comment on or make changes to this bug.
Description
•