Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8218577
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T12:50:42+00:00 2026-06-07T12:50:42+00:00

I am trying add an entry to a directory server database. These are the

  • 0

I am trying add an entry to a directory server database. These are the values i am inserting:

userName=[ben@gmail.com]
driverEmail=[ben@gmail.com]
driverPassword=[ben]
firstName=[Ben]
lastName=[Hur]
newsletter=[false]

And i am getting this exception:

SEVERE: Cannot create new LDAP entry
LDAPException(resultCode=object class violation, errorMessage='Entry mwUniqueIdentifier=5f9e7597-8a5f-42b0-985b-7d196040689e,ou=People,dc=mobilewarrio
r,dc=com violates the Directory Server schema configuration because it includes     multiple conflicting structural objectclasses inetOrgPerson and mwUser
Account.  Only a single structural objectclass is allowed in an entry')

Can anyone tell me what is wrong in it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T12:50:46+00:00Added an answer on June 7, 2026 at 12:50 pm

    You don’t show exactly how you’re going about inserting those values, so it’s hard to be too specific. However, the exception is pretty clear.

    You tried to assign the entry both the inetOrgPerson object class and the mwUser object class, which doesn’t work as they are both defined as structural object classes and neither inherits from the other (most likely mwUser is defined as a structural object class because your schema did not specify it as a AUXILIARY or ABSTRACT object class).

    Per RFC 4512:

    An object or alias entry is characterized by precisely one structural object class superclass chain which has a single structural object class as the most subordinate object class.

    There are two possible fixes which should involve simple changes to your LDAP schema:

    1. If you intend all mwUser objects to be inetOrgPerson objects, simply declare mwUser a sub-object class of inetOrgPerson like so (taken from the OpenLDAP documentation):

      objectclass ( 1.1.2.2.2 NAME ‘myPerson’
      DESC ‘my person’
      SUP inetOrgPerson
      MUST ( myUniqueName $ givenName )
      MAY myPhoto )

    In this situation, you will only need to assign the mwUser object class to your entry.

    1. If you do not want all mwUser objects to be inetOrgPerson objects, then declare it a mixin by specifying that it is an auxiliary object class like so:

      objectclass ( 1.1.2.2.1 NAME ‘myPhotoObject’
      DESC ‘mixin myPhoto’
      AUXILIARY
      MAY myPhoto )

    In this situation, you will have to assign both the inetOrgPerson (or another structural object class) as well as the mwUser object class to the object.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to add an entry to an LDAP server using JNDI. I
I'm trying to add a new entry into my database, but it's not working.
Hey guys, I'm trying to add a textfield.text entry to an array. I want
Using ext/ldap I'm trying to add entries to an Active Directory. As long as
I'm trying to add a wizard entry to a ScriptExplorerPart of the Dynamic Languages
I'm trying to add a new entry into Internet Explorer's right-click context menu. I
First question, here goes nothing... I'm trying to add a new entry to my
I'm using zsh terminal, and I'm trying to add a new entry ( /home/david/pear/bin
I am trying to add an entry to an Oracle table which has a
I'm trying to use Ruby Motion to add an entry to the AddressBook. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.