<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2333188408696024716</id><updated>2012-02-16T20:34:38.084-08:00</updated><category term='OpenLdap error adding new entry LDIF'/><title type='text'>Troubleshooting tips</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://troubleshuter.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2333188408696024716/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://troubleshuter.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Tejas Lagad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://3.bp.blogspot.com/_i394wHWY8GM/S4P9bOWVhAI/AAAAAAAAD3s/PELojA9tNVE/S220/Tejas+Lagad,+PortWise.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2333188408696024716.post-7097640860274191642</id><published>2007-04-05T01:36:00.000-07:00</published><updated>2007-04-05T03:11:50.655-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='OpenLdap error adding new entry LDIF'/><title type='text'>OpenLDAP - Add initial entries</title><content type='html'>&lt;span style=";font-family:trebuchet ms;font-size:100%;"  &gt;Most of us who have downloaded and installed OpenLdap face this issue. When &lt;/span&gt;&lt;em style="font-family: trebuchet ms;"&gt;ldapadd&lt;/em&gt;&lt;span style="font-family:trebuchet ms;"&gt; is used to add entries to the LDAP directory thru an LDIF file, we get the following error&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:trebuchet ms;font-size:100%;"  &gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier;"&gt;adding new entry "dc=&amp;lt;MYDOMAIN&lt;/span&gt;&lt;span style="font-family:courier;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-family:courier;"&gt;&lt;my-domain&gt;&lt;mydomain&gt;,dc=&lt;/mydomain&gt;&lt;/my-domain&gt;&lt;/span&gt;&lt;span style="font-family:courier;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family:courier;"&gt;&lt;my-domain&gt;&lt;mydomain&gt;COM&lt;/mydomain&gt;&lt;/my-domain&gt;&lt;/span&gt;&lt;span style="font-family:courier;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-family:courier;"&gt;&lt;my-domain&gt;&lt;mydomain&gt;&lt;com&gt;&lt;com&gt; "&lt;/com&gt;&lt;/com&gt;&lt;/mydomain&gt;&lt;/my-domain&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier;font-size:100%;"  &gt;ldap_add: Invalid syntax (21)&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier;"&gt;         additional info: objectclass: value #0 invalid per syntax&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;The root cause is that the sample LDIF file that accompanies the OpenLdap install has an extra space at the end of the objectclass syntax. Note the space after &lt;/span&gt;&lt;span style="font-family:courier;"&gt;dc=&lt;com&gt;&lt;/com&gt;&lt;com&gt;&lt;/com&gt;&lt;/span&gt;&lt;span style="font-family:courier;"&gt;&amp;lt;COM&lt;/span&gt;&lt;span style="font-family:courier;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-family:courier;"&gt;&lt;com&gt;.&lt;/com&gt;&lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt; Trim the trailing space and the error is resolved.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2333188408696024716-7097640860274191642?l=troubleshuter.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://troubleshuter.blogspot.com/feeds/7097640860274191642/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2333188408696024716&amp;postID=7097640860274191642' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2333188408696024716/posts/default/7097640860274191642'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2333188408696024716/posts/default/7097640860274191642'/><link rel='alternate' type='text/html' href='http://troubleshuter.blogspot.com/2007/04/openldap-add-initial-entries.html' title='OpenLDAP - Add initial entries'/><author><name>Tejas Lagad</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://3.bp.blogspot.com/_i394wHWY8GM/S4P9bOWVhAI/AAAAAAAAD3s/PELojA9tNVE/S220/Tejas+Lagad,+PortWise.jpg'/></author><thr:total>2</thr:total></entry></feed>
