summaryrefslogtreecommitdiff
path: root/docs/docbook/projdoc/winbind.xml
diff options
context:
space:
mode:
authorJohn Terpstra <jht@samba.org>2003-09-23 19:10:37 +0000
committerJohn Terpstra <jht@samba.org>2003-09-23 19:10:37 +0000
commit704c768240801f33aba2743542332c45f9c3c50e (patch)
tree5617bde621aaeb9b8c0bfa58f270cc4ba63b7df1 /docs/docbook/projdoc/winbind.xml
parent48aecb40f8f87436d239560c4f54157a46975de8 (diff)
downloadsamba-704c768240801f33aba2743542332c45f9c3c50e.tar.gz
samba-704c768240801f33aba2743542332c45f9c3c50e.tar.bz2
samba-704c768240801f33aba2743542332c45f9c3c50e.zip
I'm still working on this. More to come.
(This used to be commit cb2172541849c96c9156233da9b34e5e08801ae3)
Diffstat (limited to 'docs/docbook/projdoc/winbind.xml')
-rw-r--r--docs/docbook/projdoc/winbind.xml701
1 files changed, 366 insertions, 335 deletions
diff --git a/docs/docbook/projdoc/winbind.xml b/docs/docbook/projdoc/winbind.xml
index 001b2f16c1..d460694496 100644
--- a/docs/docbook/projdoc/winbind.xml
+++ b/docs/docbook/projdoc/winbind.xml
@@ -1,7 +1,6 @@
<chapter id="winbind">
<chapterinfo>
- <authorgroup>
<author>
<firstname>Tim</firstname><surname>Potter</surname>
<affiliation>
@@ -20,14 +19,13 @@
<author>
<firstname>John</firstname><surname>Trostel</surname>
<affiliation>
- <orgname>SNAP</orgname>
<address><email>jtrostel@snapserver.com</email></address>
+ <orgname>SNAP</orgname>
</affiliation>
</author>
&author.jelmer;
&author.jht;
- </authorgroup>
<pubdate>27 June 2002</pubdate>
</chapterinfo>
@@ -38,7 +36,7 @@
<para>
Integration of UNIX and Microsoft Windows NT through a unified logon has
- been considered a "holy grail" in heterogeneous computing environments for
+ been considered a <quote>holy grail</quote> in heterogeneous computing environments for
a long time.
</para>
@@ -50,11 +48,11 @@
</para>
<para>
- <emphasis>winbind</emphasis> is a component of the Samba suite of programs
+ <emphasis>winbind</emphasis> is a component of the Samba suite of programs that
solves the unified logon problem. Winbind uses a UNIX implementation of Microsoft
RPC calls, Pluggable Authentication Modules, and the Name Service Switch to
allow Windows NT domain users to appear and operate as UNIX users on a UNIX
- machine. This chapter describes the winbind system, explaining the functionality
+ machine. This chapter describes the Winbind system, explaining the functionality
it provides, how it is configured, and how it works internally.
</para>
@@ -64,27 +62,27 @@
<itemizedlist>
<listitem><para>
- Authentication of user credentials (via PAM)
+ Authentication of user credentials (via PAM).
</para></listitem>
<listitem><para>
- Identity resolution (via NSS)`
+ Identity resolution (via NSS).
</para></listitem>
<listitem><para>
- Windindd maintains a database called winbind_idmap.tdb in which it stores
+ Winbind maintains a database called winbind_idmap.tdb in which it stores
mappings between UNIX UIDs / GIDs and NT SIDs. This mapping is used only
for users and groups that do not have a local UID/GID. It stored the UID/GID
allocated from the idmap uid/gid range that it has mapped to the NT SID.
If <parameter>idmap backend</parameter> has been specified as ldapsam:url
- then instead of using a local mapping winbindd will obtain this information
+ then instead of using a local mapping Winbind will obtain this information
from the LDAP database.
</para></listitem>
</itemizedlist>
<note><para>
- If winbindd is not running, then smbd (which calls winbindd) will fall back to
- using purely local information from /etc/passwd and /etc/group and no dynamic
+ If <command>winbindd</command> is not running, smbd (which calls <command>winbindd</command>) will fall back to
+ using purely local information from <filename>/etc/passwd</filename> and <filename>/etc/group</filename> and no dynamic
mapping will be used.
</para></note>
@@ -94,7 +92,7 @@
<imageobject role="latex"><imagedata fileref="projdoc/imagefiles/idmap_winbind_no_loop" scale="50" scalefit="1"/></imageobject>
<imageobject><imagedata fileref="projdoc/imagefiles/idmap_winbind_no_loop.png" scale="50" scalefit="1"/></imageobject>
</mediaobject>
-</figure>-->
+ </figure>-->
</sect1>
@@ -111,9 +109,9 @@
<para>One common solution in use today has been to create
identically named user accounts on both the UNIX and Windows systems
and use the Samba suite of programs to provide file and print services
- between the two. This solution is far from perfect however, as
+ between the two. This solution is far from perfect, however, as
adding and deleting users on both sets of machines becomes a chore
- and two sets of passwords are required both of which
+ and two sets of passwords are required &smbmdash; both of which
can lead to synchronization problems between the UNIX and Windows
systems and confusion for users.</para>
@@ -121,13 +119,13 @@
three smaller problems:</para>
<itemizedlist>
- <listitem><para>Obtaining Windows NT user and group information
+ <listitem><para>Obtaining Windows NT user and group information.
</para></listitem>
- <listitem><para>Authenticating Windows NT users
+ <listitem><para>Authenticating Windows NT users.
</para></listitem>
- <listitem><para>Password changing for Windows NT users
+ <listitem><para>Password changing for Windows NT users.
</para></listitem>
</itemizedlist>
@@ -136,7 +134,7 @@
would satisfy all the above components without duplication of
information on the UNIX machines and without creating additional
tasks for the system administrator when maintaining users and
- groups on either system. The winbind system provides a simple
+ groups on either system. The Winbind system provides a simple
and elegant solution to all three components of the unified logon
problem.</para>
</sect1>
@@ -146,53 +144,53 @@
<title>What Winbind Provides</title>
<para>Winbind unifies UNIX and Windows NT account management by
- allowing a UNIX box to become a full member of a NT domain. Once
+ allowing a UNIX box to become a full member of an NT domain. Once
this is done the UNIX box will see NT users and groups as if
- they were native UNIX users and groups, allowing the NT domain
+ they were <quote>native</quote> UNIX users and groups, allowing the NT domain
to be used in much the same manner that NIS+ is used within
UNIX-only environments.</para>
<para>The end result is that whenever any
program on the UNIX machine asks the operating system to lookup
a user or group name, the query will be resolved by asking the
- NT domain controller for the specified domain to do the lookup.
+ NT Domain Controller for the specified domain to do the lookup.
Because Winbind hooks into the operating system at a low level
- (via the NSS name resolution modules in the C library) this
- redirection to the NT domain controller is completely
+ (via the NSS name resolution modules in the C library), this
+ redirection to the NT Domain Controller is completely
transparent.</para>
<para>Users on the UNIX machine can then use NT user and group
- names as they would use "native" UNIX names. They can chown files
- so that they are owned by NT domain users or even login to the
+ names as they would <quote>native</quote> UNIX names. They can chown files
+ so they are owned by NT domain users or even login to the
UNIX machine and run a UNIX X-Window session as a domain user.</para>
<para>The only obvious indication that Winbind is being used is
- that user and group names take the form DOMAIN\user and
- DOMAIN\group. This is necessary as it allows Winbind to determine
- that redirection to a domain controller is wanted for a particular
+ that user and group names take the form <constant>DOMAIN\user</constant> and
+ <constant>DOMAIN\group</constant>. This is necessary as it allows Winbind to determine
+ that redirection to a Domain Controller is wanted for a particular
lookup and which trusted domain is being referenced.</para>
<para>Additionally, Winbind provides an authentication service
that hooks into the Pluggable Authentication Modules (PAM) system
- to provide authentication via a NT domain to any PAM enabled
+ to provide authentication via an NT domain to any PAM-enabled
applications. This capability solves the problem of synchronizing
passwords between systems since all passwords are stored in a single
- location (on the domain controller).</para>
+ location (on the Domain Controller).</para>
<sect2>
<title>Target Uses</title>
<para>Winbind is targeted at organizations that have an
- existing NT based domain infrastructure into which they wish
+ existing NT-based domain infrastructure into which they wish
to put UNIX workstations or servers. Winbind will allow these
organizations to deploy UNIX workstations without having to
maintain a separate account infrastructure. This greatly
simplifies the administrative overhead of deploying UNIX
- workstations into a NT based organization.</para>
+ workstations into an NT-based organization.</para>
<para>Another interesting way in which we expect Winbind to
- be used is as a central part of UNIX based appliances. Appliances
- that provide file and print services to Microsoft based networks
+ be used is as a central part of UNIX-based appliances. Appliances
+ that provide file and print services to Microsoft-based networks
will be able to use Winbind to provide seamless integration of
the appliance into the domain.</para>
</sect2>
@@ -203,13 +201,13 @@
<sect1>
<title>How Winbind Works</title>
- <para>The winbind system is designed around a client/server
+ <para>The Winbind system is designed around a client/server
architecture. A long running <command>winbindd</command> daemon
listens on a UNIX domain socket waiting for requests
to arrive. These requests are generated by the NSS and PAM
- clients and processed sequentially.</para>
+ clients and is processed sequentially.</para>
- <para>The technologies used to implement winbind are described
+ <para>The technologies used to implement Winbind are described
in detail below.</para>
<sect2>
@@ -218,18 +216,18 @@
<para>Over the last few years, efforts have been underway
by various Samba Team members to decode various aspects of
the Microsoft Remote Procedure Call (MSRPC) system. This
- system is used for most network related operations between
+ system is used for most network-related operations between
Windows NT machines including remote management, user authentication
and print spooling. Although initially this work was done
to aid the implementation of Primary Domain Controller (PDC)
- functionality in Samba, it has also yielded a body of code which
+ functionality in Samba, it has also yielded a body of code that
can be used for other purposes.</para>
<para>Winbind uses various MSRPC calls to enumerate domain users
and groups and to obtain detailed information about individual
users or groups. Other MSRPC calls can be used to authenticate
NT domain users and to change user passwords. By directly querying
- a Windows PDC for user and group information, winbind maps the
+ a Windows PDC for user and group information, Winbind maps the
NT account information onto UNIX user and group names.</para>
</sect2>
@@ -238,13 +236,12 @@
<para>
Since late 2001, Samba has gained the ability to
- interact with Microsoft Windows 2000 using its 'Native
- Mode' protocols, rather than the NT4 RPC services.
- Using LDAP and Kerberos, a domain member running
- winbind can enumerate users and groups in exactly the
- same way as a Win2k client would, and in so doing
- provide a much more efficient and
- effective winbind implementation.
+ interact with Microsoft Windows 2000 using its <quote>Native
+ Mode</quote> protocols, rather than the NT4 RPC services.
+ Using LDAP and Kerberos, a Domain Member running
+ Winbind can enumerate users and groups in exactly the
+ same way as a Windows 200x client would, and in so doing
+ provide a much more efficient and effective Winbind implementation.
</para>
</sect2>
@@ -258,45 +255,45 @@
UNIX workstation may resolve system information from a series of
flat files stored on the local filesystem. A networked workstation
may first attempt to resolve system information from local files,
- and then consult a NIS database for user information or a DNS server
+ and then consult an NIS database for user information or a DNS server
for hostname information.</para>
- <para>The NSS application programming interface allows winbind
+ <para>The NSS application programming interface allows Winbind
to present itself as a source of system information when
- resolving UNIX usernames and groups. Winbind uses this interface,
+ resolving UNIX usernames and groups. Winbind uses this interface,
and information obtained from a Windows NT server using MSRPC
- calls to provide a new source of account enumeration. Using standard
+ calls to provide a new source of account enumeration. Using standard
UNIX library calls, one can enumerate the users and groups on
- a UNIX machine running winbind and see all users and groups in
+ a UNIX machine running Winbind and see all users and groups in
a NT domain plus any trusted domain as though they were local
users and groups.</para>
<para>The primary control file for NSS is
<filename>/etc/nsswitch.conf</filename>.
- When a UNIX application makes a request to do a lookup
+ When a UNIX application makes a request to do a lookup,
the C library looks in <filename>/etc/nsswitch.conf</filename>
- for a line which matches the service type being requested, for
- example the "passwd" service type is used when user or group names
- are looked up. This config line specifies which implementations
+ for a line that matches the service type being requested, for
+ example the <quote>passwd</quote> service type is used when user or group names
+ are looked up. This config line specifies which implementations
of that service should be tried and in what order. If the passwd
config line is:</para>
- <para><programlisting>
-passwd: files example
- </programlisting></para>
+ <para><screen>
+ passwd: files example
+ </screen></para>
<para>then the C library will first load a module called
<filename>/lib/libnss_files.so</filename> followed by
the module <filename>/lib/libnss_example.so</filename>. The
C library will dynamically load each of these modules in turn
and call resolver functions within the modules to try to resolve
- the request. Once the request is resolved the C library returns the
+ the request. Once the request is resolved, the C library returns the
result to the application.</para>
- <para>This NSS interface provides a very easy way for Winbind
+ <para>This NSS interface provides an easy way for Winbind
to hook into the operating system. All that needs to be done
is to put <filename>libnss_winbind.so</filename> in <filename>/lib/</filename>
- then add "winbind" into <filename>/etc/nsswitch.conf</filename> at
+ then add <quote>winbind</quote> into <filename>/etc/nsswitch.conf</filename> at
the appropriate place. The C library will then call Winbind to
resolve user and group names.</para>
</sect2>
@@ -325,33 +322,33 @@ passwd: files example
<para>PAM is configured by providing control files in the directory
<filename>/etc/pam.d/</filename> for each of the services that
require authentication. When an authentication request is made
- by an application the PAM code in the C library looks up this
+ by an application, the PAM code in the C library looks up this
control file to determine what modules to load to do the
authentication check and in what order. This interface makes adding
- a new authentication service for Winbind very easy, all that needs
+ a new authentication service for Winbind very easy. All that needs
to be done is that the <filename>pam_winbind.so</filename> module
is copied to <filename>/lib/security/</filename> and the PAM
control files for relevant services are updated to allow
- authentication via winbind. See the PAM documentation
- for more details.</para>
+ authentication via Winbind. See the PAM documentation
+ in <link linkend="pam"/> for more information.</para>
</sect2>
<sect2>
<title>User and Group ID Allocation</title>
- <para>When a user or group is created under Windows NT
- is it allocated a numerical relative identifier (RID). This is
- slightly different to UNIX which has a range of numbers that are
+ <para>When a user or group is created under Windows NT/200x
+ it is allocated a numerical relative identifier (RID). This is
+ slightly different from UNIX which has a range of numbers that are
used to identify users, and the same range in which to identify
- groups. It is winbind's job to convert RIDs to UNIX id numbers and
- vice versa. When winbind is configured it is given part of the UNIX
- user id space and a part of the UNIX group id space in which to
+ groups. It is Winbind's job to convert RIDs to UNIX ID numbers and
+ vice versa. When Winbind is configured, it is given part of the UNIX
+ user ID space and a part of the UNIX group ID space in which to
store Windows NT users and groups. If a Windows NT user is
- resolved for the first time, it is allocated the next UNIX id from
+ resolved for the first time, it is allocated the next UNIX ID from
the range. The same process applies for Windows NT groups. Over
- time, winbind will have mapped all Windows NT users and groups
- to UNIX user ids and group ids.</para>
+ time, Winbind will have mapped all Windows NT users and groups
+ to UNIX user IDs and group IDs.</para>
<para>The results of this mapping are stored persistently in
an ID mapping database held in a tdb database). This ensures that
@@ -362,17 +359,19 @@ passwd: files example
<sect2>
<title>Result Caching</title>
- <para>An active system can generate a lot of user and group
- name lookups. To reduce the network cost of these lookups winbind
+ <para>
+<indexterm><primary>SAM</primary></indexterm>
+ An active system can generate a lot of user and group
+ name lookups. To reduce the network cost of these lookups, Winbind
uses a caching scheme based on the SAM sequence number supplied
- by NT domain controllers. User or group information returned
- by a PDC is cached by winbind along with a sequence number also
+ by NT Domain Controllers. User or group information returned
+ by a PDC is cached by Winbind along with a sequence number also
returned by the PDC. This sequence number is incremented by
Windows NT whenever any user or group information is modified. If
a cached entry has expired, the sequence number is requested from
the PDC and compared against the sequence number of the cached entry.
If the sequence numbers do not match, then the cached information
- is discarded and up to date information is requested directly
+ is discarded and up-to-date information is requested directly
from the PDC.</para>
</sect2>
</sect1>
@@ -385,23 +384,23 @@ passwd: files example
<title>Introduction</title>
<para>
-This section describes the procedures used to get winbind up and
-running. Winbind is capable of providing access
+This section describes the procedures used to get Winbind up and
+running. Winbind is capable of providing access
and authentication control for Windows Domain users through an NT
-or Win2K PDC for 'regular' services, such as telnet a nd ftp, as
-well for SAMBA services.
+or Windows 200x PDC for regular services, such as telnet and ftp, as
+well for Samba services.
</para>
<itemizedlist>
<listitem>
<para>
- <emphasis>Why should I to this?</emphasis>
+ <emphasis>Why should I do this?</emphasis>
</para>
- <para>This allows the SAMBA administrator to rely on the
- authentication mechanisms on the NT/Win2K PDC for the authentication
- of domain members. NT/Win2K users no longer need to have separate
- accounts on the SAMBA server.
+ <para>This allows the Samba administrator to rely on the
+ authentication mechanisms on the Windows NT/200x PDC for the authentication
+ of Domain Members. Windows NT/200x users no longer need to have separate
+ accounts on the Samba server.
</para>
</listitem>
@@ -411,12 +410,10 @@ well for SAMBA services.
</para>
<para>
- This HOWTO is designed for system administrators. If you are
- implementing SAMBA on a file server and wish to (fairly easily)
- integrate existing NT/Win2K users from your PDC onto the
- SAMBA server, this HOWTO is for you. That said, I am no NT or PAM
- expert, so you may find a better or easier way to accomplish
- these tasks.
+ This document is designed for system administrators. If you are
+ implementing Samba on a file server and wish to (fairly easily)
+ integrate existing Windows NT/200x users from your PDC onto the
+ Samba server, this document is for you.
</para>
</listitem>
</itemizedlist>
@@ -427,38 +424,29 @@ well for SAMBA services.
<title>Requirements</title>
<para>
-If you have a Samba configuration file that you are currently
-using... <emphasis>BACK IT UP!</emphasis> If your system already uses PAM,
-<emphasis>back up the <filename>/etc/pam.d</filename> directory
-contents!</emphasis> If you haven't already made a boot disk,
-<emphasis>MAKE ONE NOW!</emphasis>
+If you have a Samba configuration file that you are currently using, <emphasis>BACK IT UP!</emphasis>
+If your system already uses PAM, <emphasis>back up the <filename>/etc/pam.d</filename> directory
+contents!</emphasis> If you haven't already made a boot disk, <emphasis>MAKE ONE NOW!</emphasis>
</para>
<para>
-Messing with the PAM configuration files can make it nearly impossible
-to log in to your machine. That's why you want to be able to boot back
-into your machine in single user mode and restore your
-<filename>/etc/pam.d</filename> back to the original state they were in if
-you get frustrated with the way things are going. ;-)
+Messing with the PAM configuration files can make it nearly impossible to log in to your machine. That's
+why you want to be able to boot back into your machine in single user mode and restore your
+<filename>/etc/pam.d</filename> back to the original state they were in if you get frustrated with the
+way things are going.
</para>
<para>
-The latest version of SAMBA (version 3.0 as of this writing), now
-includes a functioning winbindd daemon. Please refer to the
-<ulink url="http://samba.org/">main SAMBA web page</ulink> or,
-better yet, your closest SAMBA mirror site for instructions on
-downloading the source code.
+The latest version of Samba-3 includes a functioning winbindd daemon. Please refer to the <ulink
+url="http://samba.org/">main Samba Web page</ulink> or, better yet, your closest Samba mirror site for
+instructions on downloading the source code.
</para>
<para>
-To allow Domain users the ability to access SAMBA shares and
-files, as well as potentially other services provided by your
-SAMBA machine, PAM (pluggable authentication modules) must
-be setup properly on your machine. In order to compile the
-winbind modules, you should have at least the pam libraries resident
-on your system. For recent RedHat systems (7.1, for instance), that
-means <filename>pam-0.74-22</filename>. For best results, it is helpful to also
-install the development packages in <filename>pam-devel-0.74-22</filename>.
+To allow domain users the ability to access Samba shares and files, as well as potentially other services
+provided by your Samba machine, PAM must be set up properly on your
+machine. In order to compile the Winbind modules, you should have at least the PAM development libraries installed
+on your system. Please refer the PAM web site <ulink url="http://www.kernel.org/pub/linux/libs/pam/"/>.
</para>
</sect2>
@@ -466,25 +454,29 @@ install the development packages in <filename>pam-devel-0.74-22</filename>.
<title>Testing Things Out</title>
<para>
-Before starting, it is probably best to kill off all the SAMBA
-related daemons running on your server. Kill off all &smbd;,
-&nmbd;, and &winbindd; processes that may
-be running. To use PAM, you will want to make sure that you have the
-standard PAM package which supplies the <filename>/etc/pam.d</filename>
-directory structure, including the pam modules are used by pam-aware
-services, several pam libraries, and the <filename>/usr/doc</filename>
-and <filename>/usr/man</filename> entries for pam. Winbind built better
-in SAMBA if the pam-devel package was also installed. This package includes
-the header files needed to compile pam-aware applications.
+Before starting, it is probably best to kill off all the Samba-related daemons running on your server.
+Kill off all &smbd;, &nmbd;, and &winbindd; processes that may be running. To use PAM,
+make sure that you have the standard PAM package that supplies the <filename>/etc/pam.d</filename>
+directory structure, including the PAM modules that are used by PAM-aware services, several pam libraries,
+and the <filename>/usr/doc</filename> and <filename>/usr/man</filename> entries for pam. Winbind built
+better in Samba if the pam-devel package is also installed. This package includes the header files
+needed to compile PAM-aware applications.
</para>
<sect3>
-<title>Configure <filename>nsswitch.conf</filename> and the
-winbind libraries on Linux and Solaris</title>
+<title>Configure <filename>nsswitch.conf</filename> and the Winbind Libraries on Linux and Solaris</title>
+
+<para>
+PAM is a standard component of most current generation UNIX/Linux systems. Unfortunately, few systems install
+the <filename>pam-devel</filename> libraries that are needed to build PAM-enabled Samba. Additionally, Samba-3
+may auto-install the Winbind files into their correct locations on your system, so before you get too far down
+the track be sure to check if the following configuration is really
+necessary. You may only need to configure
+<filename>/etc/nsswitch.conf</filename>.
+</para>
<para>
-The libraries needed to run the &winbindd; daemon
-through nsswitch need to be copied to their proper locations, so
+The libraries needed to run the &winbindd; daemon through nsswitch need to be copied to their proper locations:
</para>
<para>
@@ -511,7 +503,7 @@ I also found it necessary to make the following symbolic link:
<para>
Now, as root you need to edit <filename>/etc/nsswitch.conf</filename> to
allow user and group entries to be visible from the &winbindd;
-daemon. My <filename>/etc/nsswitch.conf</filename> file look like
+daemon. My <filename>/etc/nsswitch.conf</filename> file look like
this after editing:
</para>
@@ -522,10 +514,9 @@ this after editing:
</programlisting></para>
<para>
-The libraries needed by the winbind daemon will be automatically
+The libraries needed by the <command>winbindd</command> daemon will be automatically
entered into the <command>ldconfig</command> cache the next time
-your system reboots, but it
-is faster (and you don't need to reboot) if you do it manually:
+your system reboots, but it is faster (and you do not need to reboot) if you do it manually:
</para>
<para>
@@ -542,13 +533,12 @@ and echos back a check to you.
<sect3>
<title>NSS Winbind on AIX</title>
-<para>(This section is only for those running AIX)</para>
+<para>(This section is only for those running AIX.)</para>
<para>
-The winbind AIX identification module gets built as libnss_winbind.so in the
-nsswitch directory of the samba source. This file can be copied to
-/usr/lib/security, and the AIX naming convention would indicate that it
-should be named WINBIND. A stanza like the following:
+The Winbind AIX identification module gets built as <filename>libnss_winbind.so</filename> in the
+nsswitch directory of the Samba source. This file can be copied to <filename>/usr/lib/security</filename>,
+and the AIX naming convention would indicate that it should be named WINBIND. A stanza like the following:
</para>
<para><programlisting>
@@ -557,19 +547,19 @@ WINBIND:
options = authonly
</programlisting></para>
-<para>can then be added to
-<filename>/usr/lib/security/methods.cfg</filename>. This module only
-supports identification, but there have been success reports using the
-standard winbind pam module for authentication. Use caution configuring
-loadable authentication modules as it is possible to make it impossible
-to logon to the system. More information about the AIX authentication
-module API can be found at &quot;Kernel Extensions and Device Support
-Programming Concepts for AIX&quot;: <ulink
+<para>
+can then be added to <filename>/usr/lib/security/methods.cfg</filename>. This module only supports
+identification, but there have been success reports using the standard Winbind PAM module for
+authentication. Use caution configuring loadable authentication
+modules since you can make
+it impossible to logon to the system. More information about the AIX authentication module API can
+be found at <quote>Kernel Extensions and Device Support Programming Concepts for AIX</quote><ulink
url="http://publibn.boulder.ibm.com/doc_link/en_US/a_doc_lib/aixprggd/kernextc/sec_load_mod.htm">
-Chapter 18. Loadable Authentication Module Programming Interface</ulink>
-and more information on administering the modules at <ulink
-url="http://publibn.boulder.ibm.com/doc_link/en_US/a_doc_lib/aixbman/baseadmn/iandaadmin.htm">
-&quot;System Management Guide: Operating System and Devices&quot;</ulink>.
+in Chapter 18(John, there is no section like this in 18). Loadable Authentication Module Programming
+Interface</ulink> and more information on administering the modules
+can be found at <ulink
+url="http://publibn.boulder.ibm.com/doc_link/en_US/a_doc_lib/aixbman/baseadmn/iandaadmin.htm"> <quote>System
+Management Guide: Operating System and Devices.</quote></ulink>
</para>
</sect3>
@@ -577,19 +567,16 @@ url="http://publibn.boulder.ibm.com/doc_link/en_US/a_doc_lib/aixbman/baseadmn/ia
<title>Configure smb.conf</title>
<para>
-Several parameters are needed in the smb.conf file to control
-the behavior of &winbindd;. Configure
-&smb.conf; These are described in more detail in
-the <citerefentry><refentrytitle>winbindd</refentrytitle>
-<manvolnum>8</manvolnum></citerefentry> man page. My
-&smb.conf; file was modified to
-include the following entries in the [global] section:
+Several parameters are needed in the &smb.conf; file to control the behavior of &winbindd;. These
+are described in more detail in the <citerefentry><refentrytitle>winbindd</refentrytitle>
+<manvolnum>8</manvolnum></citerefentry> man page. My &smb.conf; file, as shown in <link
+linkend="winbindcfg"/>, was modified to include the necessary entries in the [global] section.
</para>
-<para><smbconfexample>
- <title>smb.conf for winbind set-up</title>
+<para><smbconfexample id="winbindcfg">
+ <title>smb.conf for Winbind set-up</title>
<smbconfsection>[global]</smbconfsection>
-<member>...</member>
+ &lt;...&gt;
<smbconfcomment> separate domain and username with '+', like DOMAIN+username</smbconfcomment>
<smbconfoption><name>winbind separator</name><value>+</value></smbconfoption>
<smbconfcomment> use uids from 10000 to 20000 for domain users</smbconfcomment>
@@ -608,10 +595,10 @@ include the following entries in the [global] section:
<sect3>
-<title>Join the SAMBA server to the PDC domain</title>
+<title>Join the Samba Server to the PDC Domain</title>
<para>
-Enter the following command to make the SAMBA server join the
+Enter the following command to make the Samba server join the
PDC domain, where <replaceable>DOMAIN</replaceable> is the name of
your Windows domain and <replaceable>Administrator</replaceable> is
a domain user who has administrative privileges in the domain.
@@ -624,22 +611,21 @@ a domain user who has administrative privileges in the domain.
<para>
-The proper response to the command should be: "Joined the domain
-<replaceable>DOMAIN</replaceable>" where <replaceable>DOMAIN</replaceable>
+The proper response to the command should be: <quote>Joined the domain
+<replaceable>DOMAIN</replaceable></quote> where <replaceable>DOMAIN</replaceable>
is your DOMAIN name.
</para>
</sect3>
-
<sect3>
-<title>Start up the winbindd daemon and test it!</title>
+<title>Starting and Testing the <command>winbindd</command> Daemon</title>
<para>
-Eventually, you will want to modify your smb startup script to
+Eventually, you will want to modify your Samba startup script to
automatically invoke the winbindd daemon when the other parts of
-SAMBA start, but it is possible to test out just the winbind
-portion first. To start up winbind services, enter the following
+Samba start, but it is possible to test out just the Winbind
+portion first. To start up Winbind services, enter the following
command as root:
</para>
@@ -647,12 +633,18 @@ command as root:
&rootprompt;<userinput>/usr/local/samba/bin/winbindd</userinput>
</para>
+<note><para>
+The above assumes that Samba has been installed in the <filename>/usr/local/samba</filename>
+directory tree. You may need to search for the location of Samba files if this is not the
+location of <command>winbindd</command> on your system.
+</para></note>
+
<para>
-Winbindd can now also run in 'dual daemon mode'. This will make it
-run as 2 processes. The first will answer all requests from the cache,
+Winbindd can now also run in <quote>dual daemon modei</quote>. This will make it
+run as two processes. The first will answer all requests from the cache,
thus making responses to clients faster. The other will
update the cache for the query that the first has just responded.
-Advantage of this is that responses stay accurate and are faster.
+The advantage of this is that responses stay accurate and are faster.
You can enable dual daemon mode by adding <option>-B</option> to the commandline:
</para>
@@ -661,23 +653,22 @@ You can enable dual daemon mode by adding <option>-B</option> to the commandline
</para>
<para>
-I'm always paranoid and like to make sure the daemon
-is really running...
+I'm always paranoid and like to make sure the daemon is really running.
</para>
<para>
&rootprompt;<userinput>ps -ae | grep winbindd</userinput>
</para>
<para>
-This command should produce output like this, if the daemon is running
+This command should produce output like this, if the daemon is running you would expect
+to see a report something like this:
</para>
<screen>
3025 ? 00:00:00 winbindd
</screen>
<para>
-Now... for the real test, try to get some information about the
-users on your PDC
+Now, for the real test, try to get some information about the users on your PDC:
</para>
<para>
@@ -686,7 +677,7 @@ users on your PDC
<para>
This should echo back a list of users on your Windows users on
-your PDC. For example, I get the following response:
+your PDC. For example, I get the following response:
</para>
<para><screen>
@@ -699,12 +690,11 @@ your PDC. For example, I get the following response:
</screen></para>
<para>
- Obviously, I have named my domain 'CEO' and my <smbconfoption><name>winbind separator</name></smbconfoption> is '+'.
+Obviously, I have named my domain <quote>CEO</quote> and my <smbconfoption><name>winbind separator</name></smbconfoption> is <quote>+</quote>.
</para>
<para>
-You can do the same sort of thing to get group information from
-the PDC:
+You can do the same sort of thing to get group information from the PDC:
</para>
<para><screen>
@@ -721,9 +711,8 @@ the PDC:
</screen></para>
<para>
-The function 'getent' can now be used to get unified
-lists of both local and PDC users and groups.
-Try the following command:
+The function <command>getent</command> can now be used to get unified
+lists of both local and PDC users and groups. Try the following command:
</para>
<para>
@@ -732,12 +721,12 @@ Try the following command:
<para>
You should get a list that looks like your <filename>/etc/passwd</filename>
-list followed by the domain users with their new uids, gids, home
+list followed by the domain users with their new UIDs, GIDs, home
directories and default shells.
</para>
<para>
-The same thing can be done for groups with the command
+The same thing can be done for groups with the command:
</para>
<para>
@@ -748,20 +737,19 @@ The same thing can be done for groups with the command
<sect3>
-<title>Fix the init.d startup scripts</title>
+<title>Fix the init.d Startup Scripts</title>
<sect4>
<title>Linux</title>
<para>
-The &winbindd; daemon needs to start up after the
-&smbd; and &nmbd; daemons are running.
+The &winbindd; daemon needs to start up after the &smbd; and &nmbd; daemons are running.
To accomplish this task, you need to modify the startup scripts of your system.
-They are located at <filename>/etc/init.d/smb</filename> in RedHat and
-<filename>/etc/init.d/samba</filename> in Debian.
-script to add commands to invoke this daemon in the proper sequence. My
+They are located at <filename>/etc/init.d/smb</filename> in Red Hat Linux and they are located in
+<filename>/etc/init.d/samba</filename> in Debian Linux. Edit your
+script to add commands to invoke this daemon in the proper sequence. My
startup script starts up &smbd;, &nmbd;, and &winbindd; from the
-<filename>/usr/local/samba/bin</filename> directory directly. The 'start'
+<filename>/usr/local/samba/bin</filename> directory directly. The <command>start</command>
function in the script looks like this:
</para>
@@ -789,7 +777,7 @@ start() {
</programlisting></para>
<para>If you would like to run winbindd in dual daemon mode, replace
-the line
+the line :
<programlisting>
daemon /usr/local/samba/bin/winbindd
</programlisting>
@@ -802,7 +790,7 @@ in the example above with:
</para>
<para>
-The 'stop' function has a corresponding entry to shut down the
+The <command>stop</command> function has a corresponding entry to shut down the
services and looks like this:
</para>
@@ -833,13 +821,14 @@ stop() {
<sect4>
<title>Solaris</title>
-<para>Winbind doesn't work on Solaris 9, see the <link linkend="winbind-solaris9">Portability</link> chapter for details.</para>
+<para>
+Winbind does not work on Solaris 9, see <link linkend="winbind-solaris9"/> for details.
+</para>
-<para>On Solaris, you need to modify the
-<filename>/etc/init.d/samba.server</filename> startup script. It usually
-only starts smbd and nmbd but should now start winbindd too. If you
-have samba installed in <filename>/usr/local/samba/bin</filename>,
-the file could contains something like this:
+<para>
+On Solaris, you need to modify the <filename>/etc/init.d/samba.server</filename> startup script. It
+usually only starts smbd and nmbd but should now start winbindd, too. If you have Samba installed in
+<filename>/usr/local/samba/bin</filename>, the file could contains something like this:
</para>
<para><programlisting>
@@ -859,7 +848,7 @@ the file could contains something like this:
[ "$pid" != "" ] &amp;&amp; kill $pid
}
- # Start/stop processes required for samba server
+ # Start/stop processes required for Samba server
case "$1" in
@@ -892,13 +881,11 @@ the file could contains something like this:
</programlisting></para>
<para>
-Again, if you would like to run samba in dual daemon mode, replace
+Again, if you would like to run Samba in dual daemon mode, replace:
<programlisting>
/usr/local/samba/bin/winbindd
</programlisting>
-
in the script above with:
-
<programlisting>
/usr/local/samba/bin/winbindd -B
</programlisting>
@@ -910,7 +897,7 @@ in the script above with:
<title>Restarting</title>
<para>
If you restart the &smbd;, &nmbd;, and &winbindd; daemons at this point, you
-should be able to connect to the samba server as a domain member just as
+should be able to connect to the Samba server as a Domain Member just as
if you were a local user.
</para>
</sect4>
@@ -920,17 +907,17 @@ if you were a local user.
<title>Configure Winbind and PAM</title>
<para>
-If you have made it this far, you know that winbindd and samba are working
-together. If you want to use winbind to provide authentication for other
-services, keep reading. The pam configuration files need to be altered in
-this step. (Did you remember to make backups of your original
+If you have made it this far, you know that <command>winbindd</command> and Samba are working
+together. If you want to use Winbind to provide authentication for other
+services, keep reading. The PAM configuration files need to be altered in
+this step. (Did you remember to make backups of your original
<filename>/etc/pam.d</filename> files? If not, do it now.)
</para>
<para>
-You will need a pam module to use winbindd with these other services. This
+You will need a PAM module to use winbindd with these other services. This
module will be compiled in the <filename>../source/nsswitch</filename> directory
-by invoking the command
+by invoking the command:
</para>
<para>
@@ -938,10 +925,10 @@ by invoking the command
</para>
<para>
-from the <filename>../source</filename> directory. The
+from the <filename>../source</filename> directory. The
<filename>pam_winbind.so</filename> file should be copied to the location of
-your other pam security modules. On my RedHat system, this was the
-<filename>/lib/security</filename> directory. On Solaris, the pam security
+your other PAM security modules. On my RedHat system, this was the
+<filename>/lib/security</filename> directory. On Solaris, the PAM security
modules reside in <filename>/usr/lib/security</filename>.
</para>
@@ -964,25 +951,21 @@ just left this file as it was:
</programlisting></para>
<para>
-The other services that I modified to allow the use of winbind
+The other services that I modified to allow the use of Winbind
as an authentication service were the normal login on the console (or a terminal
-session), telnet logins, and ftp service. In order to enable these
+session), telnet logins, and ftp service. In order to enable these
services, you may first need to change the entries in
-<filename>/etc/xinetd.d</filename> (or <filename>/etc/inetd.conf</filename>).
-RedHat 7.1 uses the new xinetd.d structure, in this case you need
+<filename>/etc/xinetd.d</filename> (or <filename>/etc/inetd.conf</filename>).
+Red Hat Linux 7.1 and later uses the new xinetd.d structure, in this case you need
to change the lines in <filename>/etc/xinetd.d/telnet</filename>
and <filename>/etc/xinetd.d/wu-ftp</filename> from
</para>
<para><programlisting>
enable = no
-</programlisting></para>
-
-<para>
-to
-</para>
-
-<para><programlisting>
+</programlisting>
+to:
+<programlisting>
enable = yes
</programlisting></para>
@@ -990,51 +973,51 @@ to
For ftp services to work properly, you will also need to either
have individual directories for the domain users already present on
the server, or change the home directory template to a general
-directory for all domain users. These can be easily set using
+directory for all domain users. These can be easily set using
the &smb.conf; global entry
<smbconfoption><name>template homedir</name></smbconfoption>.
</para>
<para>
The <filename>/etc/pam.d/ftp</filename> file can be changed
-to allow winbind ftp access in a manner similar to the
-samba file. My <filename>/etc/pam.d/ftp</filename> file was
+to allow Winbind ftp access in a manner similar to the
+samba file. My <filename>/etc/pam.d/ftp</filename> file was
changed to look like this:
</para>
<para><programlisting>
- auth required /lib/security/pam_listfile.so item=user sense=deny \
- file=/etc/ftpusers onerr=succeed
- auth sufficient /lib/security/pam_winbind.so
- auth required /lib/security/pam_stack.so service=system-auth
- auth required /lib/security/pam_shells.so
- account sufficient /lib/security/pam_winbind.so
- account required /lib/security/pam_stack.so service=system-auth
- session required /lib/security/pam_stack.so service=system-auth
+auth required /lib/security/pam_listfile.so item=user sense=deny \
+ file=/etc/ftpusers onerr=succeed
+auth sufficient /lib/security/pam_winbind.so
+auth required /lib/security/pam_stack.so service=system-auth
+auth required /lib/security/pam_shells.so
+account sufficient /lib/security/pam_winbind.so
+account required /lib/security/pam_stack.so service=system-auth
+session required /lib/security/pam_stack.so service=system-auth
</programlisting></para>
<para>
The <filename>/etc/pam.d/login</filename> file can be changed nearly the
-same way. It now looks like this:
+same way. It now looks like this:
</para>
<para><programlisting>
- auth required /lib/security/pam_securetty.so
- auth sufficient /lib/security/pam_winbind.so
- auth sufficient /lib/security/pam_unix.so use_first_pass
- auth required /lib/security/pam_stack.so service=system-auth
- auth required /lib/security/pam_nologin.so
- account sufficient /lib/security/pam_winbind.so
- account required /lib/security/pam_stack.so service=system-auth
- password required /lib/security/pam_stack.so service=system-auth
- session required /lib/security/pam_stack.so service=system-auth
- session optional /lib/security/pam_console.so
+auth required /lib/security/pam_securetty.so
+auth sufficient /lib/security/pam_winbind.so
+auth sufficient /lib/security/pam_UNIX.so use_first_pass
+auth required /lib/security/pam_stack.so service=system-auth
+auth required /lib/security/pam_nologin.so
+account sufficient /lib/security/pam_winbind.so
+account required /lib/security/pam_stack.so service=system-auth
+password required /lib/security/pam_stack.so service=system-auth
+session required /lib/security/pam_stack.so service=system-auth
+session optional /lib/security/pam_console.so
</programlisting></para>
<para>
In this case, I added the <programlisting>auth sufficient /lib/security/pam_winbind.so</programlisting>
lines as before, but also added the <programlisting>required pam_securetty.so</programlisting>
-above it, to disallow root logins over the network. I also added a
+above it, to disallow root logins over the network. I also added a
<programlisting>sufficient /lib/security/pam_unix.so use_first_pass</programlisting>
line after the <command>winbind.so</command> line to get rid of annoying
double prompts for passwords.
@@ -1046,78 +1029,78 @@ double prompts for passwords.
<title>Solaris-specific configuration</title>
<para>
-The /etc/pam.conf needs to be changed. I changed this file so that my Domain
-users can logon both locally as well as telnet.The following are the changes
-that I made.You can customize the pam.conf file as per your requirements,but
+The <filename>/etc/pam.conf</filename> needs to be changed. I changed this file so my Domain
+users can logon both locally as well as telnet. The following are the changes
+that I made. You can customize the <filename>pam.conf</filename> file as per your requirements, but
be sure of those changes because in the worst case it will leave your system
nearly impossible to boot.
</para>
<para><programlisting>
- #
- #ident "@(#)pam.conf 1.14 99/09/16 SMI"
- #
- # Copyright (c) 1996-1999, Sun Microsystems, Inc.
- # All Rights Reserved.
- #
- # PAM configuration
- #
- # Authentication management
- #
- login auth required /usr/lib/security/pam_winbind.so
- login auth required /usr/lib/security/$ISA/pam_unix.so.1 try_first_pass
- login auth required /usr/lib/security/$ISA/pam_dial_auth.so.1 try_first_pass
- #
- rlogin auth sufficient /usr/lib/security/pam_winbind.so
- rlogin auth sufficient /usr/lib/security/$ISA/pam_rhosts_auth.so.1
- rlogin auth required /usr/lib/security/$ISA/pam_unix.so.1 try_first_pass
- #
- dtlogin auth sufficient /usr/lib/security/pam_winbind.so
- dtlogin auth required /usr/lib/security/$ISA/pam_unix.so.1 try_first_pass
- #
- rsh auth required /usr/lib/security/$ISA/pam_rhosts_auth.so.1
- other auth sufficient /usr/lib/security/pam_winbind.so
- other auth required /usr/lib/security/$ISA/pam_unix.so.1 try_first_pass
- #
- # Account management
- #
- login account sufficient /usr/lib/security/pam_winbind.so
- login account requisite /usr/lib/security/$ISA/pam_roles.so.1
- login account required /usr/lib/security/$ISA/pam_unix.so.1
- #
- dtlogin account sufficient /usr/lib/security/pam_winbind.so
- dtlogin account requisite /usr/lib/security/$ISA/pam_roles.so.1
- dtlogin account required /usr/lib/security/$ISA/pam_unix.so.1
- #
- other account sufficient /usr/lib/security/pam_winbind.so
- other account requisite /usr/lib/security/$ISA/pam_roles.so.1
- other account required /usr/lib/security/$ISA/pam_unix.so.1
- #
- # Session management
- #
- other session required /usr/lib/security/$ISA/pam_unix.so.1
- #
- # Password management
- #
- #other password sufficient /usr/lib/security/pam_winbind.so
- other password required /usr/lib/security/$ISA/pam_unix.so.1
- dtsession auth required /usr/lib/security/$ISA/pam_unix.so.1
- #
- # Support for Kerberos V5 authentication (uncomment to use Kerberos)
- #
- #rlogin auth optional /usr/lib/security/$ISA/pam_krb5.so.1 try_first_pass
- #login auth optional /usr/lib/security/$ISA/pam_krb5.so.1 try_first_pass
- #dtlogin auth optional /usr/lib/security/$ISA/pam_krb5.so.1 try_first_pass
- #other auth optional /usr/lib/security/$ISA/pam_krb5.so.1 try_first_pass
- #dtlogin account optional /usr/lib/security/$ISA/pam_krb5.so.1
- #other account optional /usr/lib/security/$ISA/pam_krb5.so.1
- #other session optional /usr/lib/security/$ISA/pam_krb5.so.1
- #other password optional /usr/lib/security/$ISA/pam_krb5.so.1 try_first_pass
+#
+#ident "@(#)pam.conf 1.14 99/09/16 SMI"
+#
+# Copyright (c) 1996-1999, Sun Microsystems, Inc.
+# All Rights Reserved.
+#
+# PAM configuration
+#
+# Authentication management
+#
+login auth required /usr/lib/security/pam_winbind.so
+login auth required /usr/lib/security/$ISA/pam_UNIX.so.1 try_first_pass
+login auth required /usr/lib/security/$ISA/pam_dial_auth.so.1 try_first_pass
+#
+rlogin auth sufficient /usr/lib/security/pam_winbind.so
+rlogin auth sufficient /usr/lib/security/$ISA/pam_rhosts_auth.so.1
+rlogin auth required /usr/lib/security/$ISA/pam_UNIX.so.1 try_first_pass
+#
+dtlogin auth sufficient /usr/lib/security/pam_winbind.so
+dtlogin auth required /usr/lib/security/$ISA/pam_UNIX.so.1 try_first_pass
+#
+rsh auth required /usr/lib/security/$ISA/pam_rhosts_auth.so.1
+other auth sufficient /usr/lib/security/pam_winbind.so
+other auth required /usr/lib/security/$ISA/pam_UNIX.so.1 try_first_pass
+#
+# Account management
+#
+login account sufficient /usr/lib/security/pam_winbind.so
+login account requisite /usr/lib/security/$ISA/pam_roles.so.1
+login account required /usr/lib/security/$ISA/pam_UNIX.so.1
+#
+dtlogin account sufficient /usr/lib/security/pam_winbind.so
+dtlogin account requisite /usr/lib/security/$ISA/pam_roles.so.1
+dtlogin account required /usr/lib/security/$ISA/pam_UNIX.so.1
+#
+other account sufficient /usr/lib/security/pam_winbind.so
+other account requisite /usr/lib/security/$ISA/pam_roles.so.1
+other account required /usr/lib/security/$ISA/pam_UNIX.so.1
+#
+# Session management
+#
+other session required /usr/lib/security/$ISA/pam_UNIX.so.1
+#
+# Password management
+#
+#other password sufficient /usr/lib/security/pam_winbind.so
+other password required /usr/lib/security/$ISA/pam_UNIX.so.1
+dtsession auth required /usr/lib/security/$ISA/pam_UNIX.so.1
+#
+# Support for Kerberos V5 authentication (uncomment to use Kerberos)
+#
+#rlogin auth optional /usr/lib/security/$ISA/pam_krb5.so.1 try_first_pass
+#login auth optional /usr/lib/security/$ISA/pam_krb5.so.1 try_first_pass
+#dtlogin auth optional /usr/lib/security/$ISA/pam_krb5.so.1 try_first_pass
+#other auth optional /usr/lib/security/$ISA/pam_krb5.so.1 try_first_pass
+#dtlogin account optional /usr/lib/security/$ISA/pam_krb5.so.1
+#other account optional /usr/lib/security/$ISA/pam_krb5.so.1
+#other session optional /usr/lib/security/$ISA/pam_krb5.so.1
+#other password optional /usr/lib/security/$ISA/pam_krb5.so.1 try_first_pass
</programlisting></para>
<para>
-I also added a try_first_pass line after the winbind.so line to get rid of
-annoying double prompts for passwords.
+I also added a <parameter>try_first_pass</parameter> line after the <filename>winbind.so</filename>
+line to get rid of annoying double prompts for passwords.
</para>
<para>
@@ -1136,12 +1119,12 @@ configured in the pam.conf.
<sect1>
<title>Conclusion</title>
- <para>The winbind system, through the use of the Name Service
- Switch, Pluggable Authentication Modules, and appropriate
- Microsoft RPC calls have allowed us to provide seamless
- integration of Microsoft Windows NT domain users on a
- UNIX system. The result is a great reduction in the administrative
- cost of running a mixed UNIX and NT network.</para>
+<para>The Winbind system, through the use of the Name Service
+Switch, Pluggable Authentication Modules, and appropriate
+Microsoft RPC calls have allowed us to provide seamless
+integration of Microsoft Windows NT domain users on a
+UNIX system. The result is a great reduction in the administrative
+cost of running a mixed UNIX and NT network.</para>
</sect1>
@@ -1154,23 +1137,23 @@ configured in the pam.conf.
<itemizedlist>
<listitem><para>Winbind is currently only available for
- the Linux, Solaris, AIX and IRIX operating systems, although ports to other operating
+ the Linux, Solaris, AIX, and IRIX operating systems, although ports to other operating
systems are certainly possible. For such ports to be feasible,
we require the C library of the target operating system to
support the Name Service Switch and Pluggable Authentication
Modules systems. This is becoming more common as NSS and
PAM gain support among UNIX vendors.</para></listitem>
- <listitem><para>The mappings of Windows NT RIDs to UNIX ids
+ <listitem><para>The mappings of Windows NT RIDs to UNIX IDs
is not made algorithmically and depends on the order in which
- unmapped users or groups are seen by winbind. It may be difficult
- to recover the mappings of rid to UNIX id mapping if the file
+ unmapped users or groups are seen by Winbind. It may be difficult
+ to recover the mappings of RID to UNIX ID mapping if the file
containing this information is corrupted or destroyed.</para>
</listitem>
- <listitem><para>Currently the winbind PAM module does not take
+ <listitem><para>Currently the Winbind PAM module does not take
into account possible workstation and logon time restrictions
- that may be been set for Windows NT users, this is
+ that may be set for Windows NT users, this is
instead up to the PDC to enforce.</para></listitem>
</itemizedlist>
@@ -1179,19 +1162,67 @@ configured in the pam.conf.
<?latex \nopagebreak ?>
- <note><para>
- Do NOT under ANY circumstances run <command>nscd</command> on any system
- on which <command>winbind</command> is running.
- </para></note>
+ <warning><para>
+ Do not under any circumstances run <command>nscd</command> on any system
+ on which <command>winbindd</command> is running.
+ </para></warning>
<para>
If <command>nscd</command> is running on the UNIX/Linux system, then
- even though NSSWITCH is correctly configured it will NOT be possible to resolve
+ even though NSSWITCH is correctly configured it will not be possible to resolve
domain users and groups for file and directory controls.
</para>
</sect2>
+
+ <sect2>
+ <title>Winbind Is Not Resolving Users and Groups</title>
+
+ <para><quote>
+ My &smb.conf; file is correctly configured. I have specified
+ <smbconfoption><name>idmap uid</name><value>12000</value></smbconfoption>,
+ and <smbconfoption><name>idmap gid</name><value>3000-3500</value></smbconfoption>
+ and <command>winbind</command> is running. When I do the following it all works fine.
+ </quote></para>
+
+<para><screen>
+&rootprompt;<userinput>wbinfo -u</userinput>
+MIDEARTH+maryo
+MIDEARTH+jackb
+MIDEARTH+ameds
+...
+MIDEARTH+root
+
+&rootprompt;<userinput>wbinfo -g</userinput>
+MIDEARTH+Domain Users
+MIDEARTH+Domain Admins
+MIDEARTH+Domain Guests
+...
+MIDEARTH+Accounts
+
+&rootprompt;<userinput>getent passwd</userinput>
+root:x:0:0:root:/root:/bin/bash
+bin:x:1:1:bin:/bin:/bin/bash
+...
+maryo:x:15000:15003:Mary Orville:/home/MIDEARTH/maryo:/bin/false
+</screen></para>
+
+<para><quote>
+But the following command just fails:
+<screen>
+&rootprompt;<userinput>chown maryo a_file</userinput>
+chown: `maryo': invalid user
+</screen>
+This is driving me nuts! What can be wrong?
+</quote></para>
+
+<para>
+Same problem as the one above.
+Your system is likely running <command>nscd</command>, the name service
+caching daemon. Shut it down, do not restart it! You will find your problem resolved.
+</para>
+
+</sect2>
</sect1>
</chapter>
-