HewlettPackard / PowerShell-ProLiant-SDK

PowerShell sample scripts for managing HPE servers
https://www.hpe.com/servers/powershell
90 stars 42 forks source link

Set-HPEiLODirectorySetting wrong DirectoryServerAddress in HPEiLOCmdlets 4.0.0.0 #88

Open klaspihl opened 1 year ago

klaspihl commented 1 year ago

Issue

Set-HPEiLODirectorySetting add port number in DirectoryServerAddress In iLO web GUI the DirectoryServerAddress is shown with added port number. Get-HPEiLODirectorySetting show correct address without port

Users can not login with domain account until the port number is removed from DirectoryServerAddress in web GUI.

Set-HPEiLODirectorySetting

Example

Set-HPEiLODirectorySetting -Connection  $connectioniLO -DirectoryServerAddress ilo.domain.corp -LDAPDirectoryAuthentication -DirectoryServerPort 636 ...

Logs

Module version

PS C:\scripts> Get-Module HPEiLOCmdlets

ModuleType Version    Name
---------- -------    ----
Binary     4.0.0.0    HPEiLOCmdlets

Server model and firmware

PS C:\scripts> $connectioniLO.TargetInfo
ProductName        : ProLiant ML110 Gen10
ServerFamily       : ProLiant
ServerGeneration   : Gen10
ServerModel        : ML110
iLOGeneration      : iLO5
iLOFirmwareVersion : 2,78
SystemROM          : U33 v2.68 (07/14/2022)
ProcessorName      : Intel(R) Xeon(R) Silver 4208 CPU @ 2.10GHz

Output by commandlet

PS C:\scripts> (Get-HPEiLODirectorySetting -Connection $connectioniLO)
DirectoryServerAddress      : ilo.domain.corp
DirectoryServerPort         : 636
GenericLDAPEnabled          : Yes
LDAPDirectoryAuthentication : DefaultSchema
LocalUserAccountEnabled     : Yes
LOMObjectDN                 :
UserContext                 : {@domain.corp}
IP                          : 10.5.3.197
Hostname                    : ilo.domain.corp
Status                      : OK
StatusInfo                  :