Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
26af2c5a
Commit
26af2c5a
authored
Jul 14, 2003
by
bbaetz%acm.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 122365 - Allow installation definable LDAP filters
r,a=justdave
parent
94c8b7f2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
LDAP.pm
Bugzilla/Auth/LDAP.pm
+2
-2
defparams.pl
defparams.pl
+8
-0
No files found.
Bugzilla/Auth/LDAP.pm
View file @
26af2c5a
...
...
@@ -84,7 +84,7 @@ sub authenticate {
# We've got our anonymous bind; let's look up this user.
$mesg
=
$LDAPconn
->
search
(
base
=>
Param
(
"LDAPBaseDN"
),
scope
=>
"sub"
,
filter
=>
Param
(
"LDAPuidattribute"
)
.
"=$username"
,
filter
=>
'(&('
.
Param
(
"LDAPuidattribute"
)
.
"=$username)"
.
Param
(
"LDAPfilter"
)
.
')'
,
attrs
=>
[
'dn'
],
);
return
(
AUTH_LOGINFAILED
,
undef
,
"lookup_failure"
)
...
...
@@ -102,7 +102,7 @@ sub authenticate {
# mail attribute for this user.
$mesg
=
$LDAPconn
->
search
(
base
=>
Param
(
"LDAPBaseDN"
),
scope
=>
"sub"
,
filter
=>
Param
(
"LDAPuidattribute"
)
.
"=$username"
,
filter
=>
'(&('
.
Param
(
"LDAPuidattribute"
)
.
"=$username)"
.
Param
(
"LDAPfilter"
)
.
')'
,
);
my
$user_entry
=
$mesg
->
shift_entry
if
!
$mesg
->
code
&&
$mesg
->
count
;
if
(
!
$user_entry
||
!
$user_entry
->
exists
(
Param
(
"LDAPmailattribute"
)))
{
...
...
defparams.pl
View file @
26af2c5a
...
...
@@ -389,6 +389,14 @@ sub check_loginmethod {
},
{
name
=>
'LDAPfilter'
,
desc
=>
'LDAP filter to AND with the <tt>LDAPuidattribute</tt> for '
.
'filtering the list of valid users.'
,
type
=>
't'
,
default
=>
''
,
},
{
name
=>
'loginmethod'
,
desc
=>
'The type of login authentication to use:
<dl>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment