From bd1894dd2fb6108354526e702a4394f07b73d048 Mon Sep 17 00:00:00 2001 From: John Terpstra Date: Mon, 27 Jun 2005 22:57:35 +0000 Subject: [PATCH] Another Update. --- docs/Samba3-ByExample/index.xml | 10 +- .../TOSHARG-DNS-DHCP-Configuration.xml | 10 +- docs/Samba3-HOWTO/TOSHARG-IntroSMB.xml | 2 +- docs/Samba3-HOWTO/TOSHARG-Winbind.xml | 212 ++++++++++++++---- docs/Samba3-HOWTO/index.xml | 28 ++- 5 files changed, 202 insertions(+), 60 deletions(-) diff --git a/docs/Samba3-ByExample/index.xml b/docs/Samba3-ByExample/index.xml index ee94035c8aa..810c2abaf32 100644 --- a/docs/Samba3-ByExample/index.xml +++ b/docs/Samba3-ByExample/index.xml @@ -11,13 +11,12 @@ June, 2005 + - + - - @@ -31,6 +30,11 @@ + + + + + diff --git a/docs/Samba3-HOWTO/TOSHARG-DNS-DHCP-Configuration.xml b/docs/Samba3-HOWTO/TOSHARG-DNS-DHCP-Configuration.xml index eed0b31155c..4b509788316 100644 --- a/docs/Samba3-HOWTO/TOSHARG-DNS-DHCP-Configuration.xml +++ b/docs/Samba3-HOWTO/TOSHARG-DNS-DHCP-Configuration.xml @@ -50,17 +50,17 @@ configuration examples used elsewhere in this document. This chapter explicitly does not provide a tutorial, nor does it pretend to be a reference guide on DNS and DHCP, as this is well beyond the scope and intent of this document as a whole. Anyone who wants more detailed reference materials -on DNS or DHCP should visit the ISC Web site at -http://www.isc.org. Those wanting a written text might also be interested -in the O'Reilly publications on DNS, see the O'Reilly http://www.isc.org. +Those wanting a written text might also be interested in the O'Reilly publications on DNS, see the +O'Reilly web site, and the BIND9.NET web site for details. The books are: DNS and BIND, By Cricket Liu, Paul Albitz, ISBN: 1-56592-010-4 - DNS & Bind Cookbook, By Cricket Liu, ISBN: 0-596-00410-9 + DNS & Bind Cookbook, By Cricket Liu, ISBN: 0-596-00410-9 The DHCP Handbook (2nd Edition), By: Ralph Droms, Ted Lemon, ISBN 0-672-32327-3 diff --git a/docs/Samba3-HOWTO/TOSHARG-IntroSMB.xml b/docs/Samba3-HOWTO/TOSHARG-IntroSMB.xml index 547a55f43ae..826be6c80b0 100644 --- a/docs/Samba3-HOWTO/TOSHARG-IntroSMB.xml +++ b/docs/Samba3-HOWTO/TOSHARG-IntroSMB.xml @@ -6,7 +6,7 @@ June 29, 2003 -Preface and Introduction +Introduction A man's gift makes room for him before great men. Gifts are like hooks that can catch diff --git a/docs/Samba3-HOWTO/TOSHARG-Winbind.xml b/docs/Samba3-HOWTO/TOSHARG-Winbind.xml index 0a8c306dbfc..b976b4638ef 100644 --- a/docs/Samba3-HOWTO/TOSHARG-Winbind.xml +++ b/docs/Samba3-HOWTO/TOSHARG-Winbind.xml @@ -37,12 +37,18 @@ Features and Benefits +holy grail +heterogeneous computing Integration of UNIX and Microsoft Windows NT through a unified logon has been considered a holy grail in heterogeneous computing environments for a long time. +interoperability +domain user +domain group +group ownership There is one other facility without which UNIX and Microsoft Windows network interoperability would suffer greatly. It is imperative that there be a mechanism for sharing files across UNIX systems and to be able to assign @@ -50,6 +56,10 @@ +Pluggable Authentication ModulesPAM +winbind +NSS +RPC winbind 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 (PAMs), and the name service switch (NSS) to @@ -64,16 +74,27 @@ +ADS +NT4 domain Authentication of user credentials (via PAM). This makes it possible to log onto a UNIX/Linux system using user and group accounts from a Windows NT4 (including a Samba domain) or an Active Directory domain. +identity resolution +NSS Identity resolution (via NSS). This is the default when winbind is not used. +UID +GID +SID +idmap uid +idmap gid +idmap backend +LDAP 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 stores the UID/GID @@ -87,6 +108,10 @@ winbindd starting sambawinbindd +/etc/passwd +/etc/group +smbd +NSS If winbindd is not running, smbd (which calls winbindd) will fall back to using purely local information from /etc/passwd and /etc/group and no dynamic mapping will be used. On an operating system that has beeb enabled with the NSS, @@ -111,7 +136,10 @@ made it difficult to integrate the two systems in a satisfactory manner. - One common solution in use today has been to create + +synchronization problems +passwords + 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, because @@ -135,7 +163,10 @@ - Ideally, a prospective solution to the unified logon problem + +unified logon +duplication of information + Ideally, a prospective solution to the unified logon problem 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 @@ -148,14 +179,24 @@ What Winbind Provides - Winbind unifies UNIX and Windows NT account management by + +Windows account management +UNIX users +UNIX groups +NT domain + Winbind unifies UNIX and Windows NT account management by 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 to be used in much the same manner that NIS+ is used within UNIX-only environments. - The end result is that whenever a + +Winbind hooks +domain controller +NSS +redirection + The end result is that whenever a program on the UNIX machine asks the operating system to look up a user or group name, the query will be resolved by asking the NT domain controller for the specified domain to do the lookup. @@ -164,19 +205,26 @@ redirection to the NT domain controller is completely transparent. - Users on the UNIX machine can then use NT user and group + +user and group +domain user + Users on the UNIX machine can then use NT user and group names as they would native 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. - The only obvious indication that Winbind is being used is + +domain controller + 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 because it allows Winbind to determine that redirection to a domain controller is wanted for a particular lookup and which trusted domain is being referenced. - Additionally, Winbind provides an authentication service - that hooks into the PAM system + +PAM-enabled +domain controller + Additionally, Winbind provides an authentication service that hooks into the PAM system 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 @@ -185,7 +233,9 @@ Target Uses - Winbind is targeted at organizations that have an + +infrastructure + Winbind is targeted at organizations that have an 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 @@ -193,7 +243,10 @@ simplifies the administrative overhead of deploying UNIX workstations into an NT-based organization. - Another interesting way in which we expect Winbind to + +Appliances +Winbind + 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 will be able to use Winbind to provide seamless integration of @@ -204,6 +257,7 @@ Handling of Foreign SIDs +foreign SID The term foreign SID is often met with the reaction that it is not relevant to a particular environment. The following documents an interchange that took place on the Samba mailing list. It is a good example of the confusion @@ -211,17 +265,22 @@ +local domain Fact: Winbind is needed to handle users who use workstations that are NOT part of the local domain. +PDC Response: Why? I've used Samba with workstations that are not part of my domains lots of times without using winbind. I though winbind was for using Samba as a member server in a domain controlled by another Samba/Windows PDC. +UID +GID +foreign user If the Samba server will be accessed from a domain other than the local Samba domain, or if there will be access from machines that are not local domain members, winbind will permit the allocation of UIDs and GIDs from the assigned pool that will keep the identity @@ -229,8 +288,12 @@ +PDC +domain member +domain non-member +SID This means that winbind is eminently useful in cases where a single - Samba PDC on a local network is combined with both domain member and non-domain member workstations. + Samba PDC on a local network is combined with both domain member and domain non-member workstations. If winbind is not used, the user george on a Windows workstation that is not a domain member will be able to access the files of a user called george in the account database of the Samba server that is acting as a PDC. When winbind is used, the default condition @@ -247,7 +310,12 @@ How Winbind Works - The Winbind system is designed around a client/server + +winbindd +UNIX domain socket +NSS +PAM + The Winbind system is designed around a client/server architecture. A long-running winbindd daemon listens on a UNIX domain socket waiting for requests to arrive. These requests are generated by the NSS and PAM @@ -259,7 +327,13 @@ Microsoft Remote Procedure Calls - Over the last few years, efforts have been underway + +Microsoft Remote Procedure CallMSRPC +PDC +remote management +user authentication +print spooling + 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 @@ -269,7 +343,11 @@ functionality in Samba, it has also yielded a body of code that can be used for other purposes. - Winbind uses various MSRPC calls to enumerate domain users + +MSRPC +enumerate domain users +enumerate domain groups + 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 @@ -281,21 +359,26 @@ Microsoft Active Directory Services - 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 Windows 200x client would, and in so doing - provide a much more efficient and effective Winbind implementation. - +LDAP +Kerberos +Winbind +native mode + 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 Windows 200x client would, and in so doing + provide a much more efficient and effective Winbind implementation. + Name Service Switch - The NSS is a feature that is - present in many UNIX operating systems. It allows system + +NSS +networked workstation +NIS +DNS + The NSS is a feature that is present in many UNIX operating systems. It allows system information such as hostnames, mail aliases, and user information to be resolved from different sources. For example, a standalone UNIX workstation may resolve system information from a series of @@ -304,7 +387,13 @@ and then consult an NIS database for user information or a DNS server for hostname information. - The NSS application programming interface allows Winbind + +NSS +MSRPC +trusted domain +local users +local groups + 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 and information obtained from a Windows NT server using MSRPC @@ -314,21 +403,25 @@ an NT domain plus any trusted domain as though they were local users and groups. - The primary control file for NSS is - /etc/nsswitch.conf. + +NSS +/etc/nsswitch.conf +passwd + The primary control file for NSS is /etc/nsswitch.conf. When a UNIX application makes a request to do a lookup, the C library looks in /etc/nsswitch.conf for a line that 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 of that service should be tried and in what order. If the passwd - config line is: - - - passwd: files example - - - then the C library will first load a module called + config line is: + +passwd: files example + +/lib/libnss_files.so +/lib/libnss_example.so +resolver functions + then the C library will first load a module called /lib/libnss_files.so followed by the module /lib/libnss_example.so. The C library will dynamically load each of these modules in turn @@ -336,7 +429,11 @@ the request. Once the request is resolved, the C library returns the result to the application. - This NSS interface provides an easy way for Winbind + +NSS +libnss_winbind.so +/etc/nsswitch.conf + This NSS interface provides an easy way for Winbind to hook into the operating system. All that needs to be done is to put libnss_winbind.so in /lib/ then add winbind into /etc/nsswitch.conf at @@ -347,8 +444,12 @@ Pluggable Authentication Modules - PAMs provide - a system for abstracting authentication and authorization + +PAM +authentication methods +authorization +NIS database + PAMs provide a system for abstracting authentication and authorization technologies. With a PAM module, it is possible to specify different authentication methods for different system applications without having to recompile these applications. PAM is also useful @@ -357,7 +458,13 @@ stored in the local password file but only allow users resolved from an NIS database to log in over the network. - Winbind uses the authentication management and password + +PAM +Winbind +authentication management +password management +PDC + Winbind uses the authentication management and password management PAM interface to integrate Windows NT users into a UNIX system. This allows Windows NT users to log in to a UNIX machine and be authenticated against a suitable PDC. @@ -365,7 +472,12 @@ this change take effect directly on the PDC. - PAM is configured by providing control files in the directory + +PAM +/etc/pam.d/ +pam_winbind.so +/lib/security/ + PAM is configured by providing control files in the directory /etc/pam.d/ 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 @@ -383,7 +495,11 @@ User and Group ID Allocation - When a user or group is created under Windows NT/200x, + +RID +Winbind +UNIX ID + 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 used to identify @@ -396,7 +512,12 @@ time, Winbind will have mapped all Windows NT users and groups to UNIX user IDs and group IDs. - The results of this mapping are stored persistently in + +ID mapping database +tdb +UNIX ID +RID + The results of this mapping are stored persistently in an ID mapping database held in a tdb database. This ensures that RIDs are mapped to UNIX IDs in a consistent way. @@ -407,7 +528,11 @@ SAM - An active system can generate a lot of user and group +caching scheme +Winbind +ADS +PDC + An active directory 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 @@ -430,6 +555,9 @@ Introduction +Winbind +PDC +authentication control 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 diff --git a/docs/Samba3-HOWTO/index.xml b/docs/Samba3-HOWTO/index.xml index 05792762cf4..c9949704e94 100644 --- a/docs/Samba3-HOWTO/index.xml +++ b/docs/Samba3-HOWTO/index.xml @@ -14,7 +14,11 @@ - + + + + + @@ -22,23 +26,27 @@ - - - - - - - - + + + + + + + + + + + + General Installation @@ -55,6 +63,8 @@ PLEASE read this. + +