Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to Install LDAP Account Manager on Ubuntu Server 18.04

#1
How to Install LDAP Account Manager on Ubuntu Server 18.04

<div style="margin: 5px 5% 10px 5%;"><img src="http://www.sickgaming.net/blog/wp-content/uploads/2019/03/how-to-install-ldap-account-manager-on-ubuntu-server-18-04.jpg" width="1920" height="955" title="" alt="" /></div><div><div><img src="http://www.sickgaming.net/blog/wp-content/uploads/2019/03/how-to-install-ldap-account-manager-on-ubuntu-server-18-04.jpg" class="ff-og-image-inserted"></div>
<p>Welcome back to this three-party journey to getting OpenLDAP up and running so that you can authenticate your Linux desktop machines to the LDAP server. In <a href="https://www.linux.com/blog/2019/3/how-install-openldap-ubuntu-server-1804">part one</a>, we installed OpenLDAP on Ubuntu Server 18.04 and added our first LDAP entries to the directory tree via the Command Line Interface (CLI). </p>
<p>The process of manually adding data can be cumbersome and isn’t for everyone. If you have staff members that work better with a handy GUI tool, you’re in luck, as there is a very solid web-based tool that makes entering new users a snap. That tool is the <a href="https://www.ldap-account-manager.org/lamcms/">LDAP Account Manager (LAM)</a>. </p>
<p>LAM features:</p>
<ul>
<li>
<p>Support for 2-factor authentication</p>
</li>
<li>
<p>Schema and LDAP browser</p>
</li>
<li>
<p>Support for multiple LDAP servers</p>
</li>
<li>
<p>Support for account creation profiles</p>
</li>
<li>
<p>File system quotas</p>
</li>
<li>
<p>CSV file upload</p>
</li>
<li>
<p>Automatic creation/deletion of home directories</p>
</li>
<li>
<p>PDF output for all accounts</p>
</li>
<li>
<p>And much more</p>
</li>
</ul>
<p>We’ll be installing LAM on the same server we installed OpenLDAP, so make sure you’ve walked through the process from <a href="https://www.linux.com/blog/2019/3/how-install-openldap-ubuntu-server-1804">the previous article</a>. With that taken care of, let’s get LAM up and running, so you can more easily add users to your LDAP directory tree.</p>
<h3>Installation</h3>
<p>Fortunately, LAM is found in the standard Ubuntu repository, so installation is as simple as opening a terminal window and issuing the command:</p>
<pre>
sudo apt-get install ldap-account-manager -y</pre>
<p>When the installation finishes, you can then limit connections to LAM to local IP addresses only (if needed), by opening a specific .conf file with the command:</p>
<pre>
sudo nano /etc/apache2/conf-enabled/ldap-account-manager.conf</pre>
<p>In that file, look for the line:</p>
<pre>
Require all granted</pre>
<p>Comment that line out (add a # character at the beginning of the line) and add the following entry below it:</p>
<pre>
Require ip 192.168.1.0/24</pre>
<p>Make sure to substitute your network IP address scheme in place of the one above (should yours differ). Save and close that file, and restart the Apache web server with the command:</p>
<pre>
sudo systemctl restart apache2</pre>
<p>You are now ready to access the LAM web interface.</p>
<h3>Opening LAM</h3>
<p>Point your web browser to http://SERVER_IP/lam (where SERVER_IP is the IP address of the server hosting LAM). In the resulting screen (Figure 1), click LAM configuration in the upper right corner of the window.</p>
<p>In the resulting window, click Edit server profiles (Figure 2).</p>
<p>You will be prompted for the default profile password, so type lam and click OK. You will then be presented with the Server settings page (Figure 3).</p>
<p>In the Server Settings section, enter the IP address of your LDAP server. Since we’re installing LAM on the same server as OpenLDAP, we’ll leave the default. If your OpenLDAP and LAM servers are not on the same machine, make sure to enter the correct IP address for the OpenLDAP server here. In the Tree suffix entry, add the domain components of your OpenLDAP server in the form dc=example,dc=com.</p>
<p>Next, take care of the following configurations:</p>
<p>In the Security settings section (Figure 4), configure the list of valid users in the form cn=admin,dc=example,dc=com (make sure to use your LDAP admin user and domain components).</p>
<p>In the Account Types tab (Figure 5), configure the Active account types LDAP options. First, configure the LDAP suffix, which will be in the form ou=group,dc=example,dc=com. This is the suffix of the LDAP tree from where you will search for entries. Only entries in this subtree will be displayed in the account list. In other words, use the group attribute if you have created a group on your OpenLDAP server that all of your users (who will be authenticating against the LDAP directory tree) will be a member of. For example, if all of your users who will be allowed to log in on desktops machines are part of the group login, use that.</p>
<p>Next, configure the List attributes. These are the attributes that will be displayed in the account list, and are predefined values, such as #uid, #givenName, #sn, #uidNumber, etc. Fill out both the LDAP suffix and List attributes for both Users and groups.</p>
<p>After configuring both users and groups, click Save. This will also log you out of the Server profile manager and take you back to the login screen. You can now log into LAM using your LDAP server admin credentials. Select the user from the User name drop-down, type your LDAP admin password, and click Login. This will take you to the LAM Users tab (Figure 6), where you can start adding new users to the LDAP directory tree.</p>
<p>Click New User and the New User window will open (Figure 7), where you can fill in the necessary blanks.</p>
<p>Make sure to click Set password, so you can create a password for the new user (otherwise the user won’t be able to log into their account). Also make sure to click on the Unix tab, where you can set the username, home directory, primary group, login shell, and more. Once you’ve entered the necessary information for the user, click Save and the user account can then be found in the LDAP directory tree.</p>
<h3>Welcome to Simpler User Creation</h3>
<p>The LDAP Account Manager makes working with OpenLDAP exponentially easier. Without using this tool, you’ll spend more time entering users to the LDAP tree than you probably would like. The last thing you need is to take more time than necessary out of your busy admin day to create and manage users in your LDAP tree via command line.</p>
<p>In the next (and final entry) in this three-part series, I will walk you through the process of configuring a Linux desktop machine, such that it can authenticate against the OpenLDAP server.</p>
</div>
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB Theme © iAndrew 2016