This chapter discusses advanced AIX Fast Connect features used for customized configurations. For basic administrative procedures, see Configuration and Administration.
AIX Fast Connect supports the following advanced features:
Several performance considerations for AIX Fast Connect are also discussed in this section.
Many choices for the features described in this chapter depend on the type of authentication method selected. Each type has its advantages and disadvantages. Which authentication method or methods you choose depends on your environment, your administration policy, and the ease of administration and use. The following methods for user authentication are described in detail in this section:
AIX-based authentication uses AIX user definitions and passwords. All AIX authentication grammars are supported, including DCE and LDAP. Following session setup, a AIX Fast Connect session obtains the authenticated AIX user's credentials (UID, GID, and secondary groups).
The following requirements apply:
net config /encrypt_passwords:0
Plain-text passwords have the following advantages:
Plain-text passwords have the following disadvantages:
The CIFS password encryption protocol method uses AIX Fast Connect user definitions and encrypted passwords for user authentication. Each user must be defined under the same user name as an AIX user. AIX Fast Connect encrypts passwords and saves them in its user database (/etc/cifs/cifsPasswd) for use during session setup. (See Configuring Encrypted Passwords.) Following session setup, a AIX Fast Connect session obtains the authenticated user's credentials (UID, GID and secondary groups).
CIFS password encryption protocol method has the following requirements:
(User passwords need not match on both systems.)
net config /encrypt_passwords:2
This method has the following advantages:
This method has the following disadvantages:
This authentication method uses AIX user definitions and NT server user authentication. In this mode, each AIX Fast Connect user must also be defined as an AIX user. Passthrough authentication is enabled using Web-based System Manager, SMIT, or the net command by specifying an IP address for the NT Passthrough Authentication Server.
To configure this mode using the net command, type:
net config /passthrough_authentication_server:IPaddressYou can also designate a backup server for NT authentication by typing:
net config /backup_passthrough_authentication_server:IPaddress2
During session setup, AIX Fast Connect forwards the session setup request to the NT server. If the NT server authenticates the user, AIX Fast Connect grants access. Following session setup, an AIX Fast Connect session obtains the authenticated user's credentials (UID, GID and secondary groups).
Passthrough authentication has the following requirements:
This method has the following advantages:
This method has the following disadvantage:
net config /guestlogon:0
net config /networklogon:0
AIX Fast Connect can be configured to act as a Network Logon server. In this mode, Windows-based PCs are configured for network logon, rather than local logon, which provides the following benefits:
The following restrictions apply to AIX Fast Connect's network logon feature:
or
AIX Fast Connect's Network Logon feature is enabled (or disabled) using the networklogon parameter. For more information, see Configuring Network Logon.
AIX Fast Connect can be configured to provide access to DFS for Windows clients. Each AIX Fast Connect user name is used as a DCE principal name. Mixed-case user names or passwords are only supported when encrypted passwords are used.
DCE support is automatically installed if the DCE filesets are installed before installing AIX Fast Connect. (cifsUserProc is then linked to cifsPrintServerDCE rather than cifsPrintServer.)
DCE support is controlled through the dce_auth configuration option, which can be set to 0 or 1. A value of 1 indicates that DCE authentication option is enabled. When dce_auth=1 (and cifsPrintServerDCE is being used), all incoming PC client logins are sent to DCE for authentication. All PC-client user names and passwords must also be valid DCE user names and passwords (UID, GID, and groupset are defined by the DCE authentication). If DCE authentication is enabled and if AIX Fast Connect is configured to use encrypted passwords, each AIX Fast Connect user must be configured by entering the DCE password for that user by using the net user Subcommand (see net user Subcommand). In addition, multiple AIX Fast Connect servers in a DCE environment can be configured to share one common user database (for encrypted passwords) using the DCE-Registry User Database feature.
When dce_auth=0, AIX Fast Connect can still provide some access to DFS files under the following conditions:
AIX Fast Connect supports the Kerberose5-authentication feature of Windows 2000 clients (Windows 2000 clients must be configured for this mode). The AIX Fast Connect configuration option, krb5_auth, is used to enable this feature, and krb5_service_name is used to configure AIX Fast Connect for the external Kerberos Domain-Controller (KDC).
When this feature is enabled, other AIX Fast Connect clients can use other authentication methods, such as plain-text passwords or encrypted passwords, to connect to the AIX Fast Connect server and access its file shares and print shares.
Use the following instructions to configure an AIX Fast Connect server for Kerberos-based authentication of Windows 2000 clients. These instructions assume that the Windows 2000 clients have been successfully configured for Kerberos-based authentication to a working Kerberos Domain Controller.
net config /krb5_service_name:krb5svc
net config /krb5_auth:where krb5svc is a Kerberos
Service in the following form: HOST@server1.austin.ibm.com./etc/rc.cifs stop /etc/rc.cifs start
AIX Fast Connect can support guest-mode logins when configured for either plain text or encrypted passwords. To enable guest-mode logins, the following parameters must be configured:
net config /guestlogonsupport:1 (enables guest logons)
and
net config /guestname:GuestID (AIX guestid with null password)
When guest logon support is enabled (guestlogonsupport=1), and the guestname field is set, non-AIX users can connect to the AIX Fast Connect Server. The credentials for guest clients is set to those of the guestname attribute.
The AIX account specified by the guestname attribute must have a null AIX password -- it is being used for guest-mode access to the AIX file system. This guest account can access all of the file system directories exported by AIX Fast Connect (as file shares). Therefore, to simplify access control this guest account should probably be in its own unique AIX group.
Guest access is only given to user names that are not defined AIX Fast Connect users with passwords that are not null.
Incoming login requests are authenticated as follows:
To disable guest logon support, type:
net config /guestlogonsupport:0
When the AIX Fast Connect server is configured for share-level security, passwords are associated with individual file shares and print shares, not with PC client user names. In this mode, AIX Fast Connect provides access rights to PC clients based on a share-mode user name specified as the share_level_security_username parameter, similar to the guest logon access mode.
To enable share-level security, type:
net config /share_level_security:1 (enable share-level security) net config /share_level_security_username:AIXuser (configure share user)
In share-level security mode, AIX Fast Connect supports both ReadWrite passwords and ReadOnly passwords. When a PC client tries to connect to a share, the following can occur:
net share /add /netname:NETTEMP /path:/tmp /rw_password:"write-is-okay"
net share /add /netname:USERS /path:/home /rw_password:writeme /ro_password:readme
net config /share_level_security:0
This feature allows AIX Fast Connect to map PC client user names (or sets of PC client user names) to server (AIX) user names, for purposes of user-mode authentication and file access. When enabled, AIX Fast Connect tries to map every incoming client user name to a server user name, and then uses that server user name for further user authentication and AIX credentials. (All user-authentication mechanisms are supported, such as AIX-based, encrypted passwords, NT-passthrough, DCE)
The feature is controlled by the usernamemapping parameter, and mappings are configured by the net user /map command.
net config /usernamemapping:1
net user /map longclientname aixname net user /map secondclientname aixname net user /delete longclientnamenet config /usernamemapping:0
AIX Fast Connect supports two methods for users to change their AIX Fast Connect encrypted passwords and, optionally, their AIX password from remote locations. These methods are described below.
The /usr/bin/cifsPasswd command is provided with AIX Fast Connect to allow users to change their own encrypted password without having root authority. To use this command, a telnet or other AIX-login session is required.
For details, see cifsPasswd Command.
If AIX Fast Connect is being used as a Network Logon Server, the Remote Change Password feature can be used. This feature allows Windows 95 or Windows 98 clients to change their AIX Fast Connect passwords from a remote location using the Passwords applet in the Control Panel application. The Windows 95 or Windows 98 clients must be configured for network logon to the AIX Fast Connect server using either the Microsoft Client for Microsoft Networks or the IBM Network Client for IBM Networks (if the IBM Network Client for IBM Networks is being used, AIX Fast Connect must be configured to use plain-text passwords).
Remote password change is not supported on Windows NT or Windows 2000 clients. In addition, remote password change is ignored if network logon is disabled. For more information about network logon, see Network Logon to AIX Fast Connect. Remote password change does not work with NT-passthrough authentication.
If User-name mapping is being used, only server user names can use remote password change.
Follow these procedures to enable or disable remote password change:
net config /remote_password_change:1
net config /remote_password_change:0
If remote password change is enabled, the sync_aix_password option can also be enabled. When the sync_aix_password is enabled, every successful remote password change will also change the AIX password for that user name. This functionality is useful in environments where the Windows 95 or Windows 98 users frequently log in to the AIX server using tools such as telnet and ftp. The sync_aix_support feature is ignored if network logon is disabled.
Follow these procedures to enable or disable sync_aix_password:
net config /sync_aix_password:1
net config /sync_aix_password:0
AIX Fast Connect provides several additional features for file access and user management, which are described in the following sections.
AIX Fast Connect supports the net session command, for displaying and managing logged-in user sessions.
net session
net session /user:username /workstation:IPaddress /shareinfo
net session /user:username /workstation:IPaddress /fileinfo
net session /user:username /workstation:IPaddress /close
net session /user:username /workstation:IPaddress /close /netname:sharename
net session /user:username /workstation:IPaddress /close /file:filename
AIX Fast Connect provides several parameters to specify limits on resource use:
| maxusers | Maximum number of user sessions (logins), at any given time |
| maxconnections | Maximum number of connections to a single share-resource |
| maxopens | Maximum number of open files allowed |
| maxsearches | Maximum number of open file searches |
| autodisconnect | Autodisconnect time for idle sessions (in minutes) |
For more details, see net Command or Appendix B. Configurable Parameters for the net Command.
AIX Fast Connect supports disk quotas (user limits on disk space) when the bos.sysmgt.quota file is installed and configured. No additional configuration of AIX Fast Connect is necessary.
The audit system command can be used to log all file operations from AIX Fast Connect clients. To display this file activity by Real User Name rather than by Login ID, use the following command:
auditpr -h e,r,R,t,c
No additional configuration of AIX Fast Connect is necessary.
AIX Fast Connect provides a umask global parameter to control permission bits on all files created by all AIX Fast Connect users. The umask parameter is specified as an octal number (with a leading zero), and defaults to 022.
To change the umask to 002, type:
net config /umask:002
Several advanced features of AIX Fast Connect are available as per-share options. These options are encoded as bit fields within the sh_options parameter of each share definition. These options must be defined when the share is created with the net share /add command.
Per-share options currently allowed bynet share /add are:
| Parameter | Values | Default | Description |
|---|---|---|---|
| sh_oplockfiles | (0,1) | 1 | Enables opportunistic locks (oplocks) on this share, if oplockfiles=1 |
| sh_searchcache | (0,1) | 0 | Enables search caching on this share, if cache_searches=1 |
| sh_sendfile | (0,1) | 0 | Enables SendFile API on this share, if send_file_api=1 |
| mode | (0,1) | 1 | Allows ReadWrite access to this share. (0 indicates ReadOnly mode.) |
Example: To create a ReadOnly share that has SendFile enabled, type:
net share /add /netname:ROSHARE /path:/usr/etc /mode:0 /sh_sendfile:1
AIX Access Control Lists (ACLs) allows extended control of files and directories of the AIX Journaled File System (JFS). AIX Fast Connect exploits this features by honoring AIX ACLs.
AIX Fast Connect extends this support by implementing ACL inheritance for AIX Fast Connect file shares. This feature can be used to implement default ACLs for created file objects. When ACL inheritance is enabled, the umask parameter is not effective.
ACL inheritance is enabled by setting the acl_inheritance option to 1. This option can be viewed and changed using the net config command. After it is enabled, it applies to all the AIX Fast Connect file shares.
ACLs are inherited from the ACL defined on the base directory of the share. For example, if you have a share named TEMP mapped to the AIX directory /tmp (assuming a valid ACL is defined for this directory and acl_inheritance=1), all files created in this share now inherit the ACLs defined for /tmp.
net config /acl_inheritance:1
net config /acl_inheritance:0
net config /parm:acl_inheritanceWhen necessary, the AIX Fast Connect administrator can use the cifsClient command to send messages to individual workstations, or to all user sessions connected to AIX Fast Connect.
cifsClient send -a -m "message"cifsClient send -c computer -m "message"
cifsClient send -u username -m "message"
cifsClient send -d domainname -m "message"
WIN95> winpopup
Older PC client operating systems, such as Windows for Workgroups 3.11, do not support long file names. This restriction is also true for many older (16-bit) applications running under Windows 95, Windows 98, and Windows NT. This restriction requires mapping long names of AIX files to DOS file name format. (The DOS format is also called 8.3 format because file names are limited to a maximum of eight characters followed by a period and a three-character extension.)
Simply truncating a long name to a shorter name is not the solution, because multiple files could get mapped to the same name whenever the first eight characters are same. AIX Fast Connect maps AIX file names (AFN) to DOS File Names (DFN), ensuring file-name uniqueness. It maps AFNs to DFNs using the Microsoft Windows NT method for mapping names (that is, name conflicts are handled by using a delimiting character in the short name, followed by a unique numeric to make the name unique).
For example, consider two files in the root directory of an exported SMB
share:LongFileName1.txt and LongFileName2.txt. Assume a 16-bit application mounts this share and searches the directory.
The resulting file names are as follows:
LONGFI~1.TXT for LongFileName1.txt
LONGFI~2.TXT for LongFileName2.txt
AIX Fast Connect generates a mapped name whenever the AFN must be passed back to a DOS client. DFNs generated by AIX Fast Connect are not remembered across server restarts. File-name mappings remain consistent until the AIX Fast Connect server is restarted.
AIX Fast Connect can be configured to turn off the mapping. When the mapping is turned off, no mapping is attempted. When disabled, any mapping of long names must be done by the PC client software.
net config /dosfilenamemapping:1
net config /dosfilenamemapping:0
AIX Fast Connect provides optional support for the ReadOnly, Archive, System, and Hidden file attribute bits of DOS files. These bits are encoded by AIX Fast Connect into the AIX file-permission bits of the AIX file system.
AIX Fast Connect automatically handles these bits in the AIX file system; the examples listed above simply show how AIX Fast Connect interprets these AIX-permission bits, when reporting DOS file attributes to a PC client. If you have AIX Fast Connect configured to support DOS file attributes (the default), you might need to manually turn off the Execute bits in your AIX directories that are being exported as AIX Fast Connect file shares.
find dirname -type f -exec chmod a-x "{}" ";" -printnet config /dosattrmapping:0
AIX Fast Connect supports server-name aliases, which allows a AIX Fast Connect server to respond to multiple NetBIOS server names. This feature is helpful in HACMP mutual takeover. Server aliases can be configured using the net name command, as follows:
net config /parm:servername
net name /list
net name /add sname2net name /delete sname2Server aliases normally use NetBIOS subcodes 0x00 and 0x20, but other subcodes can be specified, for example:
net name /add test3 /sub:03 net name /delete sname2 /sub:2f
AIX Fast Connect supports Browse Master functionalilty. This feature, when enabled, allows AIX Fast Connect to act as a data repository for network browse information for support of Network Neighborhood, My Network Places, and NET VIEW.
net config /browsemaster:1
net config /browsemaster:0
This section discusses several issues affecting AIX Fast Connect performance.
Directory enumerations are frequent network operations on Windows clients. Whenever Network Neighborhood (or Windows Explorer) opens a network directory, that entire directory is enumerated over the network, for display in a Explorer window. Windows Explorer usually waits to display the contents of the window until the entire network directory has been listed. For large directories containing many files, this delay is noticeable to the PC user and can be frustrating. Remote file accesses from AIX (such as DCE/DFS or NFS) tend to aggravate this situation.
Try to prevent your AIX Fast Connect users from having to access large directories to get to the network files they need. One possible solution is to define smaller-sized AIX directories to be exported by AIX Fast Connect. These directories can contain links to files in the large directories.
If large directories are needed but rarely change (for example, CD-ROM), you might find the search caching features useful.
Directory searches are very frequent network operations on Windows clients. Every time a network file is opened, renamed, deleted, or listed, a directory search for that file name is performed. (For example, simply opening a document in Microsoft Word can cause multiple directory searches for that file name.)
The AIX Fast Connect search-caching feature allows directory searches to be temporarily cached to improve the performance of multiple-search scenarios such as opening documents. Also, for directories that change infrequently, but are accessed often, this feature can enhance performance.
Search caching is implemented in AIX Fast Connect by taking snapshots of directories and their modification times, as follows:
Search caching is configured on AIX Fast Connect by the following parameters:
| Parameter | Default | Description |
|---|---|---|
| cache_searches | 0 (disabled) | Globally disable the search-caching feature. (Set to 1 to enable.) |
| sh_searchcache | 0 (disabled) | Disable search caching on a per-share basis. (Set to 1 to enable.) |
For file transfers to clients, AIX Fast Connect can use the SendFile API for performance enhancement. The SendFile API is an AIX kernel extension that provides efficient file transfers and can do data caching.
SendFile API is configured on AIX Fast Connect by the following:
| Parameter | Default | Description |
|---|---|---|
| send_file_api | 1 (enabled) | Flag to enable/disable the SendFile API to be used by AIX Fast Connect. Default is enable. To disable SendFile, set to 0. |
| send_file_cache_size | 0 (disabled) | Maximum Read-Request size that is cached by the SendFile API. |
| send_file_size | 4096 | Minimum Read-Request size, before SendFile API is used. |
| sh_sendfile | 0 (disabled) | Flag to enable/disable per-share option. Default is disable. To enable SendFile for that file share, set to 1. |
AIX Fast Connect can be configured to use AIX memory-mapped files during CIFS read and write operations. This feature is enabled with the mmapfiles configuration option. By default, it is disabled.
net config /mmapfiles:1
net config /mmapfiles:0
Following are some DBCS and Unicode issues:
| SJIS code | MS code | IBM code | Character name |
|---|---|---|---|
| 815C | 2015 | 2014 | EM DASH |
| 8160 | FF5E | 301C | WAVE DASH |
| 8161 | 2225 | 2016 | DOUBLE VERTICAL LINE |
| 817C | FF0D | 2212 | MINUS SIGN |
| FA55 | FFE4 | 00A6 | FULL WIDTH BROKEN BAR |
These characters (and any other Unicode conversions needed) are supported by the AIX Fast Connect double_byte_char configuration parameter . To configure AIX Fast Connect to support Japanese characters, run the following command:
net config /double_byte_char:"0x20152014 0xFF5E301C 0x22252016 0xFF0D2212 0xFFE400A6"
System conversion routines effectively remap these source Unicode values to their target Unicode values, which do each have their own DBCS equivalents.
| Source Unicode | Target Unicode | Target JIS | Target SJIS |
|---|---|---|---|
| 555E | 5516 | 3022 | 88A0 |
| 7130 | 7114 | 316B | 898B |
| 9DD7 | 9D0E | 322A | 89A8 |
| 5699 | 565B | 337A | 8A9A |
| 4FE0 | 4FA0 | 3622 | 8BA0 |
| 8EC0 | 8EAF | 366D | 8BEB |
| 7E6B | 7E4B | 3752 | 8C71 |
| 9E7C | 9E78 | 3834 | 8CB2 |
| 9EB4 | 9EB9 | 396D | 8D8D |
| 5C62 | 5C61 | 3C48 | 8EC6 |
| 7E61 | 7E4D | 3D2B | 8F4A |
| 8523 | 848B | 3E55 | 8FD3 |
| 91AC | 91A4 | 3E5F | 8FDD |
| 6414 | 63BB | 415F | 917E |
| 7626 | 75E9 | 4169 | 9189 |
| 6451 | 63B4 | 444F | 92CD |
| 5861 | 586B | 4536 | 9355 |
| 985A | 985B | 453F | 935E |
| 79B1 | 7977 | 4578 | 9398 |
| 7006 | 6D9C | 4642 | 93C0 |
| 56CA | 56A2 | 4739 | 9458 |
| 6F51 | 6E8C | 482E | 94AC |
| 91B1 | 9197 | 4830 | 94AE |
| 9830 | 982C | 4B4B | 966A |
| 9EB5 | 9EBA | 4C4D | 96CB |
| 840A | 83B1 | 4D69 | 9789 |
| 881F | 874B | 4F39 | 9858 |
| 6522 | 6505 | 5A39 | 9DB7 |
| 00A6 | FFE4 | 9336 | FA55 |
If AIX Fast Connect is started in a Unicode-based language locale, all of these source values are supported without any remappings being performed.
These interfaces do not support TCP/IP broadcast IP addresses. Therefore, several inconsistencies related to NetBIOS protocols that use broadcast messages may result. When using any at#, filterbroadcast must be enabled.
These drivers emulate standard Ethernet interfaces and support the TCP/IP broadcast messages used by NetBIOS. However, the default ATM-Lane installation supports only 32 simulataneous sessions over one ATM line. This is not sufficient for most AIX Fast Connect environments. Whenever a new TCP/IP session is requested, one of the oldest previous sessions gets disconnected, which can lead to thrashing sessions. This situation is solved by increasing the ATM arp cache parameter to 1000 in the SMIT panel for ATM.