<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Darn, still no dice...this is so weird....<br>
<br>
Aaron<br>
<br>
Ross S. W. Walker wrote:
<blockquote
 cite="mid:E2BB8074E5500C42984D980D4BD78EF9017A2785@MFG-NYC-EXCH2.mfg.prv"
 type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta content="MSHTML 6.00.3790.4064" name="GENERATOR">
  <div dir="ltr" align="left"> </div>
  <div dir="ltr" align="left"><span class="890211618-06082007"><font
 color="#0000ff" face="Courier New" size="2">I think you might need the
'obey pam restrictions = yes' in your smb.conf file too.</font></span></div>
  <div dir="ltr" align="left"><span class="890211618-06082007"></span> </div>
  <div dir="ltr" align="left"><span class="890211618-06082007"><font
 color="#0000ff" face="Courier New" size="2">       obey pam
restrictions (G)<br>
              When Samba  3.0  is  configured  to  enable  PAM 
support  (i.e.<br>
              --with-pam),  this  parameter  will control whether or
not Samba<br>
              should obey PAM's account and session management
directives. The<br>
              default  behavior  is  to  use PAM for clear text
authentication<br>
              only and to ignore any account or session management.
Note  that<br>
              Samba  always  ignores  PAM  for  authentication  in the
case of<br>
              encrypt passwords = yes. The reason is that PAM  modules 
cannot<br>
              support  the  challenge/response authentication mechanism
needed<br>
              in the presence of SMB password encryption.</font></span></div>
  <div> </div>
  <div dir="ltr" align="left"><span class="890211618-06082007"><font
 color="#0000ff" face="Courier New" size="2">              Default:
obey pam restrictions = no<br>
  </font></span></div>
  <div dir="ltr" align="left"><span class="890211618-06082007"></span><span
 class="890211618-06082007"></span><span class="890211618-06082007"><font
 color="#0000ff" face="Courier New" size="2">-Ross</font></span></div>
  <div dir="ltr" align="left"><span class="890211618-06082007"></span> </div>
  <br>
  <blockquote dir="ltr"
 style="border-left: 2px solid rgb(0, 0, 255); padding-left: 5px; margin-left: 5px; margin-right: 0px;">
    <div class="OutlookMessageHeader" dir="ltr" align="left"
 lang="en-us">
    <hr tabindex="-1"> <font face="Tahoma" size="2"><b>From:</b>
<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>] <b>On
Behalf Of </b>Aaron Bliss<br>
    <b>Sent:</b> Monday, August 06, 2007 2:13 PM<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>
This may be related to centos 5, or more likely the version of samba
that it ships with, and the option not to encrypt passwords:<br>
encrypt passwords = no<br>
    <br>
This same smb.conf file works great in centos 4....any ideas?  Thanks.<br>
    <br>
Aaron<br>
    <br>
Aaron Bliss wrote:
    <blockquote cite="mid:46B75DD3.8080306@brockport.edu" type="cite">Ross,<br>
I re-ran authconfig, system-auth now has what you mentioned, however
server still isn't working.....any other ideas?<br>
      <br>
Thanks again.<br>
Aaron<br>
      <br>
testparm<br>
Load smb config files from /etc/samba/smb.conf<br>
Processing section "[ITS]"<br>
Processing section "[sysadmin2]"<br>
Processing section "[daf]"<br>
Processing section "[first share]"<br>
Loaded services file OK.<br>
Server role: ROLE_STANDALONE<br>
Press enter to see a dump of your service definitions<br>
      <br>
[global]<br>
        workgroup = ITSN<br>
        server string = filecity2<br>
        encrypt passwords = No<br>
        username map = /etc/samba/smbusers<br>
        log level = 1<br>
        log file = /var/log/samba/samba.log<br>
        max log size = 50<br>
        debug timestamp = No<br>
        max xmit = 32768<br>
        socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=2048
