LDAP: No structuralObjectClass for entry - Solved

This error occurs when you try to add an entry into ldap. The error is something along the lines of  no structuralobectclass or invalid structuralobectclassetc.

adding new entry
dn: uid=hello@hello.com,ou=users,o=xforce,o=au
ldap_add: Unknown error
ldap_add: additional info: no structuralObjectClass operational attribute

For example if your entry is something like the one below and keeps failing with the structural object class error..
dn: uid=hello@hello.com,ou=users,o=xforce,o=au
objectclass: person
cn: hello
sn: world

Then you have to explicity add the structural object classattribute.
dn: uid=hello@hello.com,ou=users,o=xforce,o=au
objectclass: person
structuralObjectClass: person
cn: hello
sn: world


markanotny said...

Wounderful....Thanks a lot.i have to learned lot of information.hadoop training chennai

Naviya Nair said...

Very interesting and good Explanation
ASP NET Training
ASP NET Training
ASP NET Online Training
C-Sharp Training
Dot Net Training in Chennai
Online .Net Training

MVC Training
WCF Training
Web-API Training
LINQ Training
Entity Framework

Dot Net Interview Questions

deeksha said...

This blog is useful and informative too and it is really helpful thanks for sharing this information.

hadoop training in chennai

Arjun kumar said...

. Hadoop is a cloud based tool.It give more information about massive storage and it helps to improve our skills. Hadoop provides more job opportunities.To achieve a great career join with us.Hadoop Training Chennai|Big Data Training Chennai

Nainika Joseph said...

This article creates a new hope and inspiration with in me. Thanks for sharing article like this. The way you have stated everything above is quite awesome. Keep blogging like this. Thanks.

SAP training in Chennai

Jhon Abraham said...

Microsoft develops software called DOTNET. It is a software framework. DOTNET mainly runs on Microsoft windows. It is similar to Java.
DOTNET course in chennai | DOTNET Training Institute in Chennai

Evelin Harriet said...

Great information. Thank you for Sharing. (ERP) Enterprise Resource Planning in Chennai

Evelin Harriet said...

I have read your blog its very Interesting. Thanks for sharing.
erp software providers in chennai | leading erp software development company in chennai

Shivani Yuvanjalin said...

Thanks for your great information!
erp software in chennai | erp solutions in chennai | erp software development company in chennai

sivanesan said...

Excellent post. I have read your blog it's very interesting and informative. Keep sharing.
erp in chennai