Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simplesamlphp
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Perun
Perun ProxyIdP
v1
simplesamlphp
Commits
cf388e06
Unverified
Commit
cf388e06
authored
7 years ago
by
Tim van Dijen
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Phpdoc + excess variable declaration
parent
7ab350ec
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/SimpleSAML/Auth/LDAP.php
+3
-2
3 additions, 2 deletions
lib/SimpleSAML/Auth/LDAP.php
with
3 additions
and
2 deletions
lib/SimpleSAML/Auth/LDAP.php
+
3
−
2
View file @
cf388e06
...
...
@@ -262,6 +262,8 @@ class SimpleSAML_Auth_LDAP
* @param bool $allowZeroHits
* Determines if the method will throw an exception if no hits are found.
* Defaults to FALSE.
* @param string|null $searchFilter
* Additional searchFilter to be added to the (attribute=value) filter
* @return string
* The DN of the matching element, if found. If no element was found and
* $allowZeroHits is set to FALSE, an exception will be thrown; otherwise
...
...
@@ -277,7 +279,6 @@ class SimpleSAML_Auth_LDAP
{
// Traverse all search bases, returning DN if found
$bases
=
SimpleSAML\Utils\Arrays
::
arrayize
(
$base
);
$result
=
null
;
foreach
(
$bases
as
$current
)
{
try
{
// Single base search
...
...
@@ -300,7 +301,7 @@ class SimpleSAML_Auth_LDAP
}
else
{
// Zero hits not allowed
throw
$this
->
makeException
(
'Library - LDAP searchfordn(): LDAP search returned zero entries for filter \'('
.
$attribute
.
' = '
.
$value
.
')\' on base(s) \'('
.
join
(
' & '
,
$bases
)
.
')\''
,
2
);
join
(
' | '
,
$attribute
)
.
' = '
.
$value
.
')\' on base(s) \'('
.
join
(
' & '
,
$bases
)
.
')\''
,
2
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment