<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.3790.4064" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV dir=ltr align=left><FONT face="Courier New" color=#0000ff 
size=2></FONT> </DIV>
<DIV dir=ltr align=left><SPAN class=162214515-06082007><FONT face="Courier New" 
color=#0000ff size=2>Try running this:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=162214515-06082007><FONT face="Courier New" 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=162214515-06082007><FONT face="Courier New" 
color=#0000ff size=2>authconfig --kickstart 
--enablelocauthorize</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=162214515-06082007><FONT face="Courier New" 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=162214515-06082007><FONT face="Courier New" 
color=#0000ff size=2>And see if that does the trick, what you want to see under 
'account'</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=162214515-06082007><FONT face="Courier New" 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=162214515-06082007><FONT face="Courier New" 
color=#0000ff size=2>account     
required      pam_unix.so 
broken_shadow<BR>account     sufficient    
pam_localuser.so<BR>account     sufficient    
pam_succeed_if.so uid < 500 quiet<BR>account     
[default=bad success=ok user_unknown=ignore] 
pam_ldap.so<BR>account     
required      pam_permit.so</FONT></SPAN></DIV>
<DIV><FONT face="Courier New" color=#0000ff size=2></FONT> </DIV>
<DIV dir=ltr align=left><SPAN class=162214515-06082007><FONT face="Courier New" 
color=#0000ff size=2>The above command should do the trick.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=162214515-06082007><FONT face="Courier New" 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=162214515-06082007><FONT face="Courier New" 
color=#0000ff size=2>-Ross</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=162214515-06082007></SPAN> </DIV><BR>
<BLOCKQUOTE dir=ltr 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>From:</B> centos-bounces@centos.org 
  [mailto:centos-bounces@centos.org] <B>On Behalf Of </B>Aaron 
  Bliss<BR><B>Sent:</B> Monday, August 06, 2007 11:41 AM<BR><B>To:</B> CentOS 
  mailing list<BR><B>Subject:</B> Re: [CentOS] help with samba and ldap on 
  centos 5<BR></FONT><BR></DIV>
  <DIV></DIV>Hi Ross,<BR>I used authconfig to configure the box.  Here are 
  the configs:<BR><BR>cat /etc/nsswitch.conf | grep -v 
  \#<BR>passwd:     files 
  ldap<BR>shadow:     files 
  ldap<BR>group:      files 
  ldap<BR>hosts:      files dns<BR>bootparams: nisplus 
  [NOTFOUND=return] files<BR>ethers:     
  files<BR>netmasks:   files<BR>networks:   
  files<BR>protocols:  files 
  ldap<BR>rpc:        
  files<BR>services:   files ldap<BR>netgroup:   files 
  ldap<BR>publickey:  nisplus<BR>automount:  files 
  ldap<BR>aliases:    files nisplus<BR><BR>cat 
  /etc/pam.d/system-auth<BR>#%PAM-1.0<BR># This file is auto-generated.<BR># 
  User changes will be destroyed the next time authconfig is 
  run.<BR>auth        
  required      
  pam_env.so<BR>auth        
  sufficient    pam_unix.so nullok 
  try_first_pass<BR>auth        
  requisite     pam_succeed_if.so uid >= 500 
  quiet<BR>auth        
  sufficient    pam_ldap.so 
  use_first_pass<BR>auth        
  required      
  pam_deny.so<BR><BR>account     
  required      pam_unix.so 
  broken_shadow<BR>account     sufficient    
  pam_succeed_if.so uid < 500 quiet<BR>account     
  [default=bad success=ok user_unknown=ignore] 
  pam_ldap.so<BR>account     
  required      
  pam_permit.so<BR><BR>password    
  requisite     pam_cracklib.so try_first_pass 
  retry=3<BR>password    sufficient    pam_unix.so 
  md5 shadow nullok try_first_pass use_authtok<BR>password    
  sufficient    pam_ldap.so 
  use_authtok<BR>password    
  required      
  pam_deny.so<BR><BR>session    required    
  pam_mkhomedir.so skel=/etc/skel/ umask=0022<BR>session     
  optional      pam_keyinit.so 
  revoke<BR>session     
  required      
  pam_limits.so<BR>session     [success=1 default=ignore] 
  pam_succeed_if.so service in crond quiet 
  use_uid<BR>session     
  required      
  pam_unix.so<BR>session     
  optional      pam_ldap.so<BR><BR>cat 
  /etc/sysconfig/authconfig<BR>USEWINBINDAUTH=no<BR>USEKERBEROS=no<BR>USESYSNETAUTH=no<BR>FORCESMARTCARD=no<BR>USESMBAUTH=no<BR>USESMARTCARD=no<BR>USELDAPAUTH=yes<BR>USEWINBIND=no<BR>USESHADOW=yes<BR>USEDB=no<BR>USEHESIOD=no<BR>USEPASSWDQC=no<BR>USELDAP=yes<BR>USELOCAUTHORIZE=no<BR>USEMD5=yes<BR>USECRACKLIB=yes<BR>USENIS=no<BR><BR>Thanks 
  again.<BR>Aaron<BR><BR>Ross S. W. Walker wrote: 
  <BLOCKQUOTE 
  cite=mid:E2BB8074E5500C42984D980D4BD78EF9017A277F@MFG-NYC-EXCH2.mfg.prv 
  type="cite">
    <BLOCKQUOTE type="cite"><PRE wrap="">-----Original Message-----
