Thursday, November 18, 2010

Unlock users in OID

There is always a need to unlock the user in OID. This can be done from the Konsole.

We must ideally create a file to do this so that we can use this multiple times.

Below are the steps.
  1. Create a file, say name it as
  2. Paste the below content into the file.
    ldapmodify -p 389 -h -D cn=orcladmin -w password -x -v <<EOF
    dn: cn=username, cn=Users,dc=corp,dc=company,dc=com
    changetype: modify
    add: orclpwdaccountunlock
    orclpwdaccountunlock: 1
  3. Save and close the file.
  4. Give execute permission on that new file
    chmod +x
  5. Execute the file like

Next time on, all you need to do is change the username and execute the file.

No comments:

Post a Comment