HP CIFS Server 3.0d Administrator's Guide version A.02.02 (Edition 5)

Winbind Support
Configuring HP CIFS Server with Winbind
Chapter 7170
In this example, NSS first checks the files, /etc/passwd and
/etc/group, and if no entry is found, it checks winbind.
Refer to switch(4) and “Configuring the Name Service Switch” in NFS
Services Administrator’s Guide at http://docs.hp.com/hpux/netcom/ for
detailed information on how to configure NSS.
An Example for File Ownership by Winbind Users
In the following example, use /opt/samba/bin/smbclient to connect to
a share, shareA, on the HP CIFS Server, Server1, as the user, John,
from the domain, DomA:
$ cd /opt/samba/bin
$ ./smbclient //Server1/shareA -U DomA\\John
The output is as follows:
Domain=[DomainA] OS=[Unix] Server=[Samba 3.0.7 based HP CIFS \
Server A.02.01]
$ smb:\>put JohnTest
$ smb:\>quit
Use the ll command to show the ownership of the file,
/tmp/shareA/JohnTest, as follows:
$ ll /tmp/shareA/JohnTest
When you run the ll command, the output is as follows:
-rwxr--r-- 1 DomA\John DomA\GroA 290 Nov 0 12:05 \
tmp/shareA/JohnTest
In the above output, the file owner is DomA\John, and the group owner
is DomA\GroA. The first part of owner and group owner, DomA, is the
domain name, the \ is the winbind separator. The last part, John and
GroA are the actual user name and group name from the windows
domain.
Use the ll -n command to show the UID and GID of file ownership as
follows:
$ ll -n /tmp/shareA/JohnTest
-rwxr--r-- 1 10002 10005 290 Nov 0 12:05 tmp/shareA/JohnTest
When you run the ll -n command, the UID(10002) and GID (10005)
are displayed in the output. Both UID and GID are in the range of values
that are spcified in the smb.conf file for winbind to use.