From: <A class=moz-txt-link-abbreviated href="mailto:centos-bounces@centos.org">centos-bounces@centos.org</A> 
[<A class=moz-txt-link-freetext href="mailto:centos-bounces@centos.org">mailto:centos-bounces@centos.org</A>] On Behalf Of Aaron Bliss
Sent: Monday, August 06, 2007 11:16 AM
To: <A class=moz-txt-link-abbreviated href="mailto:centos@centos.org">centos@centos.org</A>
Subject: [CentOS] help with samba and ldap on centos 5

Hi everyone; I'm having some trouble with samba on a centos 5 
box; the 
box has been configured to authenticate against an ldap server via 
authconfig....authentication for normal use (console, ssh) works 
great....I'm having some trouble with samba using single ldap 
users or 
local users....It's rather weird, shares in which access restrictions 
are based upon ldap groups are working fine, getent group shows local 
and ldap groups, however attempting to assign access to a share for 
either a single ldap user or a local user doesn't work, and 
produces the 
following error when trying to hit the share:
smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User myuser1 !

For local users, I've added local os accounts as well as 
accounts in the 
samba database with smbpasswd
Any ideas? Thanks for your help.
    </PRE></BLOCKQUOTE><PRE wrap=""><!---->
Did you use authconfig to configure ldap auth or did you manually edit
the PAM database?

Can you post a copy of your /etc/sysconfig/authconfig,
/etc/pam.d/system-auth, and a copy of your /etc/nsswitch.conf?

-Ross

______________________________________________________________________
This e-mail, and any attachments thereto, is intended only for use by
the addressee(s) named herein and may contain legally privileged
and/or confidential information. If you are not the intended recipient
of this e-mail, you are hereby notified that any dissemination,
distribution or copying of this e-mail, and any attachments thereto,
is strictly prohibited. If you have received this e-mail in error,
please immediately notify the sender and permanently delete the
original and any copy or printout thereof.

_______________________________________________
CentOS mailing list
<A class=moz-txt-link-abbreviated href="mailto:CentOS@centos.org">CentOS@centos.org</A>
<A class=moz-txt-link-freetext href="http://lists.centos.org/mailman/listinfo/centos">http://lists.centos.org/mailman/listinfo/centos</A>
  </PRE></BLOCKQUOTE></BLOCKQUOTE>
<P></P>
<HR WIDTH="100%">
This e-mail, and any attachments thereto, is intended only for use by
the addressee(s) named herein and may contain legally privileged
and/or confidential information. If you are not the intended recipient
of this e-mail, you are hereby notified that any dissemination,
distribution or copying of this e-mail, and any attachments thereto,
is strictly prohibited. If you have received this e-mail in error,
please immediately notify the sender and permanently delete the
original and any copy or printout thereof.

</BODY></HTML>