This article employs the latest alpha version of Samba 3.0. Although not ready for production networks, the alpha code does work and, according to the road map, will not drastically change when the full public release is ready. After a lengthy chat with the Samba development team, I was reassured that coming changes to Samba 3.0 (from alpha to the final release) will primarily be the addition of features and the stabilisation of the code. The installation and configurations shown in this article are not likely to change. What you need
To get Samba 3.0 up and running, you must have:
- Windows 2000 Server acting as a domain controller.
- The OpenLDAP development libraries for Linux. As of this writing, version 2.0.23-4 is the latest release and can be downloaded here.
- The MIT Kerberos development libraries for Linux. As of this writing, these libraries are at version 1.2.4-1. krb5-devel can be downloaded here; \\krb5-libs can be downloaded here; and krb5-workstation can be downloaded here.
- The latest version of the Samba alpha code. (I chose not to get the CVS version.) As of this writing, build 17 of the Samba code was the latest and can be downloaded here.
The IP addresses of the machines used in this article will be: Win2K - 10.109.10.133 Linux - 10.109.10.132 Installing Samba 3.0
The installation of Samba 3.0 is fairly straightforward. Follow these steps:
- Expand the Samba 3.0 distribution with the command gunzip -cd samba-3.0-alpha17.tar.gz | tar xvf -.
- Switch to the source directory of the newly created directory with the command cd samba-3.0-alpha17/source.
- Run the configuration script, using the command /configure -prefix=/usr/local/samba to instruct the script to install Samba into /usr/local/samba.
- Make sure that the lines #define HAVE KRB5 1 and #define HAVE LDAP 1 are present in the include/config.h file.
- Compile the application with the make command.
- Install the application with the make install command.
You need to configure some parameters to let the Kerberos process know how to handle the Active Directory server. Listing A shows the entire contents of my /etc/krb5.conf file. Make the appropriate modifications to your configuration, keeping in mind that case matters to Kerberos; SLOWE.COM and slowe.com do not match. You have one more thing to check. While it might sound trivial, I cannot stress enough the importance of clock synchronisation between your Windows 2000 Server and your Linux server. If the time is off by more than five minutes, the two servers will be able to communicate, but no ticket information will work. This is easy to troubleshoot because you will be greeted with kinit(v5): Clock skew too great while getting initial credentials when you test Kerberos. To make sure that your connection is working, run the command /usr/kerberos/bin/kinit nuser@SLOWE.COM. The Kerberos kinit command will test communication between your servers. The syntax is kinit user@REALM, where REALM is your Active Directory domain name and must be uppercase. If you do not use all uppercase for the realm, you'll receive this error:kinit(v5): Cannot find KDC for requested realm while getting initial credentials. If communication is working, you'll be prompted for the user password. When entered correctly, you'll simply come back to a bash prompt. If entered incorrectly, you'll receive the error: kinit(v5): Preauthentication failed while getting initial credentials.







Talkback
very nice