This section discusses the following topics.
As stated earlier, the purpose of Samba in OES is to provide Windows file services for Windows client users to data directories on OES Linux servers.
Both the Windows workstations and the OES Linux servers require authenticated access. On the Windows workstation, users log in using their Windows usernames and passwords. When they log in to the OES Linux server, they use their eDirectory usernames and passwords. Samba requires that these usernames and passwords match.
In other words, the Windows usernames on your network workstations and the eDirectory usernames you create for Samba access must be the same and must have the same password.
IMPORTANT:Samba users must be created in a container within the Base Context for Samba Users that you specified when you installed Samba (Step 6).
User objects that don’t meet this requirement cannot be enabled for Samba access. If you need to change the context, see the instructions in Section C.1, A sambaDomain Object Error Occurs.
In your browser, enter the iManager URL (http://IP_or_DNS_name/nps) and log in to iManager as the eDirectory Admin user or equivalent.
If the container for your new Samba users already exists, skip to Creating eDirectory Users.
To create a context in iManager for your users, click > > > and create the (OU) object before proceeding.
For more information on context requirements for the object, see the previously referenced Section A.1, Samba Enabling Problems and the Base Context for Samba Users Field.
Continue with Creating eDirectory Users.
IMPORTANT:If you want to create home directories for your users as part
of the user-creation process, you must create an NCP or an NSS volume
for the directories prior to completing the following procedure.
For more information, see Creating
NCP Volumes
in the NCP
Server for Linux Administration Guide or Creating
NSS Storage Objects in eDirectory in the Novell
Storage Services File System Administration Guide for OES.
If the users you plan to enable for Samba are already defined as eDirectory users, skip to Creating an eDirectory Group and Assigning the Users to It.
In iManager, click > > .
HINT:To see whether a User object already exists using iManager, click the icon. Click the tab. Set the to , and click . All currently-defined User objects are listed.
Be sure to select the context you have identified for your Samba users (Step 3 in the previous section).
Specify an eDirectory password, then scroll down to see more of the dialog.
Do not set a simple password even though the interface indicates it is required for native Windows access. Enabling a user for Samba access creates a Universal Password by default, making it much easier for users to keep their passwords synchronized.
(Conditional) You can create a home directory for the user if you have an NCP volume available (either created on a traditional Linux partition or existing an NSS partition on the server).
For more information and some helpful tips, see Creating and Enabling Samba Users and Groups. See also, Samba on NSS Can Be a Good Combination for Performance.
Type (or select if defined) any other information you want associated with the user, such as , , etc.
Click .
Click to create another user, or click to finish.
After creating all the users, continue with Creating an eDirectory Group and Assigning the Users to It.
An eDirectory Group object consists of users who have common needs, such as file service needs. Working with Group objects makes it easier to enable or disable policies for multiple users at a time.
You can create a new Group object just for managing Samba users, or you can use an existing Group object.
If your eDirectory users are already members of a group you can enable for Linux access, skip to Enabling the Group and Users for Linux Access (LUM).
Click > ,
Type a name for the group.
Select a context for the group. Although Group objects are often in the same container as the User objects assigned to them, this is not required.
Click .
Click .
Select the drop-down option below the page title, or in Internet Explorer, click the tab.
Browse
to
the users you want to add to the group, click each User object,
then click .
Click > .
Continue with Enabling the Group and Users for Linux Access (LUM).
Enable the group you just created for Linux access by clicking > .
In the Enable Groups page, after selecting the group, make sure that the option is selected, then click .
Confirm that you want to enable the users for Linux by clicking .
On the next page, browse
to
and select the UNIX Workstation - server_name object
of each server you want users to have Samba access to, then click
UNIX Workstation objects are created in the same context as the servers they represent.
Click , then click .
If you have multiple eDirectory users to enable for Samba access, you might want to create a text file and use the smbbulkadd utility as explained in Enabling Multiple eDirectory Users with smbbulkadd (next).
If you want to enable the users individually, skip to Enabling Users for Samba Access Using iManager.
You can enable multiple eDirectory users for Samba by running the smbbulkadd utility at the shell prompt. The users must already exist in eDirectory and must be enabled for Linux access as instructed in the previous section—Enabling the Group and Users for Linux Access (LUM)).
To enable Linux-enabled users for Samba access do the following:
Before running smbbulkadd, you should ensure that a Samba-qualified password policy is in place. Otherwise, users are assigned a Samba-hash (Simple) password, which is not recommended. (See Section B.5.4, About Samba Hash Passwords.)
Step 2 instructs you on how to assign the default Samba policy to User object parent containers. However, you also have two other options:
Otherwise, continue with Step 2.
Assign the Samba Default Password Policy (Universal Password policy) or other Samba-qualified policy (see Samba Passwords) to the immediate parent containers (OU objects) of the users you want to enable for Samba.
Log in to iManager as the eDirectory Admin user.
In s, click > .
Select , then click .
In the drop-down list, click , or in Internet Explorer click the tab.
Click the Object Selector
next
to the field.
Browse to and select the parent containers (OU objects) of the users you are enabling.
For example, if your users are in an OU container object named , you would browse to and select the container.
Click .
Click >
Using your favorite Linux text editor (such as Kwrite or Kate), create a text file that lists the following information for each user on a separate line. Be sure to include a blank line at the end of the file as indicated:
-u username -x edir,context -p password (blank line—no text)
where username is the eDirectory username, edir,context is the full eDirectory context of the user expressed using LDAP (comma-delimited) syntax, and password is the same password used to log in to the Windows workstation.
IMPORTANT:Both the eDirectory password and the Universal Password will be set to the password you specify.
For example, to Samba-enable three Linux-enabled eDirectory users named win1, win2, and win3 in users.doc.company, with the passwords pass1, pass2, and pass3, respectively, you could create a file named smbusers.txt in the /tmp directory with the following contents:
-u win1 -x ou=users,ou=doc,o=company -p pass1
-u win2 -x ou=users,ou=doc,o=company -p pass2
-u win3 -x ou=users,ou=doc,o=company -p pass3
(blank line—no text)
NOTE:You can also create the text file on a Macintosh or Windows workstation, but you must convert the file to UNIX text format using the dos2unix utility before using it with smbbulkadd.
While logged in to the server as the root user, run the smbbulkadd command.
To see the various command options, enter smbbulkadd at the shell prompt.
For example, to process the smbusers.txt file mentioned in the example in Step 3, you would enter the following command at the shell prompt:
smbbulkadd -a cn=admin,o=company -w adpass -f /tmp/smbusers.txt
where adpass is the eDirectory Admin user password.
The system reports the status for each user being enabled for Samba.
Check the status reported to ensure that all users were enabled. If not, correct any errors in the smbusers.txt file, such as no blank line at the end, and run smbbulkadd again.
Users that are already enabled are ignored.
Now that your users are enabled to use Samba file services, you need to provide access to those services. Continue with the next section, Providing Access to Samba File Services.
HINT:The following procedure enables users for Samba access one at a time. You can enable multiple users with the smbbulkadd utility. For more information, see Section 2.3.6, Enabling Multiple eDirectory Users with smbbulkadd.
In iManager, click > .
Browse
to
and select a User object, then click .
If you see options for replacing or keeping an existing policy on the screen, skip to Step 4.
If you see only a statement about having users authenticate through eDirectory with no other text below it, then iManager has either
or
Click OK and skip to Step 6.
The following options appear below the statement about authenticating through eDirectory:
To understand why these options appear, continue reading. Otherwise, skip to Step 5.
When you choose to enable a User object for Samba, iManager searches eDirectory to see whether the object already has a password policy in place by checking the following objects in order:
When the search finds a password policy, it evaluates whether the policy is valid for Samba, meaning that the policy
The reason that the two options appear on the Enable Linux User for Samba screen is that iManager found an assigned password policy that is not valid for Samba.
Choose to either
or
For assistance, see Be Sure to Use Samba-Qualified Universal Password Policies.
Do not choose to use Samba hashes unless you fully understand the issues associated with them. For more information, see About Samba Hash Passwords.
If you are not prompted to enter a new password, skip to Step 7.
If the Universal Password has not been set previously, or if the previously assigned password policy doesn’t allow checking whether a Universal Password is already set, you are prompted to specify and confirm a password for the user.
Type and confirm the user password, matching the password you entered when creating the user in eDirectory, then click .
Both the eDirectory password and the Universal Password are set.
If you choose to not specify a password, you need to instruct the user to create a Universal Password by logging in to the network through iManager or using the Novell Client prior to attempting a Samba connection. Users will cannot connect until they create a Universal Password.
Click and repeat from Step 2 until each Samba user is enabled.
Click to finish.
Now that your users are enabled to use Samba file services, you need to provide access to the services. Continue with the next section, Providing Access to Samba File Services.