Test-NfsMappedIdentity

Test-NfsMappedIdentity

Verifies that a mapped identity is correctly configured.

구문

Parameter Set: DefaultSettings
Test-NfsMappedIdentity [-AccountName <String> ] [-AccountType <AccountType> ] [-GroupIdentifier <Int32> ] [-MappingStore <MappingStoreType> ] [-SupplementaryGroups <String> ] [-UserIdentifier <Int32> ] [ <CommonParameters>]

Parameter Set: AdAdlds
Test-NfsMappedIdentity -MappingStore <MappingStoreType> [-AccountName <String> ] [-AccountType <AccountType> ] [-GroupIdentifier <Int32> ] [-LdapNamingContext <String> ] [-Server <String> ] [-SupplementaryGroups <String> ] [-UserIdentifier <Int32> ] [ <CommonParameters>]

Parameter Set: MapFiles
Test-NfsMappedIdentity -MappingStore <MappingStoreType> [-AccountName <String> ] [-AccountType <AccountType> ] [-GroupIdentifier <Int32> ] [-MapFilesPath <String> ] [-SupplementaryGroups <String> ] [-UserIdentifier <Int32> ] [ <CommonParameters>]

자세한 설명

The Test-NfsMappedIdentity cmdlet verifies a mapped identity and confirms that it is configured correctly. The Test-NfsMappedIdentity cmdlet checks a mapped identity for duplicate user identifiers (UIDs) or group identifiers (GIDs). It also validates that the user accounts are members of the correct group account according to the GIDs that are assigned to them.

매개 변수

-AccountName<String>

Specifies the SAMAccountNam of the Windows user account or group account of a mapped identity.

별칭

aname,an

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-AccountType<AccountType>

Specifies the Windows account type of a mapped identity. Supported values are: User and Group.

별칭

atype,at

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-GroupIdentifier<Int32>

Specifies the group identifier of a mapped identity.

별칭

GroupId,gid

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-LdapNamingContext<String>

Specifies the Lightweight Directory Access Protocol (LDAP) naming context of an NFS identity mapping store. You can use this parameter to search for mapped identities in a specified naming context.

별칭

dn

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-MapFilesPath<String>

Specifies the path of the passwd and group map files from which the Test-NfsMappedIdentity cmdlet obtains a mapped identity.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-MappingStore<MappingStoreType>

Specifies the type of identity mapping store from which the Test-NfsMappedIdentity cmdlet gets a mapped identity. When this parameter is not specified, the Test-NfsMappedIdentity cmdlet obtains the store configuration settings from the NFS server configuration. Valid values are: AD, LDAP, and MapFiles.

별칭

store

필수 여부

true

위치

named

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-Server<String>

Specifies the LDAP server name of the store that NFS server uses. This can be a domain name, Active Directory Lightweight Directory Services (AD LDS) server name, or LDAP server name. When this parameter is not specified, the Test-NfsMappedIdentity cmdlet tries to connect to either the LDAP store on the local computer at port 389 when MappingStore is LDAP, or the Active Directory domain of the computer when MappingStore is Active Directory.

별칭

LdapServer,ADDomainName

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-SupplementaryGroups<String>

Specifies a comma-separated list of group names to verify the group membership of an account.

별칭

sg

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-UserIdentifier<Int32>

Specifies the user identifier of a UNIX user account from which the Test-NfsMappedIdentity cmdlet obtains a mapped identity.

별칭

UserId,uid

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

<CommonParameters>

이 cmdlet은 일반 매개 변수 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer 및 -OutVariable을 지원합니다. 자세한 내용은 다음을 참조하세요. about_CommonParameters(https://go.microsoft.com/fwlink/p/?LinkID=113216).

입력

입력 유형은 cmdlet에 파이프할 수 있는 개체의 유형입니다.

출력

출력 유형은 cmdlet이 내보내는 개체의 유형입니다.

  • Nothing

예제

Example 1: Verify a mapped identity that is stored in a AD LDS instance

This command verifies a mapped identity that is stored in a AD LDS instance on a server where this command is run..

PS C:\> Test-NfsMappedIdentity -MappingStore "LDAP" -AccountName "JCool" -AccountType "User" -Verbose

관련 항목

Get-NfsMappedIdentity

New-NfsMappedIdentity

Remove-NfsMappedIdentity

Resolve-NfsMappedIdentity

Set-NfsMappedIdentity

Get-NfsMappingStore

Install-NfsMappingStore

Set-NfsMappingStore

Test-NfsMappingStore