4.3 SMB Server Products

Rational supports two SMB products- Samba version 2.2 (available from www.samba.org) and Syntax TotalNET Advanced Server (TAS)-to enable access to UNIX file systems from Windows NT computers. This section describes how to install and configure Samba and TAS.

The READ ME FIRST chapter in ClearCase and MultiSite Release Notes (Windows edition) contains last-minute information about SMB server products, including which versions of those products that ClearCase supports. For more information about configuring SMB server products, read the remainder of that manual. For information on current UNIX platform support for ClearCase, Samba, and TAS, see the Rational ClearCase Web page.

Installing and Configuring Samba 2.2

ClearCase supports use of Samba 2.2 to provide Windows NT computers that use dynamic views with access to VOBs and views on Solaris 8 or later.

Samba 2.2 can be downloaded from www.samba.org. Download it and follow the installation instructions for the operating system on which you are installing it. Samba must be installed and configured on each UNIX VOB and view server that you want to access from Windows NT.

To configure Samba for use by ClearCase, you must do the following:

  1. Create a Samba username map for the clearcase_albd user

  2. Configure Samba globals

  3. Create shares for VOB and view storage

  4. Start Samba services

Creating a Samba Username Map for clearcase_albd

NOTE: In this section, we assume that the user account for the ClearCase server process on Windows NT is named clearcase_albd. If your user account for this server process is configured to use a different name, use that name instead.

Samba requires a username map that associates the user account for ClearCase server process Windows NT with a UNIX user account. For more information on administering Windows NT domains, see the release 4.1 edition of Administering ClearCase

To create the Samba username map, use any text editor to create a file named username.map on the host where Samba is installed. We recommend that you create the file in the same directory where you have installed other Samba configuration files (such as smb.conf).

The file must contain a line of the form

account = clearcase_albd

where account is the name of an existing UNIX user account. We strongly recommend that this user's primary group (the group listed in the user's entry in the passwd database) be one to which all ClearCase users accessing VOBs and views on this server belong. For details about group- and user-level access to ClearCase data, see the chapter on access controls in the release 4.1 edition of Administering ClearCase

For more information about the username.map file, see the Samba documentation.

Using the Samba Web Administration Tool (SWAT)

Samba can be configured using various methods that range from a simple text editor to graphical tools. The examples in this document describe the configuration of Samba through the use of the Samba Web Administration Tool (SWAT), which is included in the Samba download. Instructions included with the Samba download explain how to enable this tool.

To access the SWAT interface:

  1. Type a URL of this format in a Web browser:

  2. http://computer:port#

    where computer is the host name of a UNIX VOB server or view server host on which you have installed Samba and port# represents the SWAT port number. (The default value is 901.)

  3. Log on as root. The SWAT interface now appears in your browser.

Configuring Samba Globals for ClearCase

Click the GLOBALS icon at the top of the SWAT interface's home page. Then click Advanced View. Set the global options as described in Table 6.

Table 6 Samba Global Settings for ClearCase


Base options

workgroup


Set to the name of the Windows NT domain to which ClearCase hosts accessing this server belong


netbios name


Set to the host name of this computer


Security options

security


DOMAIN (recommended) or USER (see note)


encrypt passwords


Yes


create mask


0775


directory mask


0775


username map


Set to the local pathname of the username.map file


Locking options

oplocks


No


kernel oplocks


No


File-name handling options

case sensitive


No


preserve case


Yes


NOTE: If you select USER security, you must enter every user that will access Samba file services in a local password encryption database on the server that supports those file services. Click the PASSWORD icon on the SWAT home page. In the Server Password Management section, enter the name and password of each user.

ClearCase has no special requirements for other Samba globals, so you may configure them in any way that's appropriate for your site.

Creating Shares for VOB and View Storage

You must create one or more Samba shares to hold server storage locations or individual VOB or view storage directories. To create a Samba share:

  1. Click the SHARES icon at the top of the SWAT interface's home page.

  2. Enter a name for the share in the text field to the right of the Create Share button. To simplify administration, we recommend that the share name be similar or identical to that of the UNIX directory whose name you will enter in Step #4.

  3. Click Create Share.

  4. Edit the path option under Base Options. Set its value to be a directory under which the VOB or view storage areas reside. The VOB or view storage areas do not need to be in the directory specified, but they must be somewhere below the specified directory.

  5. Click Commit Changes.

