Home
> Oracle Apps > Migrating LDAP server to a new host
Migrating LDAP server to a new host
Recently there was a sudden requirement where our Micosoft AD (LDAP server) was being moved to a new host. This could have rendered all the application, where user authentication happens through LDAP, inaccessible – if the applicaiton would not have changed accordingly.
One of the critical external customer facing application was supposed to be reconfigured to point to new LDAP server.
Below step wise approach performed to achieve this
- Stop the oidsrv process
-oidctl connect=fabprod server=odisrv instance=1 stop - how to check if the instance is 1 or 2 (Normally it is 1)
- Go to LDAP log directory and look for oidsrvnn.log –> nn can be 1 or 2
- Disable the synchrnization profile using Oracle Directory Manager (ODM)
- Login to ODM using ‘orcladmin’ user account –> Server management –> Integration Server –>Configuration Set1
- Select the profile –> Eidt and select ‘DISABLE’ option
- it can be confirmed using ‘ldapsearch’ command – ldapsearch –h <OID_Host> –p <port_no> –D “cn=orcladmin” –w <password> –b “orclodipAgentName=<Profile_name>,cn=subscriber profile ,cn=changelog subscriber,cn=oracle internet directory” –s base “objectclass=*” orclodipagentcontrol
- Change the server name (LDAP server name) while in ODM – by going into the execution tab and the property is “Connected Directory URL“. Change this value to new host name or IP address
- Make sure the “highestCommittedUSN” is in sync for old and new LDAP server – if not bootstrapping needs to be done
- how to check the “highestCommittedUSN” in AD
- ldapsearch –h <AD_HOST> –p 389 –D <AD_USER> –w “<password> –b “” –s base “objectclass=*” highestCommittedUSN
- how to check the “highestCommittedUSN” in AD
- While in ODM,update the “last applied change number” attribute with the “highestCommittedUSN”
- All this would make the synchonization profile updated with the new values
- Remove the OID and LDAP logs. When you start the oidsrv process, these logs will be generated afresh.
- Start the oidsrv process
- Check if the process started using ‘ldapcheck’ command
- Confirm if the synchrnization is working
- Final step is to drop and recreate the plugins for external authentication. This is very much required for external authentication as the packages are tagged to the AD host.
I will cover the ‘external authentication’ in my next blog….Keep reading
-Anand
Categories: Oracle Apps
Comments (0)
Trackbacks (0)
Leave a comment
Trackback