Skip to content

New HPOVLdapServer

Chris Lynch edited this page Sep 21, 2017 · 45 revisions

HPE OneView 3.10 Library

New-HPOVLdapServer

Define LDAP Directory Server object.

SYNTAX

New-HPOVLdapServer [-Hostname] <String> [-SSLPort] <Int32> [-Certificate] <Object> [<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

<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


HPE OneView 3.00 Library

New-HPOVLdapServer

Define LDAP Directory Server object.

SYNTAX

New-HPOVLdapServer [-Hostname] <String> [-SSLPort] <Int32> [-Certificate] <Object> [<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

<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 --------------------------

PS C:\> $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 --------------------------

PS C:\> $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 --------------------------

PS C:\> $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


HPE OneView 2.00 Library

New-HPOVLdapServer

Define LDAP Directory Server object.

SYNTAX

New-HPOVLdapServer [-Hostname] <String> [-SSLPort] <Int32> [-Certificate] <Object> [<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

<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 --------------------------

PS C:\> $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 --------------------------

PS C:\> $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 --------------------------

PS C:\> $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


HPE OneView 1.20 Library

New-HPOVLdapServer

Define LDAP Directory Server object.

SYNTAX

New-HPOVLdapServer [-Name] <Name>[ [-SSLPort] <SSLPort>][ [-Certificate] <Certificate>] [<CommonParameters>]

Detailed Description

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

Parameters

-Name <Name>

Directory server name to add. This value will also be used to retrieve the SSL certificate from the Directory Server if the -Certificate parameter is not used.

Aliases None.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters?    false

-SSLPort <SSLPort>

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

Aliases None.
Required? false
Position? 2
Default value 636
Accept pipeline input? false
Accept wildcard characters?    false

-Certificate <Certificate>

Aliases [-cert] Directory Server SSL Certificate, either location to Base64 Cert or multi-line string value. If omitted, the directory server Name value will be used to connect to the Directory Server to retrieve the SSL certificate.

Aliases None.
Required? false
Position? 3
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

None. You cannot pipe objects to this cmdlet.

Return Values

System.Collections.Hashtable

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

Examples

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

PS C:\> $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 --------------------------

PS C:\> $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 --------------------------

PS C:\> $ServerA = New-HPOVLdapServer -Name servera.domain.com -Port 636

Define a new Directory Server, ServerA, and the Directory Server's public Secure LDAP certificate will be retrieved online.

Related Links


Wiki Table of Contents

Clone this wiki locally