Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jformacek authored Dec 19, 2020
1 parent b04d551 commit 49ebbca
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,18 @@ $Ldap = Get-LdapConnection -LdapServer ldap.mydomain.com `
-Credential (Get-Credential) `
-AuthType Basic
```

Basic authentication with distinguishedName - Get-Credential command may not work properly with dn, so we're collecting credential a diferent way
```powershell
#get password as secure string
$pwd = Read-Host -AsSecureString
#create credential object
$cred = new-object PSCredential("cn=userAccount,o=mycompany",$pwd)
$Ldap = Get-LdapConnection -LdapServer ldap.mydomain.com `
-Credential $cred `
-AuthType Basic
```

Kerberos authentication with explicit credentials:
```powershell
#Connects to LDAP server with explicit credentials
Expand All @@ -93,6 +105,7 @@ $Ldap = Get-LdapConnection -LdapServer ldap.mydomain.com `
-EncryptionType Kerberos `
-Credential $Credential
```

Client certificate authentication and allowing server certificate from CA with unavailable CRL:
```powershell
#connect to server and authenticate with client certificate
Expand Down

0 comments on commit 49ebbca

Please sign in to comment.