Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
Ldap Php Class
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
Ldap Php Class
Commits
b40754a4
Commit
b40754a4
authored
9 months ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
add example
parent
9f0ee42a
No related branches found
No related tags found
1 merge request
!3
add example
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/20_Usage.md
+8
-0
8 additions, 0 deletions
docs/20_Usage.md
with
8 additions
and
0 deletions
docs/20_Usage.md
+
8
−
0
View file @
b40754a4
...
@@ -87,6 +87,14 @@ $aUser = $oLdap->getUserInfo("john@example.com", ["memberof", "uid"]);
...
@@ -87,6 +87,14 @@ $aUser = $oLdap->getUserInfo("john@example.com", ["memberof", "uid"]);
print_r
(
$oLdap
->
normalizeSearchentry
(
$aUser
));
print_r
(
$oLdap
->
normalizeSearchentry
(
$aUser
));
```
```
### Verify user and password for login
```
php
// set values from $_FORM or $_POST data of your login form here
// The variable $bAuthenticated is true if authentication of the user was successful.
$bAuthenticated
=
oLdap
->
verifyPassword
(
$sUser
,
$sPassword
);
```
### Example: search
### Example: search
When using special chars in search then you can sanitize the search string.
When using special chars in search then you can sanitize the search string.
...
...
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