{"id":1315,"date":"2013-07-29T20:35:21","date_gmt":"2013-07-29T08:35:21","guid":{"rendered":"http:\/\/www.zoyinc.com\/?p=1315"},"modified":"2013-09-29T19:47:36","modified_gmt":"2013-09-29T06:47:36","slug":"openldap-for-windows","status":"publish","type":"post","link":"http:\/\/www.zoyinc.com\/?p=1315","title":{"rendered":"OpenLDAP for Windows"},"content":{"rendered":"<p>This is a very simple article to keep small bits of info about installing OpenLDAP for Windows. I am using the version available from <a  href=\"http:\/\/userbooster.de\">UserBooster <\/a>as it seemed to work quite well for me.<\/p>\n<h2>Resources<\/h2>\n<h4>OpenLDAP for Windows from UserBooster<\/h4>\n<p><a  href=\"http:\/\/userbooster.de\/en\/download\/openldap-for-windows.aspx\">http:\/\/userbooster.de\/en\/download\/openldap-for-windows.aspx<\/a><\/p>\n<p>The licensing for OpenLDAP for Windows from UserBooster states: &#8220;<em><b>OpenLDAP for Windows is free for private and commercial use.<\/b><\/em>&#8221;<\/p>\n<h4>OpenLDAP Project<a  href=\"http:\/\/www.openldap.org\/\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1329 alignright\" alt=\"OpenLDAP Project Logo\" src=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2013\/07\/LDAPworm.gif\" width=\"214\" height=\"84\" \/><\/a><\/h4>\n<p><a  href=\"http:\/\/www.openldap.org\/\">http:\/\/www.openldap.org\/<\/a><\/p>\n<p>&nbsp;<\/p>\n<h2>Setup<\/h2>\n<table class=\"zsteps\" border=\"0\">\n<tbody>\n<tr>\n<td>1.<\/td>\n<td>Download OpenLDAP for Windows, I used:&nbsp;<\/p>\n<p style=\"padding-left: 30px;\">OpenLDAP 2.4.34<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>2.<\/td>\n<td>Run the installer and accept all the defaults. This will install both the VC++ runtime and MIT Kerberos for Windows:&nbsp;<\/p>\n<p style=\"text-align: center;\"><a  href=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2013\/07\/LDAP2013V1.gif\" class=\"thickbox no_icon\" title=\"OpenLDAP for Windows\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter  wp-image-1317\" alt=\"OpenLDAP for Windows\" src=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2013\/07\/LDAP2013V1.gif\" width=\"366\" height=\"246\" \/><\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>3.<\/td>\n<td>The default installs the following:&nbsp;<\/p>\n<p style=\"text-align: center;\"><a  href=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2013\/07\/LDAP2013V2.gif\" class=\"thickbox no_icon\" title=\"OpenLDAP for Windows\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter  wp-image-1318\" alt=\"OpenLDAP for Windows\" src=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2013\/07\/LDAP2013V2.gif\" width=\"366\" height=\"246\" \/><\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>4.<\/td>\n<td>One of the things that frustrated me is that it installs MIT Kerberos which is fine except the default behavior is to popup each day to remind you the certificates are expiring. It does appear these are renewed automatically so I really don&#8217;t need to see the popup all the time.After OpenLDAP is installed I suggest yo open &#8220;MIT Kerberos Ticket Manager&#8221;, you will find it under &#8220;Programs | Kerberos For Windows (32bit)&#8221;. This is done through the &#8220;Options&#8221; tab:&nbsp;<\/p>\n<p style=\"text-align: center;\"><a  href=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2013\/07\/LDAP2013V4.gif\" class=\"thickbox no_icon\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter  wp-image-1326\" alt=\"\" src=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2013\/07\/LDAP2013V4.gif\" width=\"355\" height=\"149\" \/><\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>5.<\/td>\n<td>Open a DOS box in the root directory of OpenLDAP and run the following:<\/p>\n<pre class=\"crayon:false;\">ClientTools\\ldapmodify.exe -a -x -D \"cn=Manager,dc=maxcrc,dc=com\" -w\u00a0 &lt;mypassword&gt; -f maxcrc.ldif<\/pre>\n<ul>\n<li>Obviously you would change &#8220;&lt;mypassword&gt;&#8221; to the password you set when you installed OpenLDAP.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Start over<\/h2>\n<p>Should you find you stuffed it all up and want to reset the database just stop the &#8220;OpenLDAP Service&#8221; Windows service. then delete all the files in the &#8220;\\data&#8221; subdirectory of OpenLDAP and your database is back to scratch.<\/p>\n<p>If you want to understand what the bind user is just look at &#8220;slapd.conf&#8221; in the root of the OpenLDAP root directory and look for:<\/p>\n<p style=\"padding-left: 30px;\">rootdn\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0&#8220;cn=Manager,dc=maxcrc,dc=com&#8221;<\/p>\n<h2>\u00a0Custom Setups<\/h2>\n<p>I won&#8217;t go into detail but suffice to say you can setup OpenLDAP to have any default root you want and any default binddn by editing slapd.conf and deleting the database as described above. So you don&#8217;t have to use the domain &#8220;<em>maxcrc.com<\/em>&#8221; !<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a very simple article to keep small bits of info about installing OpenLDAP for Windows. I am using the version available from UserBooster as it seemed to work quite well for me. Resources OpenLDAP for Windows from UserBooster http:\/\/userbooster.de\/en\/download\/openldap-for-windows.aspx The licensing for OpenLDAP for Windows from UserBooster states: &#8220;OpenLDAP for Windows is free [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":1329,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[135],"tags":[],"class_list":["post-1315","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software-general"],"_links":{"self":[{"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=\/wp\/v2\/posts\/1315","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1315"}],"version-history":[{"count":16,"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=\/wp\/v2\/posts\/1315\/revisions"}],"predecessor-version":[{"id":1643,"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=\/wp\/v2\/posts\/1315\/revisions\/1643"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=\/wp\/v2\/media\/1329"}],"wp:attachment":[{"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1315"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1315"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1315"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}