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>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
- 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