Skip to content

Commit b1ddac6

Browse files
Merge pull request MicrosoftDocs#80 from marcelodiiorio/patch-1
Update add-adfslocalclaimsprovidertrust.md
2 parents 1b0f8c6 + ebd9087 commit b1ddac6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docset/windows/adfs/add-adfslocalclaimsprovidertrust.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ ms.date: 2016-12-20
1111
ms.prod: w10
1212
ms.technology: powershell-windows
1313
ms.topic: reference
14-
online version:
15-
schema: 2.0.0
14+
online version: schema: 2.0.0
1615
title: Add-AdfsLocalClaimsProviderTrust
1716
ms.assetid: F5EFCD8B-FF67-4F91-93A6-F38D54919324
1817
---
@@ -46,7 +45,7 @@ This includes other, untrusted, Active Directory forests or domains, Active Dire
4645
PS C:\> $Credential = Get-Credential
4746
PS C:\ > $LdapConn = New-AdfsLdapServerConnection -HostName "DomainContoller03.contoso.com" -Port 389 -SslMode None -AuthenticationMethod Basic -Credential $Credential
4847
PS C:\ > $DisplayName = New-AdfsLdapAttributeToClaimMapping -LdapAttribute "displayName" -ClaimType "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/displayname"
49-
PS C:\> Add-AdfsLocalClaimsProviderTrust -Name "testldap" -Identifier "urn:testldap" -Type ldap -LdapServerConnection $LdapConn -UserObjectClass user -UserContainer "CN=Users,DC=<sub_domain_name>,DC=<domain_name>,DC=com" -LdapAuthenticationMethod Basic -AnchorClaimLdapAttribute userPrincipalName -AnchorClaimType "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn" -AcceptanceTransformRules "c:[] => issue(claim=c);" -Enabled $True [-OrganizationalAccountSuffix "TSQA.contoso.com" - LdapAttributeToClaimMapping $DisplayName]
48+
PS C:\> Add-AdfsLocalClaimsProviderTrust -Name "testldap" -Identifier "urn:testldap" -Type ldap -LdapServerConnection $LdapConn -UserObjectClass user -UserContainer "CN=Users,DC=<sub_domain_name>,DC=<domain_name>,DC=com" -LdapAuthenticationMethod Basic -AnchorClaimLdapAttribute userPrincipalName -AnchorClaimType "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn" -AcceptanceTransformRules "c:[] => issue(claim=c);" -Enabled $True -OrganizationalAccountSuffix "TSQA.contoso.com" - LdapAttributeToClaimMapping $DisplayName
5049
```
5150

5251
The first command prompts you for a user name and password by using the **Get-Credential** cmdlet.

0 commit comments

Comments
 (0)