Thursday, August 30, 2018

ldap commands using in linux


1. How to find Max change no:

]$ ./ldapsearch -h 10.4.xxx.xx -p 389 -D ldapreaduser@exx.com -w  <password> -b "" -s base "objectclass=*" highestCommittedUSN


you will get the below output:

highestCommittedUSN=188476234

2. How to retrieve details of the specific AD, OID  object

]$ ./ldapsearch -h <ldap server host or ip> -p 389 -D "<admin or readonly username>" -w <userpassword> -b "<DN of the specific user >" -s base "objectclass=*"





Monday, March 26, 2018

How to foward URL from HTTP(80) to HTTPS(443) using Apache (OHS) running in front of Hardware Load balancer

Prerequisites : 

Make sure all services up and running in Oracle Access Manager and Accessgate. 

The request which comes to the Actual_accessgate_host:7777 port in Oracle Http Server will forward to DNS_accessgate:443.

Please see the below configuration:

1. Shutdown the opmn services

2. Go to $ORACLE_INSTANCE/config/OHS/ohs3/moduleconf

3. Create a file as virtual_hosts.conf

4. Enter the below entries to virtual_hosts.conf file.

NameVirtualHost *:7777
<VirtualHost *:7777>
    ServerName https://<accessgateURL>:443
    RewriteEngine On
    RewriteOptions inherit
    UseCanonicalName On
</VirtualHost>

5. After the above step restart Apache opmn.

Go to $ORACLE_INSTANCE/config/

]$ ./opmnctl start