| Configure Samba As PDC with LDAP backend by using Fedora 11 (Part 1) |
|
|
|
| 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.
2. Enter samba into the search field and click Find button. Select the Samba server and client software.
3. Enter openldap into the search field and click Find button. Select LDAP server.
4. Enter ldap into the search field and click Find button. Select LDAP client utilities.
5. Enter apache into the search field and click Find button. Select Apache HTTP server.
6. Enter php into the search field and click Find button. Select PHP scripting language.
7. Click Apply button, the program will prompt you to install additional packages that needed. Click Install button to continue.
8. Enter root password and click Authenticate button.
9. The program will download the package automatically and install.
10. Once the package was installed successfully, you can exit the program by clicking the cross button.
11. Now we will need the terminal to continue. So click at the Applications button, select System Tools and launch terminal.
11. Issue ' su - root ' command and enter password, so that we can change the current log in user credential to root.
12. Enter command ' nano /etc/openldap/ldap.conf ' to edit the LDAP configuration file. Replace or add the following line: HOST ds01.ecsmy.com
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
14. Scroll down to the section where the suffix was specific. Replace or add the following line: database bdb
15. Now we need to open an additional tab to get the encrypted password. Click File and select Open Tab.
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.
17. And paste the line next to the rootpw.
18. Exit Nano program and save the file. Then start the LDAP service by issue the command ' /etc/init.d/ldap start '.
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 After those lines been added, exit the nano program and save the file.
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.
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 |























