Total Pageviews

Monday, June 1, 2020


Unexpected end of JSON input



the issue was fixed using jdk 1.8 version that I download from the oracle site. before this, I was using default java that comes with Linux using yum install java


Saturday, May 9, 2020

ApacheDirectoryStudio A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run ApacheDirectoryStudio. No Java virtual machine wsa found after searching the following locations

Error
ApacheDirectoryStudio

A Java Runtime Environment (JRE) or Java Development Kit (JDK)
must be available in order to run ApacheDirectoryStudio. No Java virtual machine wsa found
after searching the following locations:
C:\Program Files\Apache Directory Studio\jre\bin\javaw.exe
javaw.exe in your current PATH


in you install simple java you will get below error

ApacheDirectoryStudio

Java was started but returning exit code=13
C:/Program Files (x86)\Common Files\Oracle\Java\javapath\javaw.exe
-Dosgi.requiredJavaVersion=1.8
-jar C:/Program Files\Apache Directory
Studio\\plugins/org.eclipse.equinox.launcher_1.5.700.v20200207-215.jar
-os win32
-ws win32
..........
.


Solution:
The issue is Apache Directory Studio is looking for JDK. It is also mentioned in the Apache Directory Studio installation documentaion to have JDK 1.8 or newer installed.

Download JDK and install it. Once finished JDK installation. start the Apache Directory Studio It will work

here is link to download JDK 1.8
https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html


Wednesday, April 29, 2020

basic opendj ldap commands



./ldapsearch --hostname ds1.avantastech.com --port 1389 --baseDN "ou=People,dc=avantastech,dc=com"  uid=user.1


Change a Password for a User
./ldappasswordmodify -p 1389  -D "cn=directory manager" -w Password -a "dn:uid=user.19,ou=People,dc=avantastech,dc=com" -n changeit


Access OpenDJ configurations

./dsconfig --hostname ds1.avantastech.com --port 4444 --bindDN "cn=directory manager" --bindPassword Password --trustAll

Create a Backup
./backup --backUpAll --backupDirectory /app/forgerock/opendj/backup --port 4444 --bindDn "cn=directory manager" --bindPassword Password --trustAll --no-prompt



Restore UserRoot from a Backup $

./opendj/bin/restore -p 4444 -D "cn=directory manager" -w Password -d /app/forgerock/opendj/backup/userRoot --trustAll

Export ldif File
./export-ldif --port 4444 --backendId userRoot --ldifFile /app/forgerock/backup/ldif-file/users.ldif --bindDN "cn=directory manager" --bindPassword Password --trustAll --no-prompt

Get Password Policy
 ./dsconfig get-password-policy-prop --policy-name "Default Password Policy" -h ds1.avantastech.com -D "cn=directory manager" -w Password -p 4444 --trustall --no-prompt


Get OpeDJ Server ID

./dsconfig get-global-configuration-prop --hostname ds1.avantastech.com --port 4444 --bindDN "cn=Directory Manager" --bindPassword Password --property server-id --trustAll --no-prompt

Monday, April 20, 2020

Forgerock opendj ERROR: The Directory Server could not acquire an exclusive lock on file


Looks like your server got shut down abnormally.

solution:
either shut down the server again or remove server.lock file that is under locks folder.

Start the server. It will resolve the issue