Home Knowledge Base Configure Samba As PDC with LDAP backend by using Fedora 11 (Part 1)
Configure Samba As PDC with LDAP backend by using Fedora 11 (Part 1) PDF Print E-mail
Thursday, 25 June 2009 21:53

This section provides a step-by-step guide on how to set up and use a Fedora 11 Server with Samba and OpenLDAP to replace an existing Microsoft Windows Domain Controler servers and provide central authentication services, file and print sharing for Microsoft Windows and Unix clients.

Before we start install and configure Samba, we will need a Fedora 11 Server. If you don't have a Fedora 11 server, you can follow this Install Fedora 11 Step by Step Guide to install a Fedora 11 server.

1. First we need to install some additional package if you did not install during the server installation process. Click at System and select Administration then click Add/Remove Software.

Install Fedora 11 Samba PDC step 1

2. Enter samba into the search field and click Find button. Select the Samba server and client software.

Install Fedora 11 Samba PDC step 2

3. Enter openldap into the search field and click Find button. Select LDAP server.

Install Fedora 11 Samba PDC step 3

 4. Enter ldap into the search field and click Find button. Select LDAP client utilities.

Install Fedora 11 Samba PDC step 4

 5. Enter apache into the search field and click Find button. Select Apache HTTP server.

Install Fedora 11 Samba PDC step 4

 6. Enter php into the search field and click Find button. Select PHP scripting language.

Install Fedora 11 Samba PDC step 5

7. Click Apply button, the program will prompt you to install additional packages that needed. Click Install button to continue.

Install Fedora 11 Samba PDC step 6

8. Enter root password and click Authenticate button.

Install Fedora 11 Samba PDC step 7

9. The program will download the package automatically and install.

Install Fedora 11 Samba PDC step 9

10. Once the package was installed successfully, you can exit the program by clicking the cross button.

Install Fedora 11 Samba PDC step 10

11. Now we will need the terminal to continue. So click at the Applications button, select System Tools and launch terminal.

Install Fedora 11 Samba PDC step 11

11. Issue ' su - root ' command and enter password, so that we can change the current log in user credential to root.

Install Fedora 11 Samba PDC step 12

12. Enter command ' nano /etc/openldap/ldap.conf ' to edit the LDAP configuration file.

Replace or add the following line:

HOST ds01.ecsmy.com
BASE dc=ecsmy,dc=com

Install Fedora 11 Samba PDC step 13

13.  Scroll down to the section where all the schema file was included.

Add the following line to the last of the list.

include    /etc/openldap/schema/samba.schema

Install Fedora 11 Samba PDC step 14

14.  Scroll down to the section where the suffix was specific.

Replace or add the following line:

database     bdb
suffix          "dc=ecsmy,dc=com"
rootdn        "cn=Manager,dc=ecsmy,dc=com"
rootpw

Install Fedora 11 Samba PDC step 15

15. Now we need to open an additional tab to get the encrypted password. Click File and select Open Tab.

Install Fedora 11 Samba PDC step 16

16. Enter command ' slappasswd' and enter the password that you want to configure for the LDAP manager. Once you have the encrypted password, copy the line.

Install Fedora 11 Samba PDC step 17

17. And paste the line next to the rootpw.

Install Fedora 11 Samba PDC step 18

18. Exit Nano program and save the file. Then start the LDAP service by issue the command ' /etc/init.d/ldap start '.

Install Fedora 11 Samba PDC step 19

19. We will create a temporary ldif file by enter the command ' nano /tmp/domain.ldif '.

Add the following line:

dn: dc=ecsmy,dc=com
objectclass: dcobject
objectClass: organization
o: Fedora Directory Server
dc: ecsmy

After those lines been added, exit the nano program and save the file.

Install Fedora 11 Samba PDC step 20

20. Now enter this command ' /usr/bin/ldapadd -x -D 'cn=Manager,dc=ecsmy,dc=com' -W -f /tmp/domain.ldif -h 127.0.0.1 '. When prompt for password, enter the password that you had enter at step 16.

Install Fedora 11 Samba PDC step 21

Now that OpenLDAP is up and going, we need to install LDAP Account Manager to configure the OpenLDAP ready for the Samba server.

Click here - Configure Samba As PDC with LDAP backend by using Fedora 11 (Part 2) to continue.

 

 

Last Updated on Saturday, 27 June 2009 22:06
 

Latest IT News

RSS Feed Over Here