<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
Hello. Is it possible to have SAMBA respect PAM so that when an LDAP 
accounts gets locked out the SAMBA account simultaneously gets locked 
out as well? <br>All my windows clients are either 2003 or 2008 servers 
and if I understand the blurbs below in the samba man page, the 
"encrypted password" directive must be set to yes in order for Windows 
machines to authenticate against SAMBA, however if "encrypted passwords"
 is set to yes then SAMBA will ignore the directive "obey pam 
restrictions". Is there any way around this?<br><br>OS: RHEL 5.5 x64<br>samba3x-3.5.4-0.70.el5_6.1<br>openldap-2.3.43-12.el5_6.7<br><br> obey pam restrictions (G)<br><br>          
 When Samba 3.0 is configured to enable PAM support (i.e. --with-pam), 
this parameter will control whether or not Samba should obey PAM´s 
account and<br>           session management directives. The default 
behavior is to use PAM for clear text authentication only and to ignore 
any account or session<br>           management. <b>Note that Samba always ignores PAM for authentication in the case of encrypt passwords = yes</b>. The reason is that PAM modules cannot<br>           support the challenge/response authentication mechanism needed in the presence of SMB password encryption.<br><br>encrypt passwords (G)<br><br>          
 This boolean controls whether encrypted passwords will be negotiated 
with the client. Note that Windows NT 4.0 SP3 and above and also Windows
 98<br>           will by default expect encrypted passwords unless a 
registry entry is changed. To use encrypted passwords in Samba see the 
chapter "User Database"<br>           in the Samba HOWTO Collection.<br><br>           <b>MS
 Windows clients that expect Microsoft encrypted passwords and that do 
not have plain text password support enabled will be able to connect 
only<br>           to a Samba server that has encrypted password support
 enabled and for which the user accounts have a valid encrypted password</b>. Refer to the<br>           smbpasswd command man page for information regarding the creation of encrypted passwords for user accounts.<br><br>          
 The use of plain text passwords is NOT advised as support for this 
feature is no longer maintained in Microsoft Windows products. If you 
want to use<br>           plain text passwords you must set this parameter to no.<br><br>          
 In order for encrypted passwords to work correctly smbd(8) must either 
have access to a local smbpasswd(5) file (see the smbpasswd(8) program 
for<br>           information on how to set up and maintain this file), 
or set the security = [server|domain|ads] parameter which causes smbd to
 authenticate against<br>           another server.<br>                                     </div></body>
</html>