diff --git a/docset/windows/adfs/add-adfslocalclaimsprovidertrust.md b/docset/windows/adfs/add-adfslocalclaimsprovidertrust.md index 8cc0f55725..c4e9a8ffd4 100644 --- a/docset/windows/adfs/add-adfslocalclaimsprovidertrust.md +++ b/docset/windows/adfs/add-adfslocalclaimsprovidertrust.md @@ -11,8 +11,7 @@ ms.date: 2016-12-20 ms.prod: w10 ms.technology: powershell-windows ms.topic: reference -online version: -schema: 2.0.0 +online version: schema: 2.0.0 title: Add-AdfsLocalClaimsProviderTrust ms.assetid: F5EFCD8B-FF67-4F91-93A6-F38D54919324 --- @@ -46,7 +45,7 @@ This includes other, untrusted, Active Directory forests or domains, Active Dire PS C:\> $Credential = Get-Credential PS C:\ > $LdapConn = New-AdfsLdapServerConnection -HostName "DomainContoller03.contoso.com" -Port 389 -SslMode None -AuthenticationMethod Basic -Credential $Credential PS C:\ > $DisplayName = New-AdfsLdapAttributeToClaimMapping -LdapAttribute "displayName" -ClaimType "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/displayname" -PS C:\> Add-AdfsLocalClaimsProviderTrust -Name "testldap" -Identifier "urn:testldap" -Type ldap -LdapServerConnection $LdapConn -UserObjectClass user -UserContainer "CN=Users,DC=,DC=,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] +PS C:\> Add-AdfsLocalClaimsProviderTrust -Name "testldap" -Identifier "urn:testldap" -Type ldap -LdapServerConnection $LdapConn -UserObjectClass user -UserContainer "CN=Users,DC=,DC=,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 ``` The first command prompts you for a user name and password by using the **Get-Credential** cmdlet.