SO_SNDBUF=204<br>
        load printers = No<br>
        printcap name = /etc/printcap<br>
        show add printer wizard = No<br>
        dns proxy = No<br>
        wins server = 137.21.7.5<br>
        ldap ssl = no<br>
        idmap uid = 16777216-33554431<br>
        idmap gid = 16777216-33554431<br>
        template shell = /bin/bash<br>
        nt acl support = No<br>
        cups options = raw<br>
      <br>
[first share]<br>
        comment = test share here<br>
        path = /export<br>
        valid users = abliss<br>
        read only = No<br>
      <br>
      <br>
Ross S. W. Walker wrote:
      <blockquote
 cite="mid:E2BB8074E5500C42984D980D4BD78EF9017A2781@MFG-NYC-EXCH2.mfg.prv"
 type="cite">
        <meta content="MSHTML 6.00.3790.4064" name="GENERATOR">
        <div dir="ltr" align="left"> </div>
        <div dir="ltr" align="left"><span class="162214515-06082007"><font
 color="#0000ff" face="Courier New" size="2">Try running this:</font></span></div>
        <div dir="ltr" align="left"><span class="162214515-06082007"></span> </div>
        <div dir="ltr" align="left"><span class="162214515-06082007"><font
 color="#0000ff" face="Courier New" size="2">authconfig --kickstart
--enablelocauthorize</font></span></div>
        <div dir="ltr" align="left"><span class="162214515-06082007"></span> </div>
        <div dir="ltr" align="left"><span class="162214515-06082007"><font
 color="#0000ff" face="Courier New" 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"></span> </div>
        <div dir="ltr" align="left"><span class="162214515-06082007"><font
 color="#0000ff" face="Courier New" 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> </div>
        <div dir="ltr" align="left"><span class="162214515-06082007"><font
 color="#0000ff" face="Courier New" size="2">The above command should
do the trick.</font></span></div>
        <div dir="ltr" align="left"><span class="162214515-06082007"></span> </div>
        <div dir="ltr" align="left"><span class="162214515-06082007"><font
 color="#0000ff" face="Courier New" size="2">-Ross</font></span></div>
        <div dir="ltr" align="left"><span class="162214515-06082007"></span> </div>
        <br>
        <blockquote dir="ltr"
 style="border-left: 2px solid rgb(0, 0, 255); padding-left: 5px; margin-left: 5px; margin-right: 0px;">
          <div class="OutlookMessageHeader" dir="ltr" align="left"
 lang="en-us">
          <hr tabindex="-1"> <font face="Tahoma" size="2"><b>From:</b>
          <a class="moz-txt-link-abbreviated"
 href="mailto:centos-bounces@centos.org" moz-do-not-send="true">centos-bounces@centos.org</a>
[<a class="moz-txt-link-freetext"
 href="mailto:centos-bounces@centos.org" moz-do-not-send="true">mailto:centos-bounces@centos.org</a>]
          <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>
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" moz-do-not-send="true">centos-bounces@centos.org</a> 
[<a class="moz-txt-link-freetext"
 href="mailto:centos-bounces@centos.org" moz-do-not-send="true">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"
 moz-do-not-send="true">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"
 moz-do-not-send="true">CentOS@centos.org</a>
<a class="moz-txt-link-freetext"
 href="http://lists.centos.org/mailman/listinfo/centos"
 moz-do-not-send="true">http://lists.centos.org/mailman/listinfo/centos</a>
  </pre>
          </blockquote>
        </blockquote>
        <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.
        <pre wrap=""><hr size="4" width="90%">
_______________________________________________
CentOS mailing list
<a class="moz-txt-link-abbreviated" href="mailto:CentOS@centos.org"
 moz-do-not-send="true">CentOS@centos.org</a>
<a class="moz-txt-link-freetext"
 href="http://lists.centos.org/mailman/listinfo/centos"
 moz-do-not-send="true">http://lists.centos.org/mailman/listinfo/centos</a>
  </pre>
      </blockquote>
    </blockquote>
  </blockquote>
  <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.
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
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>
</body>
</html>