- Community Home
- >
- Servers and Operating Systems
- >
- HPE ProLiant
- >
- ProLiant Servers (ML,DL,SL)
- >
- Howto delete "Directory Groups " on ILOs via power...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2017 12:40 AM
тАО08-10-2017 12:40 AM
Howto delete "Directory Groups " on ILOs via powershell
hello community
I have activated ldap authenification on 150 ILOs in our company in addition to the local "admin users". Ldap is activated by "Set-HPiLODirectory" and is ok.
Set-HPiLODirectory -DisableCertificateAuthentication -LDAPDirectoryAuthentication Use_Directory_Default_Schema -LocalUserAccount Yes -Username $ILOUSER -Password $ILOPASSWORD -Server $ILOIP -ServerAddress XXX.local -ServerPort 636 -UserContext1 "CN=YYY,OU=AAA,OU=SSS,DC=GGG,DC=local"
After this I added a AD Group with the permissions we need: Login for AD Users within the AD group "CN=..." works.
Set-HPiLOSchemalessDirectory -DisableCertificateAuthentication -Username $ILOUSER -Password $ILOPASSWORD -Server $ILOIP -GroupAccount 'Enable' -Group1Name "CN=XXX,OU=YYY,DC=ZZZ,DC=local" -Group1Priv "1,2,3,4,5,6" #1 - admin, 2 - settings, 3 - power, 4 - media, 5 - remote console, 6 - login
Now I have the problem, that there are 2 Directory Groups (Administrators and Authenticated Users) I have to delete. The 2 groups are on all ILOs per default...
I cannot find a commandlet to list and delete the Directory Groups via powershell, and I will not login to all 150 ILOs and delete them manually :-(
So my question, is the a commandlet to do this or do you have a workaround to do this?
thx for support
- Tags:
- iLO
- powershell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2017 10:56 PM
тАО08-28-2017 10:56 PM
Re: Howto delete "Directory Groups " on ILOs via powershell
Hi,
iLO does not provide any API for listing the directory groups or deleting same.
But they do provide disabling the directory groups which you can try on the directory groups you want to delete.
Disabling directory groups can be achieved using set-hpilodirectory cmdlet with -LDAPDirectoryAuthentication parameter value as "Disable". Refer the cmdlet help examples which clearly shows how to disable the directory group.
Cmdlet snippet is pasted below.
Set-HPiLODirectory -Server $Server -LDAPDirectoryAuthentication @("Disable","Use_HP_Extended_Schema") -LocalUserAccount @("Y","N")
Thanks,
Gokul
HPE PowerShell Team
I am a HPE Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-03-2018 04:32 PM
тАО01-03-2018 04:32 PM
Re: Howto delete "Directory Groups " on ILOs via powershell
Like you I am trying to clean up an existing iLO Environment. I wanted to add the current three AD Security Groups we are using; an Admin Level, an Operator level, and a Read-Only level. Here's is what I did to Delete Existing AD Security Groups from the iLO configuration:
Set-HPiLOSchemalessDirectory -Server $HOSTNAME -USERNAME $user -Password $pwd -DisableCertificateAuthentication -Group1Name $Admin -Group1Priv $Admin_Priv -Group1SID $Admin_SID -Group2Name $Opt -Group2Priv $Opt_Priv -Group2SID $Opt_SID -Group3Name $RO -Group3Priv $RO_Priv -Group3SID $RO_SID -Group4Name "" -Group5Name "" -Group6Name ""
After setting the values for the variables above for the new groups I'd also listed slots #4, #5, and #6. If you use just the "-Group#Name" and use empty "" it will remove any existing data in the number provide slot.
the following:
Set-HPiLOSchemalessDirectory -Server $HOSTNAME -USERNAME $user -Password $pwd -DisableCertificateAuthentication -Group2Name ""
Will remove the existing Group in the #2 slot, then move the existing #3 Group into the #2 Slot, the #4 Group would move into the #3 slot, ETC.
Hope this makes sense....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2018 10:48 PM
тАО01-04-2018 10:48 PM
Re: Howto delete "Directory Groups " on ILOs via powershell
Hi,
If you are asking for confirmation then the commands you are trying will work as desired.
Anything else you want to know apart from the previous post confirmation let me know.
Thanks,
Gokul
HPE PowerShell Team
I am a HPE Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2018 04:49 AM - edited тАО08-14-2018 04:54 AM
тАО08-14-2018 04:49 AM - edited тАО08-14-2018 04:54 AM
Re: Howto delete "Directory Groups " on ILOs via powershell
With the latest HP iLO commandlets, this command is not longer available and the replacement (Set-HPEiLODirectoryGroup) does not accept null entries e.g.
Set-HPEiLODirectoryGroup -GroupName 'GrouptoRemove' -NewGroupName ""
...will not work
Is there a replacement Powershell command to remove directory groups from the user administration section?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-19-2018 11:05 PM
тАО08-19-2018 11:05 PM
Re: Howto delete "Directory Groups " on ILOs via powershell
Hi,
Unfortunately there is no RIBCL support from iLO4 for deletion of diretory groups and that is the reason for not allowing empty tags in Set-HPEiLODirectoryGroup cmdlet. You have to use iLO GUI only to delete the groups.
Thanks,
Gokul
I am a HPE Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2021 02:58 AM
тАО11-09-2021 02:58 AM
Re: Howto delete "Directory Groups " on ILOs via powershell
Any news on this with the newest Module relaeses.
There is now a cmdlet "Remove-hpeiloDirectoryGroup" existing which with it should be possible to remove ILO AD Groups.
However when i try to remove one of the configured AD Groups, i get a message that my privileges are insufficient, even though im logged in as ILO Administrator.
Verbose Information:
VERBOSE: Performing the operation "Remove-HPEiLODirectoryGroup" on target "servername".
VERBOSE: Executing the cmdlets with 1 task serially.
VERBOSE: [Remove-HPEiLODirectoryGroup][gusmcv71-rib.geberit.net]: GetRedfishExistingDirGroup - Getting directory settings data by Redfish interface.
VERBOSE: [Remove-HPEiLODirectoryGroup][gusmcv71-rib.geberit.net]: Validating Cmdlet supportability.
VERBOSE: [Remove-HPEiLODirectoryGroup][gusmcv71-rib.geberit.net]: Checking for iLOGeneration, Model and Firmware for Cmdlet Supportability.
VERBOSE: [Remove-HPEiLODirectoryGroup][gusmcv71-rib.geberit.net]: Validating parameter supportability.
VERBOSE: [Remove-HPEiLODirectoryGroup][gusmcv71-rib.geberit.net]: Getting JSON url for ODataType AccountService.
VERBOSE: [Remove-HPEiLODirectoryGroup][gusmcv71-rib.geberit.net]: Getting OdataId for OdataType AccountService.
VERBOSE: [Remove-HPEiLODirectoryGroup][gusmcv71-rib.geberit.net]: Getting url value from resource instance.
VERBOSE: [Remove-HPEiLODirectoryGroup][gusmcv71-rib.geberit.net]: JSON url is /redfish/v1/AccountService/
VERBOSE: [Remove-HPEiLODirectoryGroup][gusmcv71-rib.geberit.net]: JSON URL with query is- /redfish/v1/AccountService/
VERBOSE: [Remove-HPEiLODirectoryGroup][gusmcv71-rib.geberit.net]: Sending Redfish request.
VERBOSE: [Remove-HPEiLODirectoryGroup][gusmcv71-rib.geberit.net]: Processing JSON response.
VERBOSE: [Remove-HPEiLODirectoryGroup][gusmcv71-rib.geberit.net]: Response Type is HPE.iLO.Response.Redfish.DirectorySettingInfo
VERBOSE: [Remove-HPEiLODirectoryGroup][gusmcv71-rib.geberit.net]: Processing complex JSON response.
VERBOSE: [Remove-HPEiLODirectoryGroup][gusmcv71-rib.geberit.net]: GetRemoteRoleMapping - Getting existing iLO directory users
VERBOSE: [Remove-HPEiLODirectoryGroup][gusmcv71-rib.geberit.net][Redfish]: Validating Cmdlet supportability.
VERBOSE: [Remove-HPEiLODirectoryGroup][gusmcv71-rib.geberit.net][Redfish]: Checking for iLOGeneration, Model and Firmware for Cmdlet Supportability.
VERBOSE: [Remove-HPEiLODirectoryGroup][gusmcv71-rib.geberit.net][Redfish]: Validating parameter supportability.
VERBOSE: [Remove-HPEiLODirectoryGroup][gusmcv71-rib.geberit.net][Redfish]: Getting url value from resource instance.
VERBOSE: [Remove-HPEiLODirectoryGroup][gusmcv71-rib.geberit.net][Redfish]: Getting url value from resource instance.
VERBOSE: [Remove-HPEiLODirectoryGroup][gusmcv71-rib.geberit.net][Redfish]: Creating Redfish request.
VERBOSE: [Remove-HPEiLODirectoryGroup][gusmcv71-rib.geberit.net][Redfish]: Retrieving URL's from parameter mapper.
VERBOSE: [Remove-HPEiLODirectoryGroup][gusmcv71-rib.geberit.net][Redfish]: Forming JSON payload for corresponding URL.
VERBOSE: [Remove-HPEiLODirectoryGroup][gusmcv71-rib.geberit.net][Redfish]: Creating Redfish request.
VERBOSE: [Remove-HPEiLODirectoryGroup][gusmcv71-rib.geberit.net][Redfish]: Sending Redfish request to PATCH/POST/DELETE the JSON payload.
VERBOSE: [Remove-HPEiLODirectoryGroup][gusmcv71-rib.geberit.net][Redfish]: Processing JSON response.
VERBOSE: [Remove-HPEiLODirectoryGroup][gusmcv71-rib.geberit.net][Redfish]: Redfish response message: InsufficientPrivilege
Tried it with an AD-User as well as a local admin.
Regards,
Nico