Total Pageviews

Thursday, October 31, 2019

opends replication creation command


Here is the command to enable OpenDJ replication

few things to remember when enabling replications
1. make sure you can telnet with the port from one server to another server.
2. user configure command instead of enable, enable is no longer used.
3. host1 is second server not the server where you are running the command. host2 is the server where you are running the command.


./dsreplication configure --adminUid admin --adminPassword mypassword --baseDn dc=orasystemsusa,dc=test,dc=com --host1 orasystemsusa.com --port1 4444 --bindDn1 "cn=Directory Manager" --bindPassword1 mypassword --replicationPort1 8989 --host2 orasystemsusa2.com --port2 4444 --bindDn2 "cn=Directory Manager" --bindPassword2 mypassword --replicationPort2 8989 --trustAll --no-prompt



Tuesday, October 29, 2019

AWS linux server error "Could not contact CDS load balancer "

It is happening because your nameserver information has been removed from the machine.

do the following

to make the file immutable

chattr -i /etc/resolv.conf

vi /etc/resolv.conf
nameserver yournameserverip


save the changes and exit. Now you should be able to run linux commands to access outside of AWS

Monday, October 21, 2019

REST API Calls error {"code":501,"reason":"Not Implemented","message":"Not Implemented"} and solutions openam 6.5


getting error while running below command

curl \
> --request POST \
> --header "Content-Type: application/json" \
> --header "X-OpenAM-Username: demo" \
> --header "X-OpenAM-Password: changeit" \
> --data "{}" \
> http://avantastech.com:8080/openam/json/realms/root/authenticate



{"code":501,"reason":"Not Implemented","message":"Not Implemented"}

Solution:


I have included Version information in the curl command


curl \
> --request POST \
> --header "Content-Type: application/json" \
> --header "X-OpenAM-Username: demo" \
> --header "X-OpenAM-Password: changeit" \
> --header "Accept-API-Version: resource=2.0, protocol=1.0" \
> --data "{}" \
> http://avantastech.com:8080/openam/json/realms/root/authenticate



Wednesday, October 16, 2019

AWS Cloudformation uploading error "unresolved resource dependencies in the resources block of the template"


Error

unresolved resource dependencies in the resources block of the template

Solution:

You are refering to attribute using !Ref but the attribute does not exists in the file


Thursday, October 10, 2019

Wednesday, October 2, 2019

forgerock openam console error "HTTP Status 500 – Internal Server Error" resovled




HTTP Status 500 – Internal Server Error


Type Exception Report
Message An error occurred while processing this request. Contact your administrator.
Description The server encountered an unexpected condition that prevented it from fulfilling the request.
Exception
javax.servlet.ServletException: An error occurred while processing this request. Contact your administrator.
 com.sun.identity.setup.AMSetupFilter.doFilter(AMSetupFilter.java:148)
 org.forgerock.openam.audit.context.AuditContextFilter.doFilter(AuditContextFilter.java:46)
Note The full stack trace of the root cause is available in the server logs.

Apache Tomcat/9.0.21

  Caution: below step will delete your configuration. Make sure you copy the original file. If you delete this mistake. This file only have location of your amConfiguration file, you can recreate file and include configuration file path

 Solution:

Go to users home directory and see the hidden file

there should be a file .openamcfg remove that file and restart the tomcat. 

rm .openamcfg/

after starting the Tomcat you should be able to see the openam console, it will require you to reconfigure the openam