Starting Samba Services

The Samba smbd and nmbd services must be running before Windows computers can access files using Samba. We recommend that you configure your UNIX host to start the smbd and nmbd services at boot time. Platform-specific instructions for configuring automatic service startup are included in the Samba documentation.

Samba services can also be started manually from the SWAT interface using the following procedure:

  1. Click the STATUS icon at the top of the SWAT interface's home page.

  2. Click Start smbd.The page refreshes and should display the smbd status as running.

  3. Click Start nmbd.The page refreshes and should display the nmbd status as running.

Configuring ClearCase to Support Samba

For all ClearCase clients on Windows NT that have the MVFS installed and that will access Samba shares, change the MVFS Performance settings in the ClearCase program in Control Panel as follows:

  1. Click Start>Settings>Control Panel. Start ClearCase.

  2. On the MVFS Performance tab:

  3. Click OK to apply the changes and close the dialog box.

  4. Restart Windows NT.

Testing the Samba Configuration on Non-ClearCase Files

We recommend that you test the Samba installation and configuration using non-ClearCase files and directories before attempting to use Samba to provide file access to VOBs and views, as follows:

  1. Create a directory on your Samba server (for example, /testshare/testdir) and a test file in that directory (for example, /testshare/testdir/testfile).

  2. Create a Samba share using testshare as the share name and /testshare as the path name for the share.

  3. From a Windows NT client, create a file in the Samba share. Then verify that the UNIX user and group settings for that file are correct.

  4. Verify that all Windows NT clients can access the Samba share, including testing permission and access restrictions, until you are confident that Samba is working properly.

Testing the Samba Configuration with ClearCase

To verify that ClearCase and Samba are working together properly:

  1. On a UNIX VOB or view server, install and configure Samba as described in this chapter, creating shares for VOB and/or view storage.

  2. Verify that your ClearCase user and group assignments are appropriate. To do so, refer to the chapter on this subject in the release 4.1 edition of Administering ClearCase.

  3. Verify that you can access VOBs and views on the server from a UNIX client.

  4. Log on to a ClearCase client on Windows NT. Use the Region Synchronizer to import VOB and view tags for VOBs and views hosted on the UNIX server into the Windows region.

  5. Ensure that you can use these views and VOBs by performing some basic ClearCase operations (for example, mkelem, checkin, and checkout) in them.

Syntax TotalNET Advanced Server

ClearCase supports the Syntax TotalNET Advanced Server (TAS) SMB server product to provide Windows NT computers using dynamic views with access to VOBs and views on any of the following UNIX Platforms:

Installing TAS 6.0

This section describes how to install TAS 6.0, including how to configure TAS and ClearCase to support mixed-environment file access. If you are using Syntax TotalNET Advanced Server, you must install and configure it on each UNIX VOB and view server that you want to access from a Windows NT client.

Follow the instructions in the appropriate platform-specific installation section of TotalNET Advanced Server Release Notes to install TAS on each VOB and view server requiring access from Windows NT.

Enabling the Multiuser Kernel Driver on AIX

If you are installing Syntax TotalNET Advanced Server on an AIX platform, you must enable the multiuser kernel driver after installing TAS. This step provides support for the TAS SMB multiplexor, which is required when using ClearCase with TAS on AIX.

To enable the multiuser kernel driver, use the TAS smbmxenable command. This command does not take any command-line options or arguments.

cd /var/totalnet/usr/sbin
./smbmxenable

To disable the multi-user kernel driver, use the TAS smbmxdisable command. This command does not take any command-line options or arguments.

cd /var/totalnet/usr/sbin
./smbmxdisable

NOTE: You cannot enable or disable the multiuser support from the Framework interface. You for details about multiuser support on AIX platforms, see Appendix E, TAS Multiplexing, in the TotalNET Advanced Server Administration Manual.

Accessing the Syntax Administration Framework

You can configure and administer TAS using the Syntax Administration Framework (formerly known as the TotalNET Administration Suite, or TNAS) Web interface. For details, see the chapter on syntax administration framework in TotalNET Advanced Server Administration Manual.

To access the Syntax Administration Framework Web interface:

  1. Type a URL of this format in a Web browser:

  2. http://computer:port#

    where

    The Syntax Enterprise Services page appears.

  3. Click Syntax Administration Framework; a Framework logon program appears.

  4. Log on as root, using the root password for the TAS server. The Framework interface now appears in your browser.

  5. Click TAS Configuration and Administration in the sphere frame (that is, the frame at the upper right of the interface).

  6. The TAS configuration and administration menu now appears in the menu frame (that is, the frame at the lower left of the interface).

Performing Initial Setup of TAS

NOTE: If you are upgrading an existing installation of TAS, the upgrade procedures preserve the previous configuration, including existing TAS volumes and file services supporting ClearCase, so you can skip the remaining sections of this chapter. After you have upgraded, ensure that opportunistic locks are disabled for each TAS volume that contains ClearCase storage. (The Support opportunistic locks check box in the volume definition should be cleared.) For details, see Administering Volume Attributes in the chapter on volume administration in TotalNET Advanced Server Administration Manual.

After you have installed TAS on a server, you must perform an initial setup on that TAS installation. For details, see the chapter on initial setup in TotalNET Advanced Server Administration Manual.

Click Initial Setup in the menu frame of the Framework Web interface, and follow the instructions in the Syntax documentation, subject to the changes noted in these sections that are specific to use of TAS with ClearCase.

General TAS Settings

Accept the defaults for Admin user, Admin group, and so on in the General TAS Settings pane.

Enabling and Configuring the CIFS Realm

In the Select Realms to Configure pane, enable the CIFS realm, and click Next; the CIFS Realm Configuration pane appears.

NOTE: ClearCase does not require that the NetWare and AppleTalk realms be enabled.

Configure the CIFS realm as follows:

For details about configuring the CIFS realm, see the section Updating CIFS Realm Configuration in the chapter Updating Realm Configuration in the System/Realm Administration of the TotalNET Advanced Server Administration Manual.

Configuring TAS to Support ClearCase

After initial setup, configure the TAS server to support ClearCase, using the Framework Web interface.

Creating a TAS Username Map for clearcase_albd

Create a TAS username map from the user account for the ClearCase server process on Windows NT to a UNIX user account whose primary group ID (GID) can access all VOBs and views that will be accessed by TAS file services. In this section, we assume that this user account is named clearcase_albd. If the user account for your server process is configured to use a different name, use that name instead.

To create the TAS username map:

  1. Click TAS System in the menu frame; the TAS System Configuration and Administration pane appears.

  2. Click Username Maps; the Username Maps pane appears. Make these changes to support ClearCase:

  3. Click Submit at the bottom of the form; then click OK in the confirmation message.

For details about the ClearCase server process user, see the chapter on administering WIndows NT domains in Administering ClearCase. For details about creating user name mappings in TAS, see Username Maps in the Sharing Volumes and Printers chapter of TotalNET Advanced Server Administration Manual.

Creating a Volume

Create a TAS volume that exports the directory in which the VOB and/or view storage are physically located. Clients use the volume name to represent the path to the physical VOB or view storage location.

NOTE: We recommend that you test the TAS installation and configuration using non-ClearCase files before attempting to use TAS to access VOBs and views. For details, see Testing the TAS Configuration on Non-ClearCase Files.

The procedure required to support ClearCase is summarized here:

  1. Click TAS System in the menu frame; then click Volumes in the TAS System Configuration and Administration pane.

  2. Type a name (for example, ccstore) in the text box.

  3. Ensure that the volume name is of a form that is acceptable for all realms that will access it. For example, some realms do not accept names longer than 12 characters.

    NOTE: The text box contains a symbolic name for the volume, not the pathname to the volume storage. However, it is a good idea to specify TAS volume names that correlate to the VOB and view storage paths. (For example, a TAS volume named ccstore may be associated with /ccstore on the UNIX computer.) If these names do not correlate, examine the volume properties to determine which pathnames are associated with which volumes.

  4. Click Create; a New Volume Definition pane appears. Make these changes to support ClearCase:

  5. Click Submit at the bottom of the form; then click OK in the confirmation pane.

For details about creating and administering volumes, see Administering Volume Attributes in the Volume Administration chapter of TotalNET Advanced Server Administration Manual.

Configuring the File Service

To configure the TAS file service to support ClearCase:

  1. Access the file service:

    1. Click CIFS (NB) Realm in the menu frame.

    2. Click Manage CIFS File Services; a list of the file services appears.

    3. Click the file service that corresponds to your TAS server; then click Administer. A menu of file service operations appears.

  2. Click Configuration; an update file service form appears. Make these changes to support ClearCase:

  3. Click Submit at the bottom of the form; then click OK in the confirmation pane to return to the menu of file service operations.

  4. Click Authentication Options; the Authentication Options form appears. Under User-mode authentication options, click Local or Remote.

  5. NOTE: You cannot use Share mode authentication if the TAS volumes are to include ClearCase storage.

    For assistance in determining the authentication mode for your site, see your system administrator. For details about authentication, see section 11.2, User Authentication, in the TotalNET Advanced Server Administration Manual.

  6. If you select Remote authentication, configure the authentication as follows:

  7. For details about Remote authentication, see section 11.2.2, Configuring a File Service to use Proxy Authentication, in the TotalNET Advanced Server Administration Manual.

    If you select Local authentication, configure the authentication as follows:

    Click Submit at the bottom of the authentication options form. Then click OK in the confirmation pane to return to the menu of file service operations.

    For details about Local authentication, see section 11.2.1, Configuring a File Service to use Local Authentication, in the TotalNET Advanced Server Administration Manual.

Start Services and Accept Service Connections

To start the TAS file services and accept service connections:

  1. Click TAS System in the menu frame and then click TAS System Administration.

  2. Click Start Services in the TAS System Administration pane.

  3. Click OK in the Confirmation pane; then click OK to return to the TAS System Administration pane.

  4. In the TAS System Administration pane, click Accept Service Connections.

  5. Click OK in the Confirmation pane; then click OK to return to the TAS System Administration pane.

For details about starting TAS services and accepting service connections, see sections 10.1.1, Starting TAS Services, and 10.4.1, Accepting Services in TAS, in the TotalNET Advanced Server Administration Manual.

At this point, TAS is configured to support ClearCase. You can exit the Framework Web interface.

Configuring ClearCase to Support TAS

For all ClearCase clients on Windows NT that have the MVFS installed and will access TAS volumes, change the MVFS Performance settings in the ClearCase program in Control Panel as follows:

  1. Click Start >Settings >Control Panel. Start ClearCase.

  2. On the MVFS Performance tab:

  3. Click OK to apply the changes and close the dialog box.

  4. Restart the Windows NT client.

Testing the TAS Configuration on Non-ClearCase Files

We recommend that you test the TAS installation and configuration using non-ClearCase files and directories before attempting to use TAS to provide file access to VOBs and views, as follows:

  1. Create a directory structure on your TAS server (for example, /tasstore/testdir) and a test file in that directory (for example, /tasstore/testdir/testfile).

  2. Install and configure TAS as described in this chapter, using tasstore as the volume name and /tasstore as the path name for the volume.

  3. From a Windows NT client, create a file in the TAS volume. Then verify that the UNIX user and group settings for that file are correct.

  4. Verify that all Windows NT clients can access the TAS volume, including testing permission and access restrictions, until you are confident that TAS is working properly.

Testing the TAS Configuration with ClearCase

To verify that ClearCase and TAS are working together properly:

  1. On a UNIX VOB or view server, install and configure TAS as described in this chapter, creating volumes containing VOB and/or view storage.

  2. Verify that your ClearCase user and group assignments are appropriate. To do so, use the tests described in the chapter on configuring ClearCase in a mixed network in Administering ClearCase.

  3. Verify that you can access VOBs and views on the server from a UNIX client.

  4. Log on to a ClearCase client on Windows NT. Use the Region Synchronizer to import VOB-tags and view-tags for VOBs and views hosted on the UNIX server into the Windows region.

  5. Ensure that you can use these views and VOBs by performing some basic ClearCase operations (for example, mkelem, checkin, and checkout) in them.