<?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>gHacks Technology News &#124; Latest Tech News, Software And Tutorials &#187; LDAP</title> <atom:link href="http://www.ghacks.net/tag/ldap/feed/" rel="self" type="application/rss+xml" /><link>http://www.ghacks.net</link> <description>A technology news blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description> <lastBuildDate>Sat, 11 Feb 2012 09:52:46 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/> <item><title>Modify LDAP entries with the ldapmodify command</title><link>http://www.ghacks.net/2010/09/03/modify-ldap-entries-with-the-ldapmodify-command/</link> <comments>http://www.ghacks.net/2010/09/03/modify-ldap-entries-with-the-ldapmodify-command/#comments</comments> <pubDate>Fri, 03 Sep 2010 14:55:07 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Networks]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tutorials Advanced]]></category> <category><![CDATA[Directory Server]]></category> <category><![CDATA[LDAP]]></category> <category><![CDATA[ldapsearch]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=33881</guid> <description><![CDATA[Recently I&#8217;ve done a number of articles covering the Lightweight Directory Access Protocol (LDAP) which range from installation, adding entries, to full-blown GUI management tools (See LDAP content on Ghacks for more information). If you&#8217;re in the dark about LDAP is an application protocol that allows the querying and modifying of directory services data implemented on IP networks. Basically [...]]]></description> <content:encoded><![CDATA[<p>Recently I&#8217;ve done a number of articles covering the Lightweight Directory Access Protocol (LDAP) which range from installation, adding entries, to full-blown GUI management tools (See <a
title="LDAP on Ghacks" href="http://www.ghacks.net/index.php?s=LDAP" target="_blank">LDAP content on Ghacks</a> for more information). If you&#8217;re in the dark about LDAP is an application protocol that allows the querying and modifying of directory services data implemented on IP networks. Basically it&#8217;s a complex, large, directory of information of various forms that can be used for many, varied implementations (company addressbooks, application authentication, etc).</p><p>Once LDAP is installed you have, at your fingertips, plenty of tools to add, edit, and delete data on that server. One of those tools is critical to keeping data current. That tool is <em>ldapmodify. </em>In this article I am going to show you how to use this tool to modify an entry in an LDAP server.</p><p><span
id="more-33881"></span><strong>Command basics</strong></p><p>The ldapmodify command isn&#8217;t exactly like all other commands. Instead of just running a single command and being done with it, you issue the command, do you work, and then escape out of the command. The actual modification of the data doesn&#8217;t happen until you escape the command. The sequence goes like this:</p><ol><li>Issue the ldapmodify command (with appropriate options).</li><li>Inform ldapmodify what you are modifying.</li><li>Modify your data.</li><li>Escape with CTRL-d.</li><li>ldapmodify will make the changes.</li></ol><p>Yes, it does seem like a fairly complex process&#8230;and yes it is a complex, but a very necessary process.</p><p>Let&#8217;s take a look at the actual process. As an example I am going to modify the gecos entry of an already existing directory entry. The gecos entry is a general information field that can be used for just about anything). Let&#8217;s have some fun and change the gecos entry for user scooper and indicate that Sheldon Cooper is a Theoretical Physicist at Caltech University. We&#8217;ll assume the gecos entry only contains the information &#8220;Sheldon Cooper&#8221; and the LDAP server&#8217;s is on 192.168.1.10 and the full dc is wallen.local. Here is the actual process for this task:</p><p>Issue the command:</p><p><code>ldapmodify -h localhost -x -W -D "cn=admin,dc=wallen,dc=local"</code></p><p>It will now seem like the command is stuck. It&#8217;s actually just waiting for input. The input will look like this (hit Enter after each line):</p><p><code>dn: uid=scooper,ou=People,dc=wallen,dc=local<br
/> changetype: modify<br
/> replace: gecos<br
/> gecos: Theoretical Physicist, Caltech University</code></p><p>Once you have completed entering this text, hit Enter, and then hit CTRL-d to escape the command and then you should see something like:</p><p><code>modifying entry "uid=scooper,ou=People,dc=wallen,dc=local"</code></p><p>Now if you issue the ldapsearch command you will see the changes made. The ldapsearch command would look something like:</p><p><code>ldapsearch -x -b "dc=wallen,dc=local" -s sub "objectclass=*"</code></p><p>You should see Sheldon&#8217;s listing like this:</p><p><code># scooper, People, wallen.local<br
/> dn: uid=scooper,ou=People,dc=wallen,dc=local<br
/> uid: scooper<br
/> cn: Sheldon Cooper<br
/> objectClass: account<br
/> objectClass: posixAccount<br
/> objectClass: top<br
/> loginShell: /bin/bash<br
/> uidNumber: 500<br
/> gidNumber: 120<br
/> homeDirectory: /home/scooper<br
/> gecos: Theoretical Physicist Caltech University</code></p><p>You now have modified the entry. Of course you aren&#8217;t limited to the gecos entry. You can actually modify any entry you want using the same technique.</p><p><strong>Final thoughts</strong></p><p>Hopefully LDAP is getting easier and easier for you. You can now add and modify entries. We will keep digging and eventually you will have the LDAP basics mastered.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/09/03/modify-ldap-entries-with-the-ldapmodify-command/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Adding LDAP entries from the command line</title><link>http://www.ghacks.net/2010/09/02/adding-ldap-entries-from-the-command-line/</link> <comments>http://www.ghacks.net/2010/09/02/adding-ldap-entries-from-the-command-line/#comments</comments> <pubDate>Thu, 02 Sep 2010 11:39:17 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Networks]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tutorials Advanced]]></category> <category><![CDATA[Directory Server]]></category> <category><![CDATA[LDAP]]></category> <category><![CDATA[ldapadd]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=33848</guid> <description><![CDATA[Okay, so we&#8217;ve been dealing with LDAP a bit here on Ghacks, but mostly we&#8217;ve look at GUI tools (check out LDAP content on Ghacks). All of the GUI tools are good, but nothing beats the command line for pure control and power. And what&#8217;s best, once you have LDAP installed, you have all the [...]]]></description> <content:encoded><![CDATA[<p>Okay, so we&#8217;ve been dealing with LDAP a bit here on Ghacks, but mostly we&#8217;ve look at GUI tools (check out <a
title="LDAP on Ghacks" href="http://www.ghacks.net/index.php?s=LDAP" target="_blank">LDAP content on Ghacks</a>). All of the GUI tools are good, but nothing beats the command line for pure control and power. And what&#8217;s best, once you have LDAP installed, you have all the tools necessary to manage your LDAP data! There&#8217;s really no need for further installation.</p><p>So, yeah&#8230;LDAP comes with it&#8217;s own set of management tools and, in this article, we are going to take a look at the primary tool for adding entries to your LDAP databases: ldapadd.</p><p><span
id="more-33848"></span><strong>From file or command?<br
/> </strong>One of the best things about the ldapadd command is that you can have it read all of your entries from files. That way you don&#8217;t have to issue lengthy commands every time you want to add an entry. This also means you can add multiple entries at once. I will show you how to add entries this way so your LDAP administration life is much simpler. And from that process you should be able to glean enough to know the full command-line process.</p><p><strong>ldapadd </strong></p><p>When you see an ldapadd command for the first time, you might cringe, thinking it far too difficult to use. But once you understand the usage, it becomes quite easy. Now, you must have admin rights to issue the ldapadd command; so, depending up your distribution, you will either have to <em>su </em>to the root user or use <em>sudo</em> to issue the command.</p><p>The basic usage of the ldapadd command is:</p><p><em>ldapadd [OPTIONS] [CREDENTIALS] filename</em></p><p>Any file name you read into the ldapadd command should be in the form of an .ldif file. Now, let&#8217;s take a look at the more common options you will use with ldapadd:</p><ul><li>x: Use simple authentication, instead of SASL authentication.</li><li>D: This options means you are going to use the Distinguished Name (binddn) to bind to the LDAP directory.</li><li>W: Prompt for simple authentication.</li><li>f: The file name you want to read into ldapadd.</li></ul><p>Using the D option means you are going to be using a Distinguished Name. What this means is that you are going to authenticate in the form of:</p><p><code>cn=admin,dc=wallen,dc=local</code></p><p>The above entry means you are using the <strong>admin</strong> user on the domain <strong>wallen.local</strong>.</p><p>Now, let&#8217;s take a look at the format of the file you will use. Let&#8217;s examine a very basic entry. Let&#8217;s say I want to add the user Willow Wallen to my LDAP address book. I will do that within the file <strong>users.ldif</strong>. The entry looks like:</p><p><code># Willow's Entry<br
/> dn: cn=Willow Wallen,ou=people,dc=wallen,dc=local<br
/> cn: Willow Wallen<br
/> objectClass: person<br
/> sn: Wallen</code></p><p>This will add the user <strong>Willow Wallen</strong> to the group <strong>people </strong>and she will be labeled as a person. Save that file and now let&#8217;s add her with the command:</p><p><code>sudo ldapadd -x -D cn=admin,dc=wallen,dc=local -W -f users.ldif</code></p><p>You will have to enter both your sudo password and your ldap password.</p><p><strong>Final thoughts</strong></p><p>You have taken one major step forward in your usage of LDAP. This is a very powerful, very complex tool you have at your finger tips. It&#8217;s important to understand the basics and learn one step at a time. We&#8217;ll continue our journey into LDAP in upcoming articles.</p><p><strong><br
/> </strong></p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/09/02/adding-ldap-entries-from-the-command-line/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Set up your LDAP server on Ubuntu 10.04</title><link>http://www.ghacks.net/2010/08/31/set-up-your-ldap-server-on-ubuntu-10-04/</link> <comments>http://www.ghacks.net/2010/08/31/set-up-your-ldap-server-on-ubuntu-10-04/#comments</comments> <pubDate>Tue, 31 Aug 2010 11:14:20 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Networks]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tutorials Advanced]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[bash]]></category> <category><![CDATA[chmod]]></category> <category><![CDATA[Directory Server]]></category> <category><![CDATA[LDAP]]></category> <category><![CDATA[slapd]]></category> <category><![CDATA[ubuntu]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=33779</guid> <description><![CDATA[So lately I&#8217;ve been covering some pretty sweet LDAP tools. You&#8217;ve seen &#8220;Manage your LDAP data with phpLDAPAdmin&#8220;, &#8220;Access and manage your LDAP data with Luma&#8220;, and &#8220;Set up an LDAP server on Fedora&#8220;. Although the last entry showed you how to get a server up and running with the 389 Directory Server GUI, none [...]]]></description> <content:encoded><![CDATA[<p>So lately I&#8217;ve been covering some pretty sweet LDAP tools. You&#8217;ve seen &#8220;<a
title="Manage your data with phpLDAPadmin" href="http://www.ghacks.net/2010/08/30/manage-your-ldap-data-with-phpldapadmin/" target="_blank">Manage your LDAP data with phpLDAPAdmin</a>&#8220;, &#8220;<a
title="Access and manage your LDAP data with Luma" href="http://www.ghacks.net/2010/08/30/access-and-manage-your-ldap-data-with-luma/" target="_blank">Access and manage your LDAP data with Luma</a>&#8220;, and &#8220;<a
title="Set up an LDAP server on Fedora" href="http://www.ghacks.net/2010/08/25/set-up-an-ldap-server-on-fedora/" target="_blank">Set up an LDAP server on Fedora</a>&#8220;. Although the last entry showed you how to get a server up and running with the 389 Directory Server GUI, none of these articles have touched on the tried and true text-based installation and setup of the slapd LDAP server. And that is exactly what we are going to do here.</p><p>But here&#8217;s the thing &#8211; the slapd server can be a real pain to set up. It didn&#8217;t used to be. The old fashion way was to install slapd and then edit the <strong>/etc/ldap/slapd.conf</strong> file to suite your needs. Thing is, the slapd.conf configuration file has been deprecated and now, trying to figure out how to configure slapd is like finding the proverbial needle in the proverbial haystack. Fortunately, in my desperate scouring to work out an easy method of doing this, I have found some tools to make the job easier. And that&#8217;s what this article is all about, getting slapd up and running on a Ubuntu machine so you too can have LDAP running.</p><p><span
id="more-33779"></span><strong>Installation</strong></p><p>Of course there is a bit of installation to take care of before you do anything. But the installation isn&#8217;t challenging and there isn&#8217;t too much to install. Here are the steps you need to follow:</p><ol><li>Open up a terminal window.</li><li>Issue the command <code>sudo apt-get install slapd ldap-utils php5-ldap</code>.</li><li>Type your sudo password and hit Enter.</li><li>Accept any dependencies necessary.</li></ol><p>And that&#8217;s it. You are now ready for the configuration of slapd. But what to do? This article isn&#8217;t about a fancy GUI tool. Instead I have found a script floating around the web (who&#8217;s author I can not name because I have seen this script on a number of sites) which actually makes this process amazingly easy. I have posted the script <a
title="script" href="http://pastebin.com/qGk9CzQ9" target="_blank">here on pastebin</a> for you to either download or copy and paste.</p><p>No matter if you download or copy and paste the script, name it something like <em>ldap_script.sh</em> and save it in your home directory. Once you have it saved give it executable permissions with the command:</p><p><code>chmod u+x ldap_script</code></p><p>Now the script is almost ready. You do have to make a few simple changes. Near the top of the script you will see:</p><p><code>passwd=pleaseeditme<br
/> dc1=pleaseeditme<br
/> dc2=pleaseeditme</code></p><p>Obviously you need to change each <em>pleaseeditme</em> entry to suit your needs. For my LDAP server that section lookes like:</p><p><code>passwd=mypassword<br
/> dc1=wallen<br
/> cd2=local</code></p><p>You will also notice, near the end of the script, it adds a user. The section<em> #Adding user </em>can be edited to suit your needs, or it can be left alone so that at least one correct user is added at first.</p><p>When you have the script ready, it&#8217;s time to execute. Issue the command <em>sudo ./ldap_script</em> and watch the magic fly by. When all is said and done you should then be able to check out your LDAP server with one of the means mentioned in previous articles, or you can issue the command:</p><p><code>﻿ldapsearch -x -h localhost -b "dc=EXAMPLE,dc=COM" "(objectClass=*)"</code></p><p>Where EXAMPLE and COM match your dc entires.</p><p><strong>Final thoughts</strong></p><p>You should now have your LDAP server up and running. You can start adding entries and managing it with whatever tool (or command line) you want. NOTE: We&#8217;ll take a look at the management of LDAP via the command line in later articles. Enjoy your LDAP server!</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/08/31/set-up-your-ldap-server-on-ubuntu-10-04/feed/</wfw:commentRss> <slash:comments>8</slash:comments> </item> <item><title>Manage your LDAP data with phpLDAPadmin</title><link>http://www.ghacks.net/2010/08/30/manage-your-ldap-data-with-phpldapadmin/</link> <comments>http://www.ghacks.net/2010/08/30/manage-your-ldap-data-with-phpldapadmin/#comments</comments> <pubDate>Mon, 30 Aug 2010 11:07:09 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Networks]]></category> <category><![CDATA[Online Services]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[apache]]></category> <category><![CDATA[Fedora]]></category> <category><![CDATA[LDAP]]></category> <category><![CDATA[LDAP management]]></category> <category><![CDATA[LDAP server]]></category> <category><![CDATA[php5]]></category> <category><![CDATA[phpmyadmin]]></category> <category><![CDATA[ubuntu]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=33752</guid> <description><![CDATA[The search for the perfect LDAP management tool has brought me around to a tool that is very similar to that of phpMyAdmin (for coverage of this tool, see my article &#8220;Install phpmyadmin for easy MySQL administration&#8220;). Both of these tools are web-based administration tools for tasks that many find too complex to do via [...]]]></description> <content:encoded><![CDATA[<p>The search for the perfect LDAP management tool has brought me around to a tool that is very similar to that of <a
title="phpLDAPAdmin" href="http://phpldapadmin.sourceforge.net/wiki/index.php/Main_Page" target="_blank">phpMyAdmin</a> (for coverage of this tool, see my article &#8220;<a
title="Install phpmyadmin for easy MySQL administration" href="http://www.ghacks.net/2008/12/20/install-phpmyadmin-for-easy-mysql-administration/" target="_blank">Install phpmyadmin for easy MySQL administration</a>&#8220;). Both of these tools are web-based administration tools for tasks that many find too complex to do via command line.</p><p>Naturally, what is nice about phpldapadmin is that it allows you to manage your LDAP server from anywhere you have access to a browser (so long as your LDAP server can be reached form anywhere. In this article I am going to show you how to install, configure, and begin to use the phpldapadmin tool.</p><p><span
id="more-33752"></span><strong>Installation</strong></p><p>Before you install phpLDAPAdmin (also known as PLA), you will need to have your LDAP server up and running. Once that is achieved you can then proceed with your installation of this management tool. You will also need to have a web server installed and running (it is a web-based tool after all).  If you do not already have <em>php5-ldap </em>installed, install that package now.</p><p>The first step for installation is to download the <a
title="phpLDAPAdmin source" href="http://sourceforge.net/projects/phpldapadmin/files/" target="_blank">source from Sourceforge</a>. You can install from a pre-compiled binary, but I recommend you do the installation from source.</p><p>Once you have the .tgz file downloaded move that file to your web servers&#8217; document root. In Fedora this will be <strong>/var/www/html</strong> and in Ubuntu this will be <strong>/var/www</strong>. The next step is to unpack the tar file and then rename the newly created directory. You will need administrative privileges for these tasks. Follow these steps:</p><ol><li>Open up a terminal window.</li><li>Change to your document root.</li><li>Su to root (if using Fedora or a Fedora-like distribution).</li><li>Issue the command <em>tar xvfz phpldapadmin-XXX.tgz</em> (If using a Ubuntu-like distribution you will have to add <em>sudo </em>to the beginning of that command) Where XXX is the release number.</li><li>Rename the directory with the command <em>mv phpldapadmin-XXX phpldapadmin </em>(If using Ubu﻿ntu-like distribution you will have to add <em>sudo </em>to the beginning of that command) Where XXX is the release number.</li><li>Change into the phpldapadmin/config and rename the config file with the command <em>mv config.php.sample config.php</em> (If using Ubu﻿ntu-like distribution you will have to add <em>sudo </em>to the beginning of that command).</li></ol><p><a
href="http://www.ghacks.net/wp-content/uploads/2010/08/phpldapadmin.png"><img
class="alignleft size-full wp-image-33753" style="margin-left: 5px;margin-right: 5px" src="http://www.ghacks.net/wp-content/uploads/2010/08/phpldapadmin.png" alt="" width="401" height="180" /></a>Now it&#8217;s time to fire up your web browser and head to your installation. Point your browser to <em>http://ADDRESS_TO_SERVER/phpldapadmin/</em> and you will see a page similar to that in Figure 1.</p><p>The first thing you need to do is click on the Login link (in the left navigation tree). The credentials you need will be those that were created to administer your LDAP server. But don&#8217;t think you can just log in with a username of &#8220;admin&#8221; and a password. You have to use the standard format of LDAP. So a typical administrator login username will look like <em>cn=admin,dc=wallen,dc=local</em>.</p><p><a
href="http://www.ghacks.net/wp-content/uploads/2010/08/phpldapadmin_login.png"><img
class="alignright size-full wp-image-33754" src="http://www.ghacks.net/wp-content/uploads/2010/08/phpldapadmin_login.png" alt="" width="410" height="231" /></a>Once you have logged in, the main page will look like that shown in Figure 2. Expand the navigation tree on the left nav and you can see where you can start creating new entries.</p><p><strong>Final thoughts</strong></p><p>You are now ready to rock your LDAP server from anywhere you can access a web browser. The phpLDAPAdmin tool makes LDAP as easy as phpMyAdmin makes MySQL. This is one of the best LDAP admin tools you will find.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/08/30/manage-your-ldap-data-with-phpldapadmin/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Access and manage your LDAP data with Luma</title><link>http://www.ghacks.net/2010/08/30/access-and-manage-your-ldap-data-with-luma/</link> <comments>http://www.ghacks.net/2010/08/30/access-and-manage-your-ldap-data-with-luma/#comments</comments> <pubDate>Sun, 29 Aug 2010 23:39:07 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Networks]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[Tutorials Advanced]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[Fedora]]></category> <category><![CDATA[LDAP]]></category> <category><![CDATA[LDAP server]]></category> <category><![CDATA[Luma]]></category> <category><![CDATA[slapd]]></category> <category><![CDATA[ubuntu]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=33735</guid> <description><![CDATA[I have recently been dealing with LDAP and attempting to find easier solutions for this often daunting task. If you&#8217;ve ever had to try to set up and manage an LDAP server, you know exactly what I am talking about. Although installing and setting up an LDAP server is a challenging task, even more so [...]]]></description> <content:encoded><![CDATA[<p>I have recently been dealing with LDAP and attempting to find easier solutions for this often daunting task. If you&#8217;ve ever had to try to set up and manage an LDAP server, you know exactly what I am talking about. Although installing and setting up an LDAP server is a challenging task, even more so is working with the data. Having to add users and manage your scheme from the command line is enough to send most administrators packing.</p><p>That is, until I discovered a very handy little tool, just for this purpose, called Luma. Luma is an LDAP manager that is pure graphical ease. If you already have your LDAP server up and running, you won&#8217;t have any problem managing your data with this tool. In this article I am going to show you how to install Luma and how to connect to your LDAP server.</p><p><span
id="more-33735"></span><strong>Installation</strong></p><p>I&#8217;m going to show you how to install Luma on both Ubuntu and Fedora. It&#8217;s actually quite simple. Just follow these steps:</p><p><em>Fedora</em></p><ol><li>Open up a terminal window.</li><li>Su to the root user.</li><li>Issue the command <em>yum install luma.</em></li><li>Okay any dependencies (if necessary).</li><li>Once installation is complete, you can close the terminal.</li></ol><p><em>Ubuntu</em></p><ol><li>Open up a terminal window.</li><li>Issue the command <em>sudo apt-get install luma.</em></li><li>Enter your sudo (user) password.</li><li>Okay any dependencies (if necessary).</li><li>Once the installation is complete, you can close the terminal.</li></ol><p>Now that you have Luma installed, let&#8217;s open it up and connect to a server.</p><p><strong>Usage</strong></p><div
id="attachment_33737" class="wp-caption alignleft" style="width: 310px"><a
href="http://www.ghacks.net/wp-content/uploads/2010/08/luma_main.png"><img
class="size-medium wp-image-33737 " src="http://www.ghacks.net/wp-content/uploads/2010/08/luma_main-500x460.png" alt="" width="300" height="276" /></a><p
class="wp-caption-text">Figure 1</p></div><p>To start up Luma you will not find a menu entry, so you will have to run Luma from command line (or create a menu entry). To do this click Alt-F and then enter <em>luma</em> in the run dialog. Or you can leave that terminal window open and then just issue the command<em> </em>from within there.</p><p>Once started you will see a simple window (see Figure 1) where you can choose from any one of the available plugins. In order to add a server you need to click <strong>Settings &gt; Edit Server List</strong>. From this window click the Add button to create a new server.</p><p>The first step is to give this new server a name. This is a human readable name so it does not need to be a hostname or IP address.  After you create a name click OK to move on to the real work.</p><div
id="attachment_33738" class="wp-caption alignright" style="width: 310px"><a
href="http://www.ghacks.net/wp-content/uploads/2010/08/luma_server_settings.png"><img
class="size-medium wp-image-33738 " src="http://www.ghacks.net/wp-content/uploads/2010/08/luma_server_settings-500x360.png" alt="" width="300" height="216" /></a><p
class="wp-caption-text">Figure 2</p></div><p>Once you have created the server you have three configurations to take care of (see Figure 2):</p><ul><li>Network options: Hostname, Port, Encryption type.</li><li>Authentication: Mechanism for authentication (simple, or SASL type), Bind as (login authentication), and Password.</li><li>LDAP options: Follow aliases and/or Use Base DNs provided by the server.</li></ul><p>The trickiest option for most is going to be the Authentication &#8220;Bind as&#8221; setting. You do not just log in with a plain username. Instead (as you can see in Figure 2), you log in with username and domain in the form of <em>cn=USERNAME,dc=DOMAIN, dc=NAME</em>. In the case of my example it&#8217;s <em>cn=admin,dc=wallen,dc=local</em>.</p><div
id="attachment_33739" class="wp-caption alignleft" style="width: 310px"><a
href="http://www.ghacks.net/wp-content/uploads/2010/08/luma_browse.png"><img
class="size-medium wp-image-33739 " src="http://www.ghacks.net/wp-content/uploads/2010/08/luma_browse-500x460.png" alt="" width="300" height="276" /></a><p
class="wp-caption-text">Figure 3</p></div><p>Once you have logged in you can then use the plugins like Browse (see Figure 3). This examples illustrates how you can manage the various aspects of your LDAP entries.</p><p><strong>Final thoughts</strong></p><p>In upcoming articles we will deal with more LDAP administration with Luma as it is, by far, one of the easiest front ends for the LDAP server I have come across.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/08/30/access-and-manage-your-ldap-data-with-luma/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Set up an LDAP server on Fedora</title><link>http://www.ghacks.net/2010/08/25/set-up-an-ldap-server-on-fedora/</link> <comments>http://www.ghacks.net/2010/08/25/set-up-an-ldap-server-on-fedora/#comments</comments> <pubDate>Wed, 25 Aug 2010 11:10:13 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Networks]]></category> <category><![CDATA[Online Services]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tutorials Advanced]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[Directory Server]]></category> <category><![CDATA[Fedora]]></category> <category><![CDATA[LDAP]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=33577</guid> <description><![CDATA[LDAP (Lightweight Directory Access Protocol) is one of the more complicated setups for a Linux machine. LDAP is to Linux what Active Directory is to Window. And if you have a lot of users on a network, which log into various machines, you will want something like LDAP in order to retain all of their [...]]]></description> <content:encoded><![CDATA[<p>LDAP (Lightweight Directory Access Protocol) is one of the more complicated setups for a Linux machine. LDAP is to Linux what Active Directory is to Window. And if you have a lot of users on a network, which log into various machines, you will want something like LDAP in order to retain all of their information on a single, stored location.</p><p>But because LDAP is fairly complex, it is not often used except by those who have the lengthy period of time it takes to understand the task of getting an LDAP server up and running. That doesn&#8217;t need to be the case, if you happen to have a Fedora server lying around. There is a tool, <a
title="389 Directory Server" href="http://directory.fedoraproject.org/" target="_blank">389 Directory Server</a>, that helps you to get this up and running quickly and easily.  In this article I am going to show you how to install and set up the 389 Directory Server.</p><p><span
id="more-33577"></span><strong>Installation</strong></p><p>The installation of 389 DS is simple. Just follow these steps:</p><ol><li>Open up a terminal window.</li><li>Su to the root user.</li><li>Issue the command <em>yum install fedora-ds</em>.</li><li>Accept all of the dependencies.</li><li>Wait for the installation to finish.</li></ol><p>Now you are ready to begin. The configuration of 389 is done via command line. Once that is complete you can then manage your LDAP server with a nice GUI tool.</p><p><strong>Configuration</strong></p><div
id="attachment_33578" class="wp-caption alignleft" style="width: 510px"><a
href="http://www.ghacks.net/wp-content/uploads/2010/08/setup_7.png"><img
class="size-medium wp-image-33578" src="http://www.ghacks.net/wp-content/uploads/2010/08/setup_7-500x348.png" alt="" width="500" height="348" /></a><p
class="wp-caption-text">Figure 1</p></div><p>The configuration takes place in the terminal window. To begin the process issue the command (as root)<em> setup-ds-admin.pl. </em>This will begin a process that will take about 14 steps. Each step looks similar to that in Figure 1.</p><p>The steps for the setup are:</p><p>1. Agree to license.</p><p>2. Set up warning alert.</p><p>3. Choose type of installation.</p><p>4. Configure fully qualified domain name for name.</p><p>5. Server user name.</p><p>6. Do you want to register this software with an existing configuration directory server?</p><p>7. Administrator ID.</p><p>8. Administration domain.</p><p>9. Server network port.</p><p>10. Directory server identifier (name).</p><p>11. Valid DN for your directory suffix.</p><p>12. Directory Manager DN.</p><p>13. Administration network port.</p><p>14. Save configuration and set up server.</p><p>The final step is basically writing your configurations to the config script and then starting the server. Once you have completed these steps, the hard part is over! Don&#8217;t worry about not understanding any of the above explanations, as each step is clearly explained on its own screen (as shown in Figure 1).</p><p>Now that your setup is complete, you are ready to fire up the GUI admin tool.</p><p><strong>The admin tool</strong></p><div
id="attachment_33579" class="wp-caption alignright" style="width: 280px"><a
href="http://www.ghacks.net/wp-content/uploads/2010/08/admin_login.png"><img
class="size-full wp-image-33579 " src="http://www.ghacks.net/wp-content/uploads/2010/08/admin_login.png" alt="" width="270" height="201" /></a><p
class="wp-caption-text">Figure 2</p></div><p>The administration tool is started (as the root user) with the command <em>389-console</em>. When you login to the admin tool you will need to use your admin username and password you created during the setup and the URL (including port number) you created (see Figure 2).</p><div
id="attachment_33580" class="wp-caption alignleft" style="width: 310px"><a
href="http://www.ghacks.net/wp-content/uploads/2010/08/management_console.png"><img
class="size-medium wp-image-33580 " src="http://www.ghacks.net/wp-content/uploads/2010/08/management_console-500x353.png" alt="" width="300" height="212" /></a><p
class="wp-caption-text">Figure 3</p></div><p>Once you have successfully logged in you will now be in the 389 Directory Server Management Console (see Figure 3). It is from within this console that you actually take care of all of the LDAP management (we&#8217;ll save that for another article).</p><p><strong>Final thoughts</strong></p><p>If you&#8217;ve ever tried to set up LDAP manually then you know it can be a real pain. With tools like 389 Directory Server, this process has become exponentially easier. Give this a try and see if you have better luck setting up your LDAP server.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/08/25/set-up-an-ldap-server-on-fedora/feed/</wfw:commentRss> <slash:comments>6</slash:comments> </item> <item><title>Manage your Active Directory from Linux with adtool</title><link>http://www.ghacks.net/2009/08/02/manage-your-active-directory-from-linux-with-adtool/</link> <comments>http://www.ghacks.net/2009/08/02/manage-your-active-directory-from-linux-with-adtool/#comments</comments> <pubDate>Sun, 02 Aug 2009 14:30:28 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Networks]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Security]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[active directory]]></category> <category><![CDATA[LDAP]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=14980</guid> <description><![CDATA[Active Directory is one of those Microsoft tools that so many have no choice but to use. Although I much prefer LDAP because it is so much easier to set up and manage. But for much of the enterprise world Active Directory is the tool used. Does this mean you are locked into managing Active [...]]]></description> <content:encoded><![CDATA[<p>Active Directory is one of those Microsoft tools that so many have no choice but to use. Although I much prefer LDAP because it is so much easier to set up and manage. But for much of the enterprise world Active Directory is the tool used. Does this mean you are locked into managing Active Directory from a Windows machine? No. If you are a creature of the command line you can manage your AD from the Linux command line. It&#8217;s not that difficult and, in the end, will give you many more options to keep your AD server managed.</p><p>Of course it is not just a matter of working on the Linux end of things. There is one issue to settle on the MS end. You have to activate Secure LDAP on your AD Server. This process goes beyond the scope of this article, but the steps are pretty clear.</p><p><span
id="more-14980"></span><strong>Enable SLDAP</strong></p><p>Here are the steps to enable Secure LDAP on your Windows 2003 AD server (I will leave out the details):</p><ol><li>Create an Active Directory domain controller certificate request.</li><li>Create a Certification Authority.</li><li>Sign the certificate request by the Certification Authority.</li><li>Export the root certificate Certification Authority.</li><li>Import the root certificate Certification Authority onto the Domain Controller.</li><li>Import the LDAP Server certificate onto the Domain Controller.</li><li>Set up the UMRA (LDAP Client) computer.</li><li>Verify Secure LDAPS using SSL.</li></ol><p><strong>Installing adtool</strong></p><p>Fortunately adtool will be found in your distributions&#8217; repositories. So all you have to do is follow these steps:</p><ol><li>Fire up Synaptic (or whichever Add/Remove Software utility you use).</li><li>Do a search for &#8220;adtool&#8221; (no quotes).</li><li>Mark the results for installation.</li><li>Click Apply to install.</li><li>Close Synaptic.</li></ol><p><strong>Configuring adtool</strong></p><p>This is a bit of configuration you need to handle before you can use adtool on your AD server. First create the file (if it doesn&#8217;t exist) <strong>/etc/adtool.cfg </strong>and add the following contents:</p><p><code>uri ldaps://YOUR.DOMAIN.HERE<br
/> binddn cn=Administrator,cn=Users,dc=domain,dc=tld<br
/> bindpw $PASSWORD<br
/> searchbase dc=domain,dc=tld</code></p><p>Where YOUR.DOMAIN.HERE is the actual address to your Active Directory server.</p><p>Where PASSWORD is the password for the AD user that has proper permissions to manage the AD server.</p><p>You will also need to make sure the following is in your <strong>/etc/ldap/ldap.conf </strong>file:</p><p><code>BASE    dc=YOUR,dc=DOMAIN,dc=HERE<br
/> URI     ldaps://YOUR.DOMAIN.HERE<br
/> TLS_REQCERT allow</code></p><p>Without the above configuration you will not be able to accept the SSL certificates from the server.</p><p><strong>Basic usage</strong></p><p>The basic usage of the adtool command is simple. Of course you will have to understand Active Directory in order to really understand the usage of this tool. Below I will give you samples of commands to handle the basic tasks for AD. Any information in ALL CAPS would be altered to fit your needs.</p><p>Create a new organizational unit:</p><p><code>adtool oucreate ORGANIZATION NAME ou=user,dc=DOMAIN,dc=COM</code></p><p>Add a user:</p><p><code>adtool useradd USER ou=ORGANIZATION ou=user,cd=DOMAIN,dc=COM</code></p><p>Set a user password:</p><p><code>adtool setpass USER PASSWORD</code></p><p>Unlock a user:</p><p><code>adtool unlock USER</code></p><p>Create a group</p><p><code>adtool groupcreate GROUP ou=user,cd=DOMAIN,dc=COM</code></p><p>Add a user to a group:</p><p><code>adtool groupadd allusers USER</code></p><p>Add an email address for the user:</p><p><code>adtool attributereplace USER mail EMAIL@ADDRESS</code></p><p><strong>Final thoughts</strong></p><p>We&#8217;ve only really scratched the surface of this powerful tool. But from this you should be able to see how easy adtool can be as well as how helpful it is.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/08/02/manage-your-active-directory-from-linux-with-adtool/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> </channel> </rss>
