IBM Support

Using ldapdelete and Resetting the LDAP Administrator Password

Troubleshooting


Problem

This document describes how to use the ldapdelete API to remove the entry "user" from LDAP and how to reset the LDAP administrator password.

Resolving The Problem

The following command can be used to remove the entry "user" from LDAP in using QShell (QSH).

ldapdelete -D cn=administrator -w password "cn=user, ou=IS, o=MyCompany, c=US"

Where cn=administrator must be the administrator DN that was configured when setting up the LDAP server, and password must be the password that was configured during the setup of the LDAP server.

If you have forgotten the Administrator password, the password can be reset with the command
CHGDIRSVRA INSTANCE(QUSRDIR) DN('cn=administrator' password)


Note: The LDAP server must be restarted to reflect the new password.

[{"Product":{"code":"SWG60","label":"IBM i"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":"Communications-TCP","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"5.4.0;5.4.5","Edition":"","Line of Business":{"code":"LOB57","label":"Power"}}]

Historical Number

21460554

Document Information

More support for:
IBM i

Software version:
5.4.0, 5.4.5

Operating system(s):
IBM i

Document number:
641467

Modified date:
31 March 2020

UID

nas8N1017580

Manage My Notification Subscriptions