diff options
Diffstat (limited to 'docs/htmldocs/Samba3-HOWTO/pam.html')
-rw-r--r-- | docs/htmldocs/Samba3-HOWTO/pam.html | 278 |
1 files changed, 139 insertions, 139 deletions
diff --git a/docs/htmldocs/Samba3-HOWTO/pam.html b/docs/htmldocs/Samba3-HOWTO/pam.html index 3186987003..7052ae5959 100644 --- a/docs/htmldocs/Samba3-HOWTO/pam.html +++ b/docs/htmldocs/Samba3-HOWTO/pam.html @@ -1,30 +1,30 @@ -<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter 28. PAM-Based Distributed Authentication</title><link rel="stylesheet" href="../samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.74.0"><link rel="home" href="index.html" title="The Official Samba 3.5.x HOWTO and Reference Guide"><link rel="up" href="optional.html" title="Part III. Advanced Configuration"><link rel="prev" href="ProfileMgmt.html" title="Chapter 27. Desktop Profile Management"><link rel="next" href="integrate-ms-networks.html" title="Chapter 29. Integrating MS Windows Networks with Samba"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 28. PAM-Based Distributed Authentication</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ProfileMgmt.html">Prev</a> </td><th width="60%" align="center">Part III. Advanced Configuration</th><td width="20%" align="right"> <a accesskey="n" href="integrate-ms-networks.html">Next</a></td></tr></table><hr></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="pam"></a>Chapter 28. PAM-Based Distributed Authentication</h2></div><div><div class="author"><h3 class="author"><span class="firstname">John</span> <span class="othername">H.</span> <span class="orgname">Samba Team</span> <span class="surname">Terpstra</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><code class="email"><<a class="email" href="mailto:jht@samba.org">jht@samba.org</a>></code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">Stephen</span> <span class="surname">Langasek</span></h3><div class="affiliation"><div class="address"><p><code class="email"><<a class="email" href="mailto:vorlon@netexpress.net">vorlon@netexpress.net</a>></code></p></div></div></div></div><div><p class="pubdate">May 31, 2003</p></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="pam.html#id2665025">Features and Benefits</a></span></dt><dt><span class="sect1"><a href="pam.html#id2665655">Technical Discussion</a></span></dt><dd><dl><dt><span class="sect2"><a href="pam.html#id2665709">PAM Configuration Syntax</a></span></dt><dt><span class="sect2"><a href="pam.html#id2666709">Example System Configurations</a></span></dt><dt><span class="sect2"><a href="pam.html#id2667015">smb.conf PAM Configuration</a></span></dt><dt><span class="sect2"><a href="pam.html#id2667096">Remote CIFS Authentication Using winbindd.so</a></span></dt><dt><span class="sect2"><a href="pam.html#id2667199">Password Synchronization Using pam_smbpass.so</a></span></dt></dl></dd><dt><span class="sect1"><a href="pam.html#id2667593">Common Errors</a></span></dt><dd><dl><dt><span class="sect2"><a href="pam.html#id2667604">pam_winbind Problem</a></span></dt><dt><span class="sect2"><a href="pam.html#id2667702">Winbind Is Not Resolving Users and Groups</a></span></dt></dl></dd></dl></div><p> -<a class="indexterm" name="id2664949"></a> -<a class="indexterm" name="id2664956"></a> -<a class="indexterm" name="id2664963"></a> -<a class="indexterm" name="id2664969"></a> +<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter 28. PAM-Based Distributed Authentication</title><link rel="stylesheet" href="../samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.75.2"><link rel="home" href="index.html" title="The Official Samba 3.5.x HOWTO and Reference Guide"><link rel="up" href="optional.html" title="Part III. Advanced Configuration"><link rel="prev" href="ProfileMgmt.html" title="Chapter 27. Desktop Profile Management"><link rel="next" href="integrate-ms-networks.html" title="Chapter 29. Integrating MS Windows Networks with Samba"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 28. PAM-Based Distributed Authentication</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ProfileMgmt.html">Prev</a> </td><th width="60%" align="center">Part III. Advanced Configuration</th><td width="20%" align="right"> <a accesskey="n" href="integrate-ms-networks.html">Next</a></td></tr></table><hr></div><div class="chapter" title="Chapter 28. PAM-Based Distributed Authentication"><div class="titlepage"><div><div><h2 class="title"><a name="pam"></a>Chapter 28. PAM-Based Distributed Authentication</h2></div><div><div class="author"><h3 class="author"><span class="firstname">John</span> <span class="othername">H.</span> <span class="surname">Terpstra</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><code class="email"><<a class="email" href="mailto:jht@samba.org">jht@samba.org</a>></code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">Stephen</span> <span class="surname">Langasek</span></h3><div class="affiliation"><div class="address"><p><code class="email"><<a class="email" href="mailto:vorlon@netexpress.net">vorlon@netexpress.net</a>></code></p></div></div></div></div><div><p class="pubdate">May 31, 2003</p></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="pam.html#id428310">Features and Benefits</a></span></dt><dt><span class="sect1"><a href="pam.html#id428910">Technical Discussion</a></span></dt><dd><dl><dt><span class="sect2"><a href="pam.html#id428961">PAM Configuration Syntax</a></span></dt><dt><span class="sect2"><a href="pam.html#id429866">Example System Configurations</a></span></dt><dt><span class="sect2"><a href="pam.html#id430135"><code class="filename">smb.conf</code> PAM Configuration</a></span></dt><dt><span class="sect2"><a href="pam.html#id430207">Remote CIFS Authentication Using <code class="filename">winbindd.so</code></a></span></dt><dt><span class="sect2"><a href="pam.html#id430295">Password Synchronization Using <code class="filename">pam_smbpass.so</code></a></span></dt></dl></dd><dt><span class="sect1"><a href="pam.html#id430652">Common Errors</a></span></dt><dd><dl><dt><span class="sect2"><a href="pam.html#id430662">pam_winbind Problem</a></span></dt><dt><span class="sect2"><a href="pam.html#id430751">Winbind Is Not Resolving Users and Groups</a></span></dt></dl></dd></dl></div><p> +<a class="indexterm" name="id428241"></a> +<a class="indexterm" name="id428248"></a> +<a class="indexterm" name="id428255"></a> +<a class="indexterm" name="id428261"></a> This chapter should help you to deploy Winbind-based authentication on any PAM-enabled UNIX/Linux system. Winbind can be used to enable user-level application access authentication from any MS Windows NT domain, MS Windows 200x Active Directory-based domain, or any Samba-based domain environment. It will also help you to configure PAM-based local host access controls that are appropriate to your Samba configuration. </p><p> -<a class="indexterm" name="id2664987"></a> -<a class="indexterm" name="id2664994"></a> +<a class="indexterm" name="id428275"></a> +<a class="indexterm" name="id428282"></a> In addition to knowing how to configure Winbind into PAM, you will learn generic PAM management possibilities and in particular how to deploy tools like <code class="filename">pam_smbpass.so</code> to your advantage. -</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p> +</p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p> The use of Winbind requires more than PAM configuration alone. Please refer to <a class="link" href="winbind.html" title="Chapter 24. Winbind: Use of Domain Accounts">Winbind: Use of Domain Accounts</a>, for further information regarding Winbind. -</p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2665025"></a>Features and Benefits</h2></div></div></div><p> -<a class="indexterm" name="id2665033"></a> -<a class="indexterm" name="id2665039"></a> -<a class="indexterm" name="id2665046"></a> -<a class="indexterm" name="id2665053"></a> -<a class="indexterm" name="id2665062"></a> -<a class="indexterm" name="id2665069"></a> -<a class="indexterm" name="id2665076"></a> -<a class="indexterm" name="id2665083"></a> +</p></div><div class="sect1" title="Features and Benefits"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id428310"></a>Features and Benefits</h2></div></div></div><p> +<a class="indexterm" name="id428317"></a> +<a class="indexterm" name="id428324"></a> +<a class="indexterm" name="id428331"></a> +<a class="indexterm" name="id428338"></a> +<a class="indexterm" name="id428347"></a> +<a class="indexterm" name="id428354"></a> +<a class="indexterm" name="id428360"></a> +<a class="indexterm" name="id428367"></a> A number of UNIX systems (e.g., Sun Solaris), as well as the xxxxBSD family and Linux, now utilize the Pluggable Authentication Modules (PAM) facility to provide all authentication, authorization, and resource control services. Prior to the introduction of PAM, a decision @@ -33,17 +33,17 @@ would require the provision of alternatives for all programs that provide securi Such a choice would involve provision of alternatives to programs such as <code class="literal">login</code>, <code class="literal">passwd</code>, <code class="literal">chown</code>, and so on. </p><p> -<a class="indexterm" name="id2665124"></a> -<a class="indexterm" name="id2665131"></a> -<a class="indexterm" name="id2665138"></a> -<a class="indexterm" name="id2665145"></a> +<a class="indexterm" name="id428405"></a> +<a class="indexterm" name="id428412"></a> +<a class="indexterm" name="id428418"></a> +<a class="indexterm" name="id428425"></a> PAM provides a mechanism that disconnects these security programs from the underlying authentication/authorization infrastructure. PAM is configured by making appropriate modifications to one file, <code class="filename">/etc/pam.conf</code> (Solaris), or by editing individual control files that are located in <code class="filename">/etc/pam.d</code>. </p><p> -<a class="indexterm" name="id2665171"></a> -<a class="indexterm" name="id2665178"></a> +<a class="indexterm" name="id428449"></a> +<a class="indexterm" name="id428456"></a> On PAM-enabled UNIX/Linux systems, it is an easy matter to configure the system to use any authentication backend so long as the appropriate dynamically loadable library modules are available for it. The backend may be local to the system or may be centralized on a @@ -51,105 +51,105 @@ remote server. </p><p> PAM support modules are available for: </p><div class="variablelist"><dl><dt><span class="term"><code class="filename">/etc/passwd</code></span></dt><dd><p> -<a class="indexterm" name="id2665208"></a> -<a class="indexterm" name="id2665215"></a> -<a class="indexterm" name="id2665222"></a> -<a class="indexterm" name="id2665229"></a> -<a class="indexterm" name="id2665236"></a> -<a class="indexterm" name="id2665242"></a> +<a class="indexterm" name="id428483"></a> +<a class="indexterm" name="id428490"></a> +<a class="indexterm" name="id428497"></a> +<a class="indexterm" name="id428504"></a> +<a class="indexterm" name="id428510"></a> +<a class="indexterm" name="id428517"></a> There are several PAM modules that interact with this standard UNIX user database. The most common are called <code class="filename">pam_unix.so</code>, <code class="filename">pam_unix2.so</code>, <code class="filename">pam_pwdb.so</code> and <code class="filename">pam_userdb.so</code>. </p></dd><dt><span class="term">Kerberos</span></dt><dd><p> -<a class="indexterm" name="id2665285"></a> -<a class="indexterm" name="id2665292"></a> -<a class="indexterm" name="id2665299"></a> -<a class="indexterm" name="id2665305"></a> -<a class="indexterm" name="id2665312"></a> +<a class="indexterm" name="id428558"></a> +<a class="indexterm" name="id428565"></a> +<a class="indexterm" name="id428572"></a> +<a class="indexterm" name="id428579"></a> +<a class="indexterm" name="id428586"></a> The <code class="filename">pam_krb5.so</code> module allows the use of any Kerberos-compliant server. This tool is used to access MIT Kerberos, Heimdal Kerberos, and potentially Microsoft Active Directory (if enabled). </p></dd><dt><span class="term">LDAP</span></dt><dd><p> -<a class="indexterm" name="id2665338"></a> -<a class="indexterm" name="id2665345"></a> -<a class="indexterm" name="id2665352"></a> -<a class="indexterm" name="id2665358"></a> -<a class="indexterm" name="id2665365"></a> -<a class="indexterm" name="id2665372"></a> +<a class="indexterm" name="id428610"></a> +<a class="indexterm" name="id428616"></a> +<a class="indexterm" name="id428623"></a> +<a class="indexterm" name="id428630"></a> +<a class="indexterm" name="id428637"></a> +<a class="indexterm" name="id428644"></a> The <code class="filename">pam_ldap.so</code> module allows the use of any LDAP v2- or v3-compatible backend server. Commonly used LDAP backend servers include OpenLDAP v2.0 and v2.1, Sun ONE iDentity server, Novell eDirectory server, and Microsoft Active Directory. </p></dd><dt><span class="term">NetWare Bindery</span></dt><dd><p> -<a class="indexterm" name="id2665400"></a> -<a class="indexterm" name="id2665406"></a> -<a class="indexterm" name="id2665413"></a> -<a class="indexterm" name="id2665420"></a> +<a class="indexterm" name="id428669"></a> +<a class="indexterm" name="id428675"></a> +<a class="indexterm" name="id428682"></a> +<a class="indexterm" name="id428689"></a> The <code class="filename">pam_ncp_auth.so</code> module allows authentication off any bindery-enabled NetWare Core Protocol-based server. </p></dd><dt><span class="term">SMB Password</span></dt><dd><p> -<a class="indexterm" name="id2665445"></a> -<a class="indexterm" name="id2665452"></a> -<a class="indexterm" name="id2665459"></a> +<a class="indexterm" name="id428713"></a> +<a class="indexterm" name="id428720"></a> +<a class="indexterm" name="id428726"></a> This module, called <code class="filename">pam_smbpass.so</code>, allows user authentication of the passdb backend that is configured in the Samba <code class="filename">smb.conf</code> file. </p></dd><dt><span class="term">SMB Server</span></dt><dd><p> -<a class="indexterm" name="id2665490"></a> -<a class="indexterm" name="id2665497"></a> +<a class="indexterm" name="id428756"></a> +<a class="indexterm" name="id428763"></a> The <code class="filename">pam_smb_auth.so</code> module is the original MS Windows networking authentication tool. This module has been somewhat outdated by the Winbind module. </p></dd><dt><span class="term">Winbind</span></dt><dd><p> -<a class="indexterm" name="id2665522"></a> -<a class="indexterm" name="id2665529"></a> -<a class="indexterm" name="id2665536"></a> -<a class="indexterm" name="id2665543"></a> +<a class="indexterm" name="id428786"></a> +<a class="indexterm" name="id428793"></a> +<a class="indexterm" name="id428800"></a> +<a class="indexterm" name="id428807"></a> The <code class="filename">pam_winbind.so</code> module allows Samba to obtain authentication from any MS Windows domain controller. It can just as easily be used to authenticate users for access to any PAM-enabled application. </p></dd><dt><span class="term">RADIUS</span></dt><dd><p> -<a class="indexterm" name="id2665569"></a> +<a class="indexterm" name="id428831"></a> There is a PAM RADIUS (Remote Access Dial-In User Service) authentication module. In most cases, administrators need to locate the source code for this tool and compile and install it themselves. RADIUS protocols are used by many routers and terminal servers. </p></dd></dl></div><p> -<a class="indexterm" name="id2665589"></a> -<a class="indexterm" name="id2665596"></a> +<a class="indexterm" name="id428848"></a> +<a class="indexterm" name="id428855"></a> Of the modules listed, Samba provides the <code class="filename">pam_smbpasswd.so</code> and the <code class="filename">pam_winbind.so</code> modules alone. </p><p> -<a class="indexterm" name="id2665619"></a> -<a class="indexterm" name="id2665626"></a> -<a class="indexterm" name="id2665633"></a> -<a class="indexterm" name="id2665640"></a> +<a class="indexterm" name="id428878"></a> +<a class="indexterm" name="id428885"></a> +<a class="indexterm" name="id428892"></a> +<a class="indexterm" name="id428898"></a> Once configured, these permit a remarkable level of flexibility in the location and use of distributed Samba domain controllers that can provide wide-area network bandwidth, efficient authentication services for PAM-capable systems. In effect, this allows the deployment of centrally managed and maintained distributed authentication from a single-user account database. -</p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2665655"></a>Technical Discussion</h2></div></div></div><p> -<a class="indexterm" name="id2665663"></a> -<a class="indexterm" name="id2665670"></a> -<a class="indexterm" name="id2665677"></a> -<a class="indexterm" name="id2665684"></a> +</p></div><div class="sect1" title="Technical Discussion"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id428910"></a>Technical Discussion</h2></div></div></div><p> +<a class="indexterm" name="id428918"></a> +<a class="indexterm" name="id428925"></a> +<a class="indexterm" name="id428932"></a> +<a class="indexterm" name="id428938"></a> PAM is designed to provide system administrators with a great deal of flexibility in configuration of the privilege-granting applications of their system. The local configuration of system security controlled by PAM is contained in one of two places: either the single system file <code class="filename">/etc/pam.conf</code> or the <code class="filename">/etc/pam.d/</code> directory. -</p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2665709"></a>PAM Configuration Syntax</h3></div></div></div><p> -<a class="indexterm" name="id2665717"></a> -<a class="indexterm" name="id2665724"></a> +</p><div class="sect2" title="PAM Configuration Syntax"><div class="titlepage"><div><div><h3 class="title"><a name="id428961"></a>PAM Configuration Syntax</h3></div></div></div><p> +<a class="indexterm" name="id428969"></a> +<a class="indexterm" name="id428976"></a> In this section we discuss the correct syntax of and generic options respected by entries to these files. PAM-specific tokens in the configuration file are case insensitive. The module paths, however, are case sensitive, since they indicate a file's name and reflect the case dependence of typical file systems. The case sensitivity of the arguments to any given module is defined for each module in turn. </p><p> In addition to the lines described below, there are two special characters provided for the convenience -of the system administrator: comments are preceded by a “<span class="quote">#</span>” and extend to the next end-of-line; also, -module specification lines may be extended with a “<span class="quote">\</span>”-escaped newline. +of the system administrator: comments are preceded by a <span class="quote">“<span class="quote">#</span>”</span> and extend to the next end-of-line; also, +module specification lines may be extended with a <span class="quote">“<span class="quote">\</span>”</span>-escaped newline. </p><p> -<a class="indexterm" name="id2665755"></a> -<a class="indexterm" name="id2665762"></a> +<a class="indexterm" name="id429001"></a> +<a class="indexterm" name="id429008"></a> If the PAM authentication module (loadable link library file) is located in the default location, then it is not necessary to specify the path. In the case of Linux, the default location is <code class="filename">/lib/security</code>. If the module @@ -157,12 +157,12 @@ is located outside the default, then the path must be specified as: </p><pre class="programlisting"> auth required /other_path/pam_strange_module.so </pre><p> -</p><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2665788"></a>Anatomy of <code class="filename">/etc/pam.d</code> Entries</h4></div></div></div><p> +</p><div class="sect3" title="Anatomy of /etc/pam.d Entries"><div class="titlepage"><div><div><h4 class="title"><a name="id429030"></a>Anatomy of <code class="filename">/etc/pam.d</code> Entries</h4></div></div></div><p> The remaining information in this subsection was taken from the documentation of the Linux-PAM project. For more information on PAM, see <a class="ulink" href="http://ftp.kernel.org/pub/linux/libs/pam/" target="_top">the Official Linux-PAM home page</a>. </p><p> -<a class="indexterm" name="id2665814"></a> +<a class="indexterm" name="id429055"></a> A general configuration line of the <code class="filename">/etc/pam.conf</code> file has the following form: </p><pre class="programlisting"> service-name module-type control-flag module-path args @@ -172,9 +172,9 @@ We explain the meaning of each of these tokens. The second (and more recently ad way of configuring Linux-PAM is via the contents of the <code class="filename">/etc/pam.d/</code> directory. Once we have explained the meaning of the tokens, we describe this method. </p><div class="variablelist"><dl><dt><span class="term">service-name</span></dt><dd><p> -<a class="indexterm" name="id2665859"></a> -<a class="indexterm" name="id2665866"></a> -<a class="indexterm" name="id2665873"></a> +<a class="indexterm" name="id429096"></a> +<a class="indexterm" name="id429103"></a> +<a class="indexterm" name="id429110"></a> The name of the service associated with this entry. Frequently, the service-name is the conventional name of the given application for example, <code class="literal">ftpd</code>, <code class="literal">rlogind</code> and <code class="literal">su</code>, and so on. @@ -185,32 +185,32 @@ Once we have explained the meaning of the tokens, we describe this method. entries are ignored. </p></dd><dt><span class="term">module-type</span></dt><dd><p> One of (currently) four types of module. The four types are as follows: - </p><div class="itemizedlist"><ul type="disc"><li><p> -<a class="indexterm" name="id2665941"></a> -<a class="indexterm" name="id2665947"></a> + </p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p> +<a class="indexterm" name="id429174"></a> +<a class="indexterm" name="id429181"></a> <em class="parameter"><code>auth:</code></em> This module type provides two aspects of authenticating the user. It establishes that the user is who he or she claims to be by instructing the application to prompt the user for a password or other means of identification. Second, the module can grant group membership (independently of the <code class="filename">/etc/groups</code> file) or other privileges through its credential-granting properties. - </p></li><li><p> -<a class="indexterm" name="id2665977"></a> -<a class="indexterm" name="id2665983"></a> + </p></li><li class="listitem"><p> +<a class="indexterm" name="id429207"></a> +<a class="indexterm" name="id429213"></a> <em class="parameter"><code>account:</code></em> This module performs non-authentication-based account management. It is typically used to restrict/permit access to a service based on the time of day, currently available system resources (maximum number of users), or perhaps the location of the user - login. For example, the “<span class="quote">root</span>” login may be permitted only on the console. - </p></li><li><p> -<a class="indexterm" name="id2666010"></a> + login. For example, the <span class="quote">“<span class="quote">root</span>”</span> login may be permitted only on the console. + </p></li><li class="listitem"><p> +<a class="indexterm" name="id429237"></a> <em class="parameter"><code>session:</code></em> Primarily, this module is associated with doing things that need to be done for the user before and after he or she can be given service. Such things include logging information concerning the opening and closing of some data exchange with a user, mounting directories, and so on. - </p></li><li><p> -<a class="indexterm" name="id2666032"></a> + </p></li><li class="listitem"><p> +<a class="indexterm" name="id429256"></a> <em class="parameter"><code>password:</code></em> This last module type is required for updating the authentication token associated with the user. Typically, there is one module for each - “<span class="quote">challenge/response</span>” authentication <em class="parameter"><code>(auth)</code></em> module type. + <span class="quote">“<span class="quote">challenge/response</span>”</span> authentication <em class="parameter"><code>(auth)</code></em> module type. </p></li></ul></div></dd><dt><span class="term">control-flag</span></dt><dd><p> The control-flag is used to indicate how the PAM library will react to the success or failure of the module it is associated with. Since modules can be stacked (modules of the same type execute in series, @@ -221,21 +221,21 @@ Once we have explained the meaning of the tokens, we describe this method. <code class="filename">/etc/pam.conf</code> file; earlier entries are executed before later ones. As of Linux-PAM v0.60, this control-flag can be defined with one of two syntaxes. </p><p> -<a class="indexterm" name="id2666096"></a> -<a class="indexterm" name="id2666103"></a> -<a class="indexterm" name="id2666110"></a> -<a class="indexterm" name="id2666117"></a> +<a class="indexterm" name="id429313"></a> +<a class="indexterm" name="id429320"></a> +<a class="indexterm" name="id429326"></a> +<a class="indexterm" name="id429333"></a> The simpler (and historical) syntax for the control-flag is a single keyword defined to indicate the severity of concern associated with the success or failure of a specific module. There are four such keywords: <em class="parameter"><code>required</code></em>, <em class="parameter"><code>requisite</code></em>, <em class="parameter"><code>sufficient</code></em>, and <em class="parameter"><code>optional</code></em>. </p><p> The Linux-PAM library interprets these keywords in the following manner: - </p><div class="itemizedlist"><ul type="disc"><li><p> + </p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p> <em class="parameter"><code>required:</code></em> This indicates that the success of the module is required for the module-type facility to succeed. Failure of this module will not be apparent to the user until all of the remaining modules (of the same module-type) have been executed. - </p></li><li><p> + </p></li><li class="listitem"><p> <em class="parameter"><code>requisite:</code></em> Like required, except that if such a module returns a failure, control is directly returned to the application. The return value is that associated with the first required or requisite module to fail. This flag can be used to protect against the @@ -243,13 +243,13 @@ Once we have explained the meaning of the tokens, we describe this method. conceivable that such behavior might inform an attacker of valid accounts on a system. This possibility should be weighed against the not insignificant concerns of exposing a sensitive password in a hostile environment. - </p></li><li><p> + </p></li><li class="listitem"><p> <em class="parameter"><code>sufficient:</code></em> The success of this module is deemed <em class="parameter"><code>sufficient</code></em> to satisfy the Linux-PAM library that this module-type has succeeded in its purpose. In the event that no - previous required module has failed, no more “<span class="quote">stacked</span>” modules of this type are invoked. + previous required module has failed, no more <span class="quote">“<span class="quote">stacked</span>”</span> modules of this type are invoked. (In this case, subsequent required modules are not invoked). A failure of this module is not deemed as fatal to satisfying the application that this module-type has succeeded. - </p></li><li><p> + </p></li><li class="listitem"><p> <em class="parameter"><code>optional:</code></em> As its name suggests, this control-flag marks the module as not being critical to the success or failure of the user's application for service. In general, Linux-PAM ignores such a module when determining if the module stack will succeed or fail. @@ -283,26 +283,26 @@ Once we have explained the meaning of the tokens, we describe this method. current module-type will be skipped. In this way, the administrator can develop a moderately sophisticated stack of modules with a number of different paths of execution. Which path is taken can be determined by the reactions of individual modules. - </p><div class="itemizedlist"><ul type="disc"><li><p> + </p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p> <em class="parameter"><code>ignore:</code></em> When used with a stack of modules, the module's return status will not contribute to the return code the application obtains. - </p></li><li><p> + </p></li><li class="listitem"><p> <em class="parameter"><code>bad:</code></em> This action indicates that the return code should be thought of as indicative of the module failing. If this module is the first in the stack to fail, its status value will be used for that of the whole stack. - </p></li><li><p> + </p></li><li class="listitem"><p> <em class="parameter"><code>die:</code></em> Equivalent to bad with the side effect of terminating the module stack and PAM immediately returning to the application. - </p></li><li><p> + </p></li><li class="listitem"><p> <em class="parameter"><code>ok:</code></em> This tells PAM that the administrator thinks this return code should contribute directly to the return code of the full stack of modules. In other words, if the former state of the stack would lead to a return of PAM_SUCCESS, the module's return code will override this value. Note, if the former state of the stack holds some value that is indicative of a module's failure, this <em class="parameter"><code>ok</code></em> value will not be used to override that value. - </p></li><li><p> + </p></li><li class="listitem"><p> <em class="parameter"><code>done:</code></em> Equivalent to <em class="parameter"><code>ok</code></em> with the side effect of terminating the module stack and PAM immediately returning to the application. - </p></li><li><p> + </p></li><li class="listitem"><p> <em class="parameter"><code>reset:</code></em> Clears all memory of the state of the module stack and starts again with the next stacked module. </p></li></ul></div><p> @@ -310,13 +310,13 @@ Once we have explained the meaning of the tokens, we describe this method. <em class="parameter"><code>sufficient</code></em>; and <em class="parameter"><code>optional</code></em>, have an equivalent expression in terms of the [...] syntax. They are as follows: </p><p> - </p><div class="itemizedlist"><ul type="disc"><li><p> + </p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p> <em class="parameter"><code>required</code></em> is equivalent to <em class="parameter"><code>[success=ok new_authtok_reqd=ok ignore=ignore default=bad]</code></em>. - </p></li><li><p> + </p></li><li class="listitem"><p> <em class="parameter"><code>requisite</code></em> is equivalent to <em class="parameter"><code>[success=ok new_authtok_reqd=ok ignore=ignore default=die]</code></em>. - </p></li><li><p> + </p></li><li class="listitem"><p> <em class="parameter"><code>sufficient</code></em> is equivalent to <em class="parameter"><code>[success=done new_authtok_reqd=done default=ignore]</code></em>. - </p></li><li><p> + </p></li><li class="listitem"><p> <em class="parameter"><code>optional</code></em> is equivalent to <em class="parameter"><code>[success=ok new_authtok_reqd=ok default=ignore]</code></em>. </p></li></ul></div><p> </p><p> @@ -328,7 +328,7 @@ Once we have explained the meaning of the tokens, we describe this method. mode for legacy applications. </p></dd><dt><span class="term">module-path</span></dt><dd><p> The pathname of the dynamically loadable object file; the pluggable module itself. If the first character of the - module path is “<span class="quote">/</span>”, it is assumed to be a complete path. If this is not the case, the given module path is appended + module path is <span class="quote">“<span class="quote">/</span>”</span>, it is assumed to be a complete path. If this is not the case, the given module path is appended to the default module path: <code class="filename">/lib/security</code> (but see the previous notes). </p><p> The arguments are a list of tokens that are passed to the module when it is invoked, much like arguments to a typical @@ -340,26 +340,26 @@ Once we have explained the meaning of the tokens, we describe this method. </p><pre class="programlisting"> squid auth required pam_mysql.so user=passwd_query passwd=mada \ db=eminence [query=select user_name from internet_service where \ -user_name=“<span class="quote">%u</span>” and password=PASSWORD(“<span class="quote">%p</span>”) and service=“<span class="quote">web_proxy</span>”] +user_name=<span class="quote">“<span class="quote">%u</span>”</span> and password=PASSWORD(<span class="quote">“<span class="quote">%p</span>”</span>) and service=<span class="quote">“<span class="quote">web_proxy</span>”</span>] </pre><p> - When using this convention, you can include “<span class="quote">[</span>” characters inside the string, and if you wish to have a “<span class="quote">]</span>” - character inside the string that will survive the argument parsing, you should use “<span class="quote">\[</span>”. In other words, + When using this convention, you can include <span class="quote">“<span class="quote">[</span>”</span> characters inside the string, and if you wish to have a <span class="quote">“<span class="quote">]</span>”</span> + character inside the string that will survive the argument parsing, you should use <span class="quote">“<span class="quote">\[</span>”</span>. In other words, </p><pre class="programlisting"> [..[..\]..] --> ..[..].. </pre><p> Any line in one of the configuration files that is not formatted correctly will generally tend (erring on the side of caution) to make the authentication process fail. A corresponding error is written to the system log files with a call to syslog(3). - </p></dd></dl></div></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2666709"></a>Example System Configurations</h3></div></div></div><p> + </p></dd></dl></div></div></div><div class="sect2" title="Example System Configurations"><div class="titlepage"><div><div><h3 class="title"><a name="id429866"></a>Example System Configurations</h3></div></div></div><p> The following is an example <code class="filename">/etc/pam.d/login</code> configuration file. This example had all options uncommented and is probably not usable because it stacks many conditions before allowing successful completion of the login process. Essentially, all conditions can be disabled by commenting them out, except the calls to <code class="filename">pam_pwdb.so</code>. -</p><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2666735"></a>PAM: Original Login Config</h4></div></div></div><p> +</p><div class="sect3" title="PAM: Original Login Config"><div class="titlepage"><div><div><h4 class="title"><a name="id429889"></a>PAM: Original Login Config</h4></div></div></div><p> </p><pre class="programlisting"> #%PAM-1.0 -# The PAM configuration file for the “<span class="quote">login</span>” service +# The PAM configuration file for the <span class="quote">“<span class="quote">login</span>”</span> service # auth required pam_securetty.so auth required pam_nologin.so @@ -373,7 +373,7 @@ session required pam_pwdb.so # password required pam_cracklib.so retry=3 password required pam_pwdb.so shadow md5 </pre><p> -</p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2666763"></a>PAM: Login Using <code class="filename">pam_smbpass</code></h4></div></div></div><p> +</p></div><div class="sect3" title="PAM: Login Using pam_smbpass"><div class="titlepage"><div><div><h4 class="title"><a name="id429912"></a>PAM: Login Using <code class="filename">pam_smbpass</code></h4></div></div></div><p> PAM allows use of replaceable modules. Those available on a sample system include: </p><p><code class="prompt">$</code><strong class="userinput"><code>/bin/ls /lib/security</code></strong> </p><pre class="programlisting"> @@ -411,7 +411,7 @@ source distribution. </p><p> </p><pre class="programlisting"> #%PAM-1.0 -# The PAM configuration file for the “<span class="quote">login</span>” service +# The PAM configuration file for the <span class="quote">“<span class="quote">login</span>”</span> service # auth required pam_smbpass.so nodelay account required pam_smbpass.so nodelay @@ -423,7 +423,7 @@ Linux system. The default condition uses <code class="filename">pam_pwdb.so</cod </p><p> </p><pre class="programlisting"> #%PAM-1.0 -# The PAM configuration file for the “<span class="quote">samba</span>” service +# The PAM configuration file for the <span class="quote">“<span class="quote">samba</span>”</span> service # auth required pam_pwdb.so nullok nodelay shadow audit account required pam_pwdb.so audit nodelay @@ -438,14 +438,14 @@ thus allow the <code class="literal">smbpasswd</code> passwords to be changed us </p><p> </p><pre class="programlisting"> #%PAM-1.0 -# The PAM configuration file for the “<span class="quote">samba</span>” service +# The PAM configuration file for the <span class="quote">“<span class="quote">samba</span>”</span> service # auth required pam_smbpass.so nodelay account required pam_pwdb.so audit nodelay session required pam_pwdb.so nodelay password required pam_smbpass.so nodelay smbconf=/etc/samba.d/smb.conf </pre><p> -</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>PAM allows stacking of authentication mechanisms. It is +</p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>PAM allows stacking of authentication mechanisms. It is also possible to pass information obtained within one PAM module through to the next module in the PAM stack. Please refer to the documentation for your particular system implementation for details regarding the specific @@ -456,7 +456,7 @@ authentication to be configured in a single central file. The on the basis that it allows for easier administration. As with all issues in life, though, every decision has trade-offs, so you may want to examine the PAM documentation for further helpful information. -</p></div></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2667015"></a><code class="filename">smb.conf</code> PAM Configuration</h3></div></div></div><p> +</p></div></div></div><div class="sect2" title="smb.conf PAM Configuration"><div class="titlepage"><div><div><h3 class="title"><a name="id430135"></a><code class="filename">smb.conf</code> PAM Configuration</h3></div></div></div><p> There is an option in <code class="filename">smb.conf</code> called <a class="link" href="smb.conf.5.html#OBEYPAMRESTRICTIONS" target="_top">obey pam restrictions</a>. The following is from the online help for this option in SWAT: </p><div class="blockquote"><blockquote class="blockquote"><p> @@ -466,7 +466,7 @@ is to use PAM for clear-text authentication only and to ignore any account or se ignores PAM for authentication in the case of <a class="link" href="smb.conf.5.html#ENCRYPTPASSWORDS" target="_top">encrypt passwords = yes</a>. The reason is that PAM modules cannot support the challenge/response authentication mechanism needed in the presence of SMB password encryption. -</p><p>Default: <a class="link" href="smb.conf.5.html#OBEYPAMRESTRICTIONS" target="_top">obey pam restrictions = no</a></p></blockquote></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2667096"></a>Remote CIFS Authentication Using <code class="filename">winbindd.so</code></h3></div></div></div><p> +</p><p>Default: <a class="link" href="smb.conf.5.html#OBEYPAMRESTRICTIONS" target="_top">obey pam restrictions = no</a></p></blockquote></div></div><div class="sect2" title="Remote CIFS Authentication Using winbindd.so"><div class="titlepage"><div><div><h3 class="title"><a name="id430207"></a>Remote CIFS Authentication Using <code class="filename">winbindd.so</code></h3></div></div></div><p> All operating systems depend on the provision of user credentials acceptable to the platform. UNIX requires the provision of a user identifier (UID) as well as a group identifier (GID). These are both simple integer numbers that are obtained from a password backend such @@ -489,11 +489,11 @@ such as <em class="parameter"><code>ldap</code></em> will allow the establishmen database that can also be used by all PAM-aware (e.g., Linux) programs and applications. This arrangement can have particularly potent advantages compared with the use of Microsoft Active Directory Service (ADS) insofar as the reduction of wide-area network authentication traffic. -</p><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p> +</p><div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p> The RID to UNIX ID database is the only location where the user and group mappings are stored by <code class="literal">winbindd</code>. If this file is deleted or corrupted, there is no way for <code class="literal">winbindd</code> to determine which user and group IDs correspond to Windows NT user and group RIDs. -</p></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2667199"></a>Password Synchronization Using <code class="filename">pam_smbpass.so</code></h3></div></div></div><p> +</p></div></div><div class="sect2" title="Password Synchronization Using pam_smbpass.so"><div class="titlepage"><div><div><h3 class="title"><a name="id430295"></a>Password Synchronization Using <code class="filename">pam_smbpass.so</code></h3></div></div></div><p> <code class="filename">pam_smbpass</code> is a PAM module that can be used on conforming systems to keep the <code class="filename">smbpasswd</code> (Samba password) database in sync with the UNIX password file. PAM is an API supported @@ -506,12 +506,12 @@ concerned about the presence of SUID root binaries on your system, it is recommended that you use <code class="filename">pam_winbind</code> instead. </p><p> Options recognized by this module are shown in <a class="link" href="pam.html#smbpassoptions" title="Table 28.1. Options recognized by pam_smbpass">next table</a>. -</p><div class="table"><a name="smbpassoptions"></a><p class="title"><b>Table 28.1. Options recognized by <em class="parameter"><code>pam_smbpass</code></em></b></p><div class="table-contents"><table summary="Options recognized by pam_smbpass" border="1"><colgroup><col align="left"><col align="justify"></colgroup><tbody><tr><td align="left">debug</td><td align="justify">Log more debugging info.</td></tr><tr><td align="left">audit</td><td align="justify">Like debug, but also logs unknown usernames.</td></tr><tr><td align="left">use_first_pass</td><td align="justify">Do not prompt the user for passwords; take them from PAM_ items instead.</td></tr><tr><td align="left">try_first_pass</td><td align="justify">Try to get the password from a previous PAM module; fall back to prompting the user.</td></tr><tr><td align="left">use_authtok</td><td align="justify">Like try_first_pass, but *fail* if the new PAM_AUTHTOK has not been previously set (intended for stacking password modules only).</td></tr><tr><td align="left">not_set_pass</td><td align="justify">Do not make passwords used by this module available to other modules.</td></tr><tr><td align="left">nodelay</td><td align="justify">dDo not insert ~1-second delays on authentication failure.</td></tr><tr><td align="left">nullok</td><td align="justify">Null passwords are allowed.</td></tr><tr><td align="left">nonull</td><td align="justify">Null passwords are not allowed. Used to override the Samba configuration.</td></tr><tr><td align="left">migrate</td><td align="justify">Only meaningful in an “<span class="quote">auth</span>” context; used to update smbpasswd file with a password used for successful authentication.</td></tr><tr><td align="left">smbconf=<em class="replaceable"><code>file</code></em></td><td align="justify">Specify an alternate path to the <code class="filename">smb.conf</code> file.</td></tr></tbody></table></div></div><p><br class="table-break"> +</p><div class="table"><a name="smbpassoptions"></a><p class="title"><b>Table 28.1. Options recognized by <em class="parameter"><code>pam_smbpass</code></em></b></p><div class="table-contents"><table summary="Options recognized by pam_smbpass" border="1"><colgroup><col align="left"><col align="justify"></colgroup><tbody><tr><td align="left">debug</td><td align="justify">Log more debugging info.</td></tr><tr><td align="left">audit</td><td align="justify">Like debug, but also logs unknown usernames.</td></tr><tr><td align="left">use_first_pass</td><td align="justify">Do not prompt the user for passwords; take them from PAM_ items instead.</td></tr><tr><td align="left">try_first_pass</td><td align="justify">Try to get the password from a previous PAM module; fall back to prompting the user.</td></tr><tr><td align="left">use_authtok</td><td align="justify">Like try_first_pass, but *fail* if the new PAM_AUTHTOK has not been previously set (intended for stacking password modules only).</td></tr><tr><td align="left">not_set_pass</td><td align="justify">Do not make passwords used by this module available to other modules.</td></tr><tr><td align="left">nodelay</td><td align="justify">dDo not insert ~1-second delays on authentication failure.</td></tr><tr><td align="left">nullok</td><td align="justify">Null passwords are allowed.</td></tr><tr><td align="left">nonull</td><td align="justify">Null passwords are not allowed. Used to override the Samba configuration.</td></tr><tr><td align="left">migrate</td><td align="justify">Only meaningful in an <span class="quote">“<span class="quote">auth</span>”</span> context; used to update smbpasswd file with a password used for successful authentication.</td></tr><tr><td align="left">smbconf=<em class="replaceable"><code>file</code></em></td><td align="justify">Specify an alternate path to the <code class="filename">smb.conf</code> file.</td></tr></tbody></table></div></div><p><br class="table-break"> </p><p> The following are examples of the use of <code class="filename">pam_smbpass.so</code> in the format of the Linux <code class="filename">/etc/pam.d/</code> files structure. Those wishing to implement this tool on other platforms will need to adapt this appropriately. -</p><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2667418"></a>Password Synchronization Configuration</h4></div></div></div><p> +</p><div class="sect3" title="Password Synchronization Configuration"><div class="titlepage"><div><div><h4 class="title"><a name="id430500"></a>Password Synchronization Configuration</h4></div></div></div><p> The following is a sample PAM configuration that shows the use of pam_smbpass to make sure <code class="filename">private/smbpasswd</code> is kept in sync when <code class="filename">/etc/passwd (/etc/shadow)</code> is changed. It is useful when an expired password might be changed by an @@ -528,7 +528,7 @@ password requisite pam_cracklib.so retry=3 password requisite pam_unix.so shadow md5 use_authtok try_first_pass password required pam_smbpass.so nullok use_authtok try_first_pass session required pam_unix.so -</pre></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2667464"></a>Password Migration Configuration</h4></div></div></div><p> +</pre></div><div class="sect3" title="Password Migration Configuration"><div class="titlepage"><div><div><h4 class="title"><a name="id430540"></a>Password Migration Configuration</h4></div></div></div><p> The following PAM configuration shows the use of <code class="filename">pam_smbpass</code> to migrate from plaintext to encrypted passwords for Samba. Unlike other methods, this can be used for users who have never connected to Samba shares: @@ -548,7 +548,7 @@ password requisite pam_cracklib.so retry=3 password requisite pam_unix.so shadow md5 use_authtok try_first_pass password optional pam_smbpass.so nullok use_authtok try_first_pass session required pam_unix.so -</pre></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2667512"></a>Mature Password Configuration</h4></div></div></div><p> +</pre></div><div class="sect3" title="Mature Password Configuration"><div class="titlepage"><div><div><h4 class="title"><a name="id430581"></a>Mature Password Configuration</h4></div></div></div><p> The following is a sample PAM configuration for a mature <code class="filename">smbpasswd</code> installation. <code class="filename">private/smbpasswd</code> is fully populated, and we consider it an error if the SMB password does not exist or does not match the UNIX password. @@ -564,7 +564,7 @@ password requisite pam_cracklib.so retry=3 password requisite pam_unix.so shadow md5 use_authtok try_first_pass password required pam_smbpass.so use_authtok use_first_pass session required pam_unix.so -</pre></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2667552"></a>Kerberos Password Integration Configuration</h4></div></div></div><p> +</pre></div><div class="sect3" title="Kerberos Password Integration Configuration"><div class="titlepage"><div><div><h4 class="title"><a name="id430616"></a>Kerberos Password Integration Configuration</h4></div></div></div><p> The following is a sample PAM configuration that shows <em class="parameter"><code>pam_smbpass</code></em> used together with <em class="parameter"><code>pam_krb5</code></em>. This could be useful on a Samba PDC that is also a member of a Kerberos realm. @@ -581,10 +581,10 @@ password requisite pam_cracklib.so retry=3 password optional pam_smbpass.so nullok use_authtok try_first_pass password required pam_krb5.so use_authtok try_first_pass session required pam_krb5.so -</pre></div></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2667593"></a>Common Errors</h2></div></div></div><p> +</pre></div></div></div><div class="sect1" title="Common Errors"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id430652"></a>Common Errors</h2></div></div></div><p> PAM can be fickle and sensitive to configuration glitches. Here we look at a few cases from the Samba mailing list. -</p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2667604"></a>pam_winbind Problem</h3></div></div></div><p> +</p><div class="sect2" title="pam_winbind Problem"><div class="titlepage"><div><div><h3 class="title"><a name="id430662"></a>pam_winbind Problem</h3></div></div></div><p> A user reported, <span class="emphasis"><em>I have the following PAM configuration</em></span>: </p><p> </p><pre class="programlisting"> @@ -598,8 +598,8 @@ account required /lib/security/pam_winbind.so password required /lib/security/pam_stack.so service=system-auth </pre><p> </p><p> - <span class="emphasis"><em>When I open a new console with [ctrl][alt][F1], I can't log in with my user “<span class="quote">pitie.</span>” - I have tried with user “<span class="quote">scienceu\pitie</span>” also.</em></span> + <span class="emphasis"><em>When I open a new console with [ctrl][alt][F1], I can't log in with my user <span class="quote">“<span class="quote">pitie.</span>”</span> + I have tried with user <span class="quote">“<span class="quote">scienceu\pitie</span>”</span> also.</em></span> </p><p> The problem may lie with the inclusion of <em class="parameter"><code>pam_stack.so service=system-auth</code></em>. That file often contains a lot of stuff that may @@ -608,13 +608,13 @@ password required /lib/security/pam_stack.so service=system-auth <code class="filename">/etc/pam.d/system-auth</code> and copy only what you need from it into your <code class="filename">/etc/pam.d/login</code> file. Alternatively, if you want all services to use Winbind, you can put the Winbind-specific stuff in <code class="filename">/etc/pam.d/system-auth</code>. - </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2667702"></a>Winbind Is Not Resolving Users and Groups</h3></div></div></div><p> - “<span class="quote"> + </p></div><div class="sect2" title="Winbind Is Not Resolving Users and Groups"><div class="titlepage"><div><div><h3 class="title"><a name="id430751"></a>Winbind Is Not Resolving Users and Groups</h3></div></div></div><p> + <span class="quote">“<span class="quote"> My <code class="filename">smb.conf</code> file is correctly configured. I have specified <a class="link" href="smb.conf.5.html#IDMAPUID" target="_top">idmap uid = 12000</a> and <a class="link" href="smb.conf.5.html#IDMAPGID" target="_top">idmap gid = 3000-3500,</a> and <code class="literal">winbind</code> is running. When I do the following it all works fine. - </span>” + </span>”</span> </p><pre class="screen"> <code class="prompt">root# </code><strong class="userinput"><code>wbinfo -u</code></strong> MIDEARTH\maryo @@ -636,14 +636,14 @@ bin:x:1:1:bin:/bin:/bin/bash ... maryo:x:15000:15003:Mary Orville:/home/MIDEARTH/maryo:/bin/false </pre><p> - “<span class="quote"> + <span class="quote">“<span class="quote"> But this command fails: - </span>” + </span>”</span> </p><pre class="screen"> <code class="prompt">root# </code><strong class="userinput"><code>chown maryo a_file</code></strong> chown: 'maryo': invalid user </pre><p> - “<span class="quote">This is driving me nuts! What can be wrong?</span>” + <span class="quote">“<span class="quote">This is driving me nuts! What can be wrong?</span>”</span> </p><p> Your system is likely running <code class="literal">nscd</code>, the name service caching daemon. Shut it down, do not restart it! You will find your problem resolved. |