Delete LDAP endpoints using wsadmin
We can delete LDAP endpoints for a user registry using the WebSphere Application Server administrative tool (wsadmin).
Tasks
- Start the wsadmin scripting tool.
- Set the LDAP variable and display a list of LDAP endpoint objects. Enter the following commands:
Use Jacl:
set ldap [$AdminConfig list LDAPUserRegistry] $AdminConfig list EndPoint $ldapUse Jython:
ldap=AdminConfig.list["LDAPUserRegistry"] print AdminConfig.show(ldap)For the Jython language, we can obtain the endpoint from the host variable after running the previous command.- Display a list of LDAP endpoint objects. Enter the following command for each object:
Use Jacl:
$AdminConfig showall End_Point_ObjectUse Jython:
AdminConfig.showall("End_Point_Object")- Delete an LDAP endpoint object. Enter the following command:
Use Jacl:
$AdminConfig remove End_Point_ObjectUse Jython:
AdminConfig.remove ("End_Point_Object")- Save the configuration changes: Enter the following command:
Use Jacl:
$AdminConfig saveUse Jython:
AdminConfig.save()
Configure LDAP user registries Testing an LDAP server for user registry failover