Troubleshooting tips for LDAP command line tools

This post will talk about the problems and solutions that arises when LDAP command line tools are run for various scenarios.

Error:unable to locate message file: ldap.msb
Scenario: When you run any ldap tools like ldapmodify, ldapadd, ldapbind etc.,
Solution: Set the ORACLE_HOME env variable as shown below.
server@hostname homedir$ export ORACLE_HOME=/u01/orasoft/Oracle/Middleware/idm/Oracle_IDM1
server@hostname homedir$  echo $ORACLE_HOME
/u01/orasoft/Oracle/Middleware/idm/Oracle_IDM1

Now execute the ldap commands as shown below.
server@hostname homedir$ /u01/orasoft/Oracle/Middleware/idm/Oracle_IDM1/bin/ldapbind -h hostname -p 389 -D cn=orcladmin -w password
bind successful

About the Author Mahendra

I am engulfed in Oracle Identity & Access Management domain. I have expertise on providing the optimized solutions for user provisioning, web access management, Single Sign-On and federation capabilities etc., I am also well versed with complex integrations within Identity Management and other product domains. I have expertise on building demos and implementation experience on products Oracle Access Manager, Oracle Adaptive Access Manager, Oracle Entitlement Server, Oracle Virtual Directory, Oracle Internet Directory etc., Look @ my blog: http://talkidentity.blogspot.com

Leave a Comment:

6 comments
Ajay Nair says October 19, 2010

Thanks, it helped me trouble shoot Ldapadd

Reply
ok says May 30, 2012

thank’s

Reply
vinay kumar says May 28, 2014

how to find this cn for my ldap.I just installed new ldap.What is value of cn in ldapAdd command

Reply
    Atul Kumar says May 28, 2014

    @Vinay, Subscribe to our facebook page https://www.facebook.com/k21technologies to get answer to such question or you can also raise questions like this .

    You don’t provide CN you provide DN (Distinguished Name) where CN is part of DN. What was Realm you selected during OID configuration ? We will share what DN to provide for ldapadd once you share Realm provided during OID configuration.

    Reply
vinay kumar says May 28, 2014

I have’nt set up OID. i am setting openldap.I have schema and ldif file.I just wanted to make an copy of ldap with these files. what exactly i should do

Reply
srinu says June 2, 2014

Hi

how to setup email notification in OID. When a new user created in OID email has to send to his manager

thanks
srinu

Reply
Add Your Reply