Skip to content
Snippets Groups Projects
Commit c368da1f authored by Benoit MARECHAL's avatar Benoit MARECHAL :fish:
Browse files

Update README.md

parent ac758ea2
No related branches found
No related tags found
No related merge requests found
......@@ -48,16 +48,59 @@ Write-Host ($webcall | Format-Table | Out-String)
```
<!--
## Client DNS
DNS discovery
DNS Test : Ip resolution from Host
-->
## Client LDAP
> If you want a GUI LDAP client, get the free LDAP Browser 4.5 (not the paid administrator version).
```powershell
$LDAP_PROTOCOL="ldap" # or ldaps
$LDAP_HOST= # ex: ldap.domain.tld
$LDAP_PORT="389" # default : 389 (LDAP), 636 (LDAPS)
$LDAP_URL=$LDAP_PROTOCOL://$LDAP_HOST:$LDAP_PORT
$LDAP_USERS_BASE=
$LDAP_BIND_FORMAT=
$LDAP_GROUPE_ATTRIBUT=
$LDAP_USERS_CONNECTION_STRING=
$LDAP_USER_CONNECTION_STRING=
$LDAP_BIND_READONLY_USER_DN=
$LDAP_USER_DN=
$LDAP_FILTER=
Client LDAP
LDAP Parameters
LDAP Test
$LDAP_ATTR="*" # * for "For all attributs", ex: givenName, sn, mail, uid
```
Check user exist :
```powershell
[adsi]"$LDAP_USER_CONNECTION_STRING"
```
```powershell
Function Test-ADUserAuthentication {
param(
[parameter(Mandatory=$true)]
[string]$ADUserLogin,
[parameter(Mandatory=$true)]
[string]$ADUserPassword)
((New-Object DirectoryServices.DirectoryEntry -ArgumentList "",$ADUserLogin,$ADUserPassword).psbase.name) -ne $null
}
$ADUserLogin = "account"
$ADUserPassword = "pass"
Test-ADUserAuthentication -ADUserLogin $ADUserLogin -ADUserPassword $ADUserPassword
```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment