IBM Message broker: how to unsetldap princial and credentials

827 Views Asked by At

Using mqsichangebroker I'm able to set the ldap username and password. Is there a way to unset this once made? I've managed to unset the principal by passing -y """" but the credential cannot be set to the same as it asks for a password.

mqwmb@esbprodz > mqsichangebroker ESBTST -y """" -z """"

Enter password for user ID
2

There are 2 best solutions below

1
On BEST ANSWER

You can delete and recreate the broker and fail to specify the -y and -z. Which you really kind of should do anyway, and then use mqsisetdbparms to specify the credentials instead.

Then you can use the -d flag on mqsisetdbparms to remove the credentials at a later date.

0
On

You could also stop the broker and delete the $MQSI_REGISTRY/registry//CurrentVersion/LdapCredentials and LdapPrincipal files.