-
Notifications
You must be signed in to change notification settings - Fork 52
Set HPOVLdapDefaultDirectory
Configure Authentication Directory default directory.
Set-HPOVLdapDefaultDirectory [-Directory] <Object>[ [-DisableLocalLogin] <SwitchParameter>] [-ApplianceConnection] <Object>[ [-WhatIf] <SwitchParameter>][ [-Confirm] <SwitchParameter>] [<CommonParameters>]
Use this Cmdlet to set the default Authentication Directory on the appliance. Use Get-HPOVLdapDirectory to pass in the directory to configure as the default. Once the Default Directory is set, the Cmdlet will configure a Registry Key (HKCU:\Software\Hewlett-Packard\HPOneView) called "AuthProvider#{ApplianceConnectionName}". The Library will read this value upon load and use it as the default value for the -AuthDirectory parameter in Connect-HPOVMgmt.
-ApplianceConnection <Object>
Aliases [-Appliance]
Specify one HPOneView.Appliance.Connection object or Name property value. If Resource object is provided via Pipeline, the ApplianceConnection property of the object will be used.
Default Value: ${Global:ConnectedSessions} | ? Default
Aliases | Appliance |
Required? | true |
Position? | named |
Default value | (${Global:ConnectedSessions} | ? Default) |
Accept pipeline input? | true (ByPropertyName) |
Accept wildcard characters? | False |
-Confirm <SwitchParameter>
Aliases | cf |
Required? | false |
Position? | named |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-Directory <Object>
Provide the Directory Name, URI or Object. If you want to set the Authentication Directory back to Local, specify LOCAL as the name.
Aliases | None |
Required? | true |
Position? | 0 |
Default value | |
Accept pipeline input? | true (ByValue) |
Accept wildcard characters? | False |
-DisableLocalLogin <SwitchParameter>
Use to disable appliance local login accounts. You cannot use this parameter if an Authentication Directory is not configured.
Aliases | None |
Required? | false |
Position? | named |
Default value | False |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-WhatIf <SwitchParameter>
Aliases | wi |
Required? | false |
Position? | named |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | False |
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216)
HPOneView.Appliance.AuthDirectory [System.Management.Automation.PSCustomObject] Authentication Directory retrieved using Get-HPOVLdapDirectory.
System.Management.Automation.PSCustomObject Appliance Authentication Directory setting.
-------------------------- EXAMPLE 1 --------------------------PS C:\> Set-HPOVLdapDefaultDirectory "Domain1" # Cmdlet will create: # HKCU:\Software\Hewlett-Packard\HPOneView\AuthProvider#MyAppliance.domain.com REG_SZ, value = "Domain1"
Set 'Domain1' as the default authentication directory for the appliance. Then, the Cmdlet will create the REG_SZ "AuthProvider#MyAppliance.domain.com" with a value of "Domain1".
-------------------------- EXAMPLE 2 --------------------------PS C:\> Get-HPOVLdapDirectory Domain1 | Set-HPOVLdapDirectory
Get the LDAP Authentication Directory, Domain1, and set it as the default.
-------------------------- EXAMPLE 3 --------------------------PS C:\> Set-HPOVLdapDirectory Local
Set the default authentication directoy to 'Local'.
- [Get-HPOVLdap] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Get-HPOVLdap)
- [Get-HPOVLdapDirectory] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Get-HPOVLdapDirectory)
- [New-HPOVLdapServer] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/New-HPOVLdapServer)
- [Remove-HPOVLdapDirectory] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Remove-HPOVLdapDirectory)
- [Enable-HPOVLdapLocalLogin] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Enable-HPOVLdapLocalLogin)
- [Disable-HPOVLdapLocalLogin] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Disable-HPOVLdapLocalLogin)
- [Get-HPOVLdapGroup] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Get-HPOVLdapGroup)
- [New-HPOVLdapGroup] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/New-HPOVLdapGroup)
- [Set-HPOVLdapGroupRole] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Set-HPOVLdapGroupRole)
- [Remove-HPOVLdapGroup] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Remove-HPOVLdapGroup)
- [Show-HPOVLdapGroups] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Show-HPOVLdapGroups)
Configure Authentication Directory default directory.
Set-HPOVLdapDefaultDirectory [-Directory] <Directory>[ [-DisableLocalLogin] <DisableLocalLogin>][ [-WhatIf] <WhatIf>][ [-Confirm] <Confirm>] [<CommonParameters>]
Use this cmdlet to set the default Authentication Directory. Use Get-HPOVLdapDirectory to pass in the directory to configure as the default. Once the Default Directory is set, the CMDLET will configure a Registry Key (HKCU:\Software\Hewlett-Packard\HPOneView) called "AuthProvider". The Library will read this value upon load and use it as the default value for the -AuthDirectory parameter in Connect-HPOVMgmt.
-Directory <Directory>
Provide the Directory Name, URI or Object. If you want to set the Authentication Directory back to Local, specify LOCAL as the name.
Aliases | None. |
Required? | true |
Position? | 1 |
Default value | |
Accept pipeline input? | true (ByValue) |
Accept wildcard characters? | false |
-DisableLocalLogin <DisableLocalLogin>
Use to disable appliance local login accounts. You cannot use this parameter if an Authentication Directory is not configured.
Aliases | None. |
Required? | false |
Position? | named |
Default value | False |
Accept pipeline input? | false |
Accept wildcard characters? | false |
-WhatIf <WhatIf>
Aliases | None. |
Required? | false |
Position? | named |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | false |
-Confirm <Confirm>
Aliases | None. |
Required? | false |
Position? | named |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | false |
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216)
HPOneView.Appliance.AuthDirectory [System.Management.Automation.PSCustomObject] Authentication Directory retrieved using Get-HPOVLdapDirectory.
System.Management.Automation.PSCustomObject Appliance Authentication Directory setting.
-------------------------- EXAMPLE 1 --------------------------PS C:\> Set-HPOVLdapDefaultDirectory "Domain1"
Set 'Domain1' as the default authentication directory for the appliance.
- [Get-HPOVLdap] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Get-HPOVLdap)
- [Get-HPOVLdapDirectory] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Get-HPOVLdapDirectory)
- [New-HPOVLdapServer] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/New-HPOVLdapServer)
- [Remove-HPOVLdapDirectory] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Remove-HPOVLdapDirectory)
- [Enable-HPOVLdapLocalLogin] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Enable-HPOVLdapLocalLogin)
- [Disable-HPOVLdapLocalLogin] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Disable-HPOVLdapLocalLogin)
- [Get-HPOVLdapGroup] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Get-HPOVLdapGroup)
- [New-HPOVLdapGroup] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/New-HPOVLdapGroup)
- [Set-HPOVLdapGroupRole] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Set-HPOVLdapGroupRole)
- [Remove-HPOVLdapGroup] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Remove-HPOVLdapGroup)
- [Show-HPOVLdapGroups] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Show-HPOVLdapGroups)