Lab #7 - Webmin Configuration of LDAP/BIND/Postfix

Lab Steps:


Installation of Webmin I. Edit /etc/selinux/config and change SELINUX=enforcing to SELINUX=disabled II. Execute echo “0” > /selinux/enforce to disable it immediately. III. Install perl-Net-SSLeay & perl-LDAP using yum before proceeding. IV. Find the RPM installation file of Webmin from and install using rpm. V. Edit your /etc/sysconfig/iptables configuration file to allow Webmin and restart iptables. VI. Using your host machineʼs web browser, go to https://<your VM IP>:10000 and login as root.

II. Using Webmin to Add a User in LDAP I. Inside of Webmin, go to System > LDAP Users & Groups II. You will receive an error initially. Click the Module Config link at the top of the page. I. Set “LDAP server host” to II. Set “LDAP server port” to 389 III. Configure “Bind to LDAP server as” to “cn=Admin,dc=testing”. IV. Enable and configure the field for “Credentials for bind name above” to linuxlab V. Configure ou=people,dc=testing and ou=Group,dc=testing for ʻBasesʼ respectively VI. Save the configuration. You should now see a list of LDAP users. III. Click “Add a new LDAP user” I. Set “Username” to testing_user II. Set “Real name” to Testing User III. Set “Shell” to /bin/bash IV. For password, set to “Normal password” and make it linuxlab V. Set “Primary group” to testing_group VI. Leave all others defaults and click Create. IV. Log into a different virtual terminal and authenticate as your new user. III. Installation & Configuration of BIND Local DNS Resolver A. Install bind and bind-utils using yum B. Configure the named service to automatically start on boot. C. Log into Webmin if you already arenʼt and click Refresh Modules from the sidebar. D. Go to Servers > BIND DNS Server You will be prompted to create an /etc/named.conf and configure it as the first option, “Setup nameserver for internal non-internet use only”. E. Click on the Create master zone link towards the bottom of the DNS configuration page. 1. Set the “Domain name / Network” to mynet 2. Set the “Master server” to localhost 3. Set the “Email address” to your my.emich address 4. Leave the other options set to default and click Create. II. Configure mynet Network DNS Resolution A. Click the Address button on the top left of the “Edit Master Zone” page you should be on. B. Create an address (A) record for bjones which resolves to C. Create an address (A) record for mail which resolves to D. Click the Return to record types link at the bottom of the page after adding your record. E. Click the Mail Server button on the top right of the “Edit Master Zone” page. F. Create a mail server (mx) record named mynet. with a ”Mail server” of mail with a priority of 10 G. Click the Return to record types link at the bottom of the page after adding your record. H. Click the Apply Zone link at the top right of the “Edit Master Zone” page. I. Execute dig @localhost bjones.mynet to receive a resolution of bjones.mynet to J. Execute a dig @localhost -t mx mynet to view your configured mail server (MX) record.


Re-Configuring Mail Services A. Inside of Webmin go to Servers > Postfix Mail Server B. Click on the General Options button towards the top left of the screen. 1. For “What domain to use in outbound mail” configure the third radio button for mynet 2. For “What domains to receive mail for” add to the list mynet as a valid domain. 3. For “Internet hostname of this mail system” set it to mail.mynet 4. For “Local internet domain name” set it to mynet 5. Click the Save and Apply button. C. Edit your /etc/resolv.conf and make the first entry nameserver D. Edit /etc/squirrelmail/config.php and configure $domain to be mynet E. Log into your Squirrelmail and send an email to bjones@mail.mynet to test your configuration. F. Logout of all shells. Save a snaphot of your VM as “Lab #7 Completed”.