Skip to content
Snippets Groups Projects
Commit b40754a4 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

add example

parent 9f0ee42a
No related branches found
No related tags found
1 merge request!3add example
...@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment