New HPOVLdapServer - HewlettPackard/POSH-HPEOneView GitHub Wiki

HPE OneView 4.10 Library

New-HPOVLdapServer

Define LDAP Directory Server object.

SYNTAX

New-HPOVLdapServer [-Hostname] <String> [-SSLPort] <Int32> [-Certificate] <Object>[ [-TrustLeafCertificate] <SwitchParameter>] [<CommonParameters>]

Detailed Description

A helper cmdlet that will define an LDAP Directory Server object to be used with the New-HPOVLdapDirectory cmdlet.

Parameters

-Certificate <Object>

Aliases [-cert] Directory Server SSL Certificate, either location to Base64 Cert or multi-line string value. If omitted, the CMDLET will attempt to retrieve the Directory Servers Secure LDAP Certiciate.

Aliases cert
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-Hostname <String>

Aliases [-Name] Directory server name or IP Address to add.

Aliases Name
Required? true
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters?    False

-SSLPort <Int32>

Aliases [-port] Directory Server"s LDAP SSL Port.

Aliases port
Required? true
Position? named
Default value 636
Accept pipeline input? false
Accept wildcard characters?    False

-TrustLeafCertificate <SwitchParameter>

Use to specify if the certificate should be explicitly trusted, like a self-signed certificate or where the root or issuing certificate authority has not been added to the appliance trust store.

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)

Input Types

System.String

Directory Server Name or IP Address

System.Collections.ArrayList

Mutlple Directory Server Name or IP Address System.String values

Return Values

HPOneView.Appliance.AuthDirectoryServer [System.Management.Automation.PSCustomObject]

New LDAP Server Resource Object to be used with New-HPOVLdap CMDLET

Examples

 -------------------------- EXAMPLE 1 --------------------------

$ServerA = New-HPOVLdapServer -Name servera.domain.com -Certificate C:\dir\servera.cer

Define a new Directory Server, ServerA, specifying the Base64 Public Certificate and using the default LDAP SSL port 636.

 -------------------------- EXAMPLE 2 --------------------------

$ServerA = New-HPOVLdapServer -Name servera.domain.com -Port 2636 -Certificate C:\dir\servera.cer

Define a new Directory Server, ServerA, specifying the Base64 Public Certificate, using a custom LDAP SSL port.

 -------------------------- EXAMPLE 3 --------------------------

$dc1,$dc2 = "dc1.mydomain.com","dc2.mydomain.com" | New-HPOVLdapServer

Create two new authentication directory servers, with the CMDLET retrieving the certificate directly from the auth servers.

Related Links


Top

HPE OneView 4.00 Library

New-HPOVLdapServer

Define LDAP Directory Server object.

SYNTAX

New-HPOVLdapServer [-Hostname] <String> [-SSLPort] <Int32> [-Certificate] <Object>[ [-TrustLeafCertificate] <SwitchParameter>] [<CommonParameters>]

Detailed Description

A helper cmdlet that will define an LDAP Directory Server object to be used with the New-HPOVLdapDirectory cmdlet.

Parameters

-Certificate <Object>

Aliases [-cert] Directory Server SSL Certificate, either location to Base64 Cert or multi-line string value. If omitted, the CMDLET will attempt to retrieve the Directory Servers Secure LDAP Certiciate.

Aliases cert
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-Hostname <String>

Aliases [-Name] Directory server name or IP Address to add.

Aliases Name
Required? true
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters?    False

-SSLPort <Int32>

Aliases [-port] Directory Server's LDAP SSL Port.

Aliases port
Required? true
Position? named
Default value 636
Accept pipeline input? false
Accept wildcard characters?    False

-TrustLeafCertificate <SwitchParameter>

Use to specify if the certificate should be explicitly trusted, like a self-signed certificate or where the root or issuing certificate authority has not been added to the appliance trust store.

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)

Input Types

System.String

Directory Server Name or IP Address

System.Collections.ArrayList

Mutlple Directory Server Name or IP Address System.String values

Return Values

HPOneView.Appliance.AuthDirectoryServer [System.Management.Automation.PSCustomObject]

New LDAP Server Resource Object to be used with New-HPOVLdap CMDLET

Examples

 -------------------------- EXAMPLE 1 --------------------------

$ServerA = New-HPOVLdapServer -Name servera.domain.com -Certificate C:\dir\servera.cer

Define a new Directory Server, ServerA, specifying the Base64 Public Certificate and using the default LDAP SSL port 636.

 -------------------------- EXAMPLE 2 --------------------------

$ServerA = New-HPOVLdapServer -Name servera.domain.com -Port 2636 -Certificate C:\dir\servera.cer

Define a new Directory Server, ServerA, specifying the Base64 Public Certificate, using a custom LDAP SSL port.

 -------------------------- EXAMPLE 3 --------------------------

$dc1,$dc2 = 'dc1.mydomain.com','dc2.mydomain.com' | New-HPOVLdapServer

Create two new authentication directory servers, with the CMDLET retrieving the certificate directly from the auth servers.

Related Links


Top
⚠️ **GitHub.com Fallback** ⚠️