LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-12-2019, 07:17 AM   #1
patnaik.bibhu@gmail.com
LQ Newbie
 
Registered: Aug 2019
Posts: 2

Rep: Reputation: Disabled
OPENLDAP: Unable to add the object class


Below command is not working
*********************************************
[root@xxxxxx tmp]# ldapadd -x -D "cn=manager,dc=lab,dc=bigdata,dc=intraxa" -W -H ldapi:// -f /tmp/ldapbase-run.ldif
Enter LDAP Password:
adding new entry "uid=cloudera-service,ou=Services,dc=lab,dc=bigdata,dc=intraxa"
ldap_add: Invalid syntax (21)
additional info: objectClass: value #0 invalid per syntax


ldapbase-run.ldif details are as below
********************************************************************
[root@xxxxxx tmp]# cat ldapbase-run.ldif
dn: uid=cloudera-service,ou=Services,dc=lab,dc=bigdata,dc=intraxa
objectClass: inetOrgPerson
objectClass: person
objectClass: top
cn: Cloudera service account
sn: Cloudera service account
uid: cloudera-service
userPassword: 12345
 
Old 08-12-2019, 08:14 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 21,723

Rep: Reputation: 5748Reputation: 5748Reputation: 5748Reputation: 5748Reputation: 5748Reputation: 5748Reputation: 5748Reputation: 5748Reputation: 5748Reputation: 5748Reputation: 5748
Quote:
Originally Posted by patnaik.bibhu@gmail.com View Post
Below command is not working
*********************************************
[root@xxxxxx tmp]# ldapadd -x -D "cn=manager,dc=lab,dc=bigdata,dc=intraxa" -W -H ldapi:// -f /tmp/ldapbase-run.ldif
Enter LDAP Password:
adding new entry "uid=cloudera-service,ou=Services,dc=lab,dc=bigdata,dc=intraxa"
ldap_add: Invalid syntax (21)
additional info: objectClass: value #0 invalid per syntax


ldapbase-run.ldif details are as below
********************************************************************
[root@xxxxxx tmp]# cat ldapbase-run.ldif
dn: uid=cloudera-service,ou=Services,dc=lab,dc=bigdata,dc=intraxa
objectClass: inetOrgPerson
objectClass: person
objectClass: top
cn: Cloudera service account
sn: Cloudera service account
uid: cloudera-service
userPassword: 12345
Ok...and since you tell us *NOTHING* about your system, version/distro of Linux, LDAP config, any diagnostics/log files, or if this is a new LDAP install or old, what do you think we'll be able to tell you???

The message is very clear; your ldap add command has bad syntax, and is entered incorrectly. Read the man page on the ldapadd command.
 
Old 08-13-2019, 04:58 AM   #3
patnaik.bibhu@gmail.com
LQ Newbie
 
Registered: Aug 2019
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
Ok...and since you tell us *NOTHING* about your system, version/distro of Linux, LDAP config, any diagnostics/log files, or if this is a new LDAP install or old, what do you think we'll be able to tell you???

The message is very clear; your ldap add command has bad syntax, and is entered incorrectly. Read the man page on the ldapadd command.
**************************************************************************************************** ******************************************
REPLY:
Sorry for the inconvenience, Please find the details as mentioned below. As we are building a new setup for our Azure cluster and i am not able to find any log information regarding the same. diagnostic log has not been activated as of now. Please suggest if you need any more information.

[svc_bigdata_na_local@xxxxxxx ~]$ rpm -qa | grep -i openldap
openldap-clients-2.4.44-20.el7.x86_64
openldap-servers-2.4.44-20.el7.x86_64
openldap-2.4.44-20.el7.x86_64


[svc_bigdata_na_local@xxxxxxx ~]$ java -version
java version "1.8.0_221"
Java(TM) SE Runtime Environment (build 1.8.0_221-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.221-b11, mixed mode)


Thanks and Regards
Bibhu
 
Old 08-13-2019, 07:03 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 21,723

Rep: Reputation: 5748Reputation: 5748Reputation: 5748Reputation: 5748Reputation: 5748Reputation: 5748Reputation: 5748Reputation: 5748Reputation: 5748Reputation: 5748Reputation: 5748
Quote:
Originally Posted by patnaik.bibhu@gmail.com View Post
Sorry for the inconvenience, Please find the details as mentioned below. As we are building a new setup for our Azure cluster and i am not able to find any log information regarding the same. diagnostic log has not been activated as of now. Please suggest if you need any more information.

[svc_bigdata_na_local@xxxxxxx ~]$ rpm -qa | grep -i openldap
openldap-clients-2.4.44-20.el7.x86_64
openldap-servers-2.4.44-20.el7.x86_64
openldap-2.4.44-20.el7.x86_64

[svc_bigdata_na_local@xxxxxxx ~]$ java -version
java version "1.8.0_221"
Java(TM) SE Runtime Environment (build 1.8.0_221-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.221-b11, mixed mode)
Ok...did you not read or understand the reply?? You keyed in the command wrong; it has the wrong syntax.

Read the man page on the command, and enter the RIGHT command.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] C++ Class object can't find class methods TheCrow33 Programming 4 01-29-2012 05:04 PM
Openldap Server - could not add new value - object class violation snook122 Linux - Server 7 12-19-2011 12:41 PM
unable to create object class in openldap shubh Linux - Server 5 01-07-2010 03:39 AM
openLDAP Object class violation trv@dmin Linux - Server 0 09-05-2008 05:51 AM
Event driven object-to-object: C++ template class mecanism ( NOT STL or STDC++) bretzeltux Programming 2 12-23-2003 02:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration