<!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=890211618-06082007><FONT face="Courier New"
color=#0000ff 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><FONT face="Courier New"
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=890211618-06082007><FONT face="Courier New"
color=#0000ff 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 face="Courier New"
color=#0000ff
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
face="Courier New" color=#0000ff size=2>-Ross</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=890211618-06082007><FONT face="Courier New"
color=#0000ff size=2></FONT></SPAN> </DIV><FONT face="Courier New"
color=#0000ff size=2></FONT><FONT face="Courier New" color=#0000ff
size=2></FONT><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 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>
<DIV></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><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: rgb(0,0,255) 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> <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 width="90%" SIZE=4>
_______________________________________________
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>
<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>