<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>UnboundID &#8211; My Shitty Code</title>
	<atom:link href="https://myshittycode.com/tag/unboundid/feed/" rel="self" type="application/rss+xml" />
	<link>https://myshittycode.com</link>
	<description>Embracing the Messiness in Search of Epic Solutions</description>
	<lastBuildDate>Fri, 06 Jan 2023 16:29:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>

<image>
	<url>https://myshittycode.com/wp-content/uploads/2022/04/cropped-icon-32x32.png</url>
	<title>UnboundID &#8211; My Shitty Code</title>
	<link>https://myshittycode.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">205304208</site>	<item>
		<title>UnboundID: The entry contains attribute &#8216;XXXX&#8217; which is not defined in the schema</title>
		<link>https://myshittycode.com/2017/03/28/unboundid-the-entry-contains-attribute-xxxx-which-is-not-defined-in-the-schema/</link>
					<comments>https://myshittycode.com/2017/03/28/unboundid-the-entry-contains-attribute-xxxx-which-is-not-defined-in-the-schema/#comments</comments>
		
		<dc:creator><![CDATA[Shitty Author]]></dc:creator>
		<pubDate>Wed, 29 Mar 2017 02:00:36 +0000</pubDate>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[LDAP]]></category>
		<category><![CDATA[UnboundID]]></category>
		<guid isPermaLink="false">http://myshittycode.com/?p=931</guid>

					<description><![CDATA[<p>PROBLEM Let&#8217;s assume we have the following LDIF file containing custom attribute(s), such as managedBy:- When running the code on UnboundID&#8217;s In-Memory Directory Server, the following exception is thrown:- SOLUTION The problem is caused by the fact that the default schema does not match Microsoft&#8217;s Active Directory schema. Hence, attribute(s), such as managedBy, would cause [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://myshittycode.com/2017/03/28/unboundid-the-entry-contains-attribute-xxxx-which-is-not-defined-in-the-schema/">UnboundID: The entry contains attribute &#8216;XXXX&#8217; which is not defined in the schema</a> appeared first on <a rel="nofollow" href="https://myshittycode.com">My Shitty Code</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">PROBLEM</h2>



<p>Let&#8217;s assume we have the following LDIF file containing custom attribute(s), such as <code>managedBy</code>:-</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
dn: dc=MyShittyCode
objectClass: top
objectClass: domain
dc: MyShittyCode

dn: CN=ShittyEmployee,DC=MyShittyCode
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
sn: ShittyEmployee
managedBy: CN=ShittyBoss,DC=MyShittyCode
</pre></div>


<p>When running the code on UnboundID&#8217;s In-Memory Directory Server, the following exception is thrown:-</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
LDAPException(resultCode=65 (object class violation),
errorMessage=&#039;Unable to add entry &#039;CN=ShittyEmployee,DC=MyShittyCode&#039;
because it violates the provided schema:  The entry contains attribute
managedBy which is not defined in the schema.&#039;)
	at com.unboundid.ldap.listener.InMemoryRequestHandler.addEntry(InMemoryRequestHandler.java:4055)
	at com.unboundid.ldap.listener.InMemoryRequestHandler.importFromLDIF(InMemoryRequestHandler.java:3876)
	at com.unboundid.ldap.listener.InMemoryDirectoryServer.importFromLDIF(InMemoryDirectoryServer.java:1226)
	at com.unboundid.ldap.listener.InMemoryDirectoryServer.importFromLDIF(InMemoryDirectoryServer.java:1198)
</pre></div>


<h2 class="wp-block-heading">SOLUTION</h2>



<p>The problem is caused by the fact that the default schema does not match Microsoft&#8217;s Active Directory schema. Hence, attribute(s), such as <code>managedBy</code>, would cause an error.</p>



<p>While we can set a modified schema, which is very convoluted, the easiest solution is to completely disable the schema:-</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: groovy; highlight: [3]; title: ; notranslate">
def config = new InMemoryDirectoryServerConfig(base)
config.setListenerConfigs(new InMemoryListenerConfig(&quot;myListener&quot;, null, port, null, null, null))
config.setSchema(null)

def server = new InMemoryDirectoryServer(config)
server.startListening()
server.importFromLDIF(true, &quot;target/test-classes/unboundid-test-data.ldif&quot;)
</pre></div><p>The post <a rel="nofollow" href="https://myshittycode.com/2017/03/28/unboundid-the-entry-contains-attribute-xxxx-which-is-not-defined-in-the-schema/">UnboundID: The entry contains attribute &#8216;XXXX&#8217; which is not defined in the schema</a> appeared first on <a rel="nofollow" href="https://myshittycode.com">My Shitty Code</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://myshittycode.com/2017/03/28/unboundid-the-entry-contains-attribute-xxxx-which-is-not-defined-in-the-schema/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">931</post-id>	</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 
Lazy Loading (feed)
Database Caching using Disk (Request-wide modification query)

Served from: myshittycode.com @ 2026-02-21 16:46:31 by W3 Total Cache
-->