[Samba] smb_pam_accountcheck: PAM: Account validation failed...

2003-06-24 Thread Julian Gomez
Firstly, I've already solved the daft mistake of mine. I'm merely sending
it in so the next person digging through the archives might get helped out.

I've configured Samba v2.2.8a, alot of default settings. No LDAP
interaction, no winbindd. Accounts were created both in '/etc/passwd' &&
'smbpasswd', but whenever I tried to mount a share from my RedHat box, the
following got logged in '/var/log/messages' :

Jun 25 12:04:54 beastic smbd[13211]: smb_pam_accountcheck: PAM: Account
Validation Failed - Rejecting User juliangomez!

A Google search turned up answers that those errors are usually due to
either an entry in smbpasswd / passwd not existing properly. Anyways,
another possible cause is :

obey pam restrictions = yes

and also not having the equivalent '/etc/pam.d/samba' file. In my case, I
decided to remove the following RPM packages from my RH9 install :

- samba-client-2.2.7a-7.9.0
- samba-2.2.7a-7.9.0
- samba-common-2.2.7a-7.9.0

and one of those packages killed the relevant PAM config file. Thus, you'll
get greeted by the above error also.

Hope this helps someone else in the future.

-- The Daft Idiot
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Re: Samba 3.0.0beta1 problems when using 'unix passwordsync'

2003-06-12 Thread Julian Gomez
On Fri, Jun 13, 2003 at 11:45:10PM +0800, Julian Gomez @Work spoke thusly:
>That said, I cannot seem to get the above version of the software to play
>nice with the 'unix password sync' directive. Trying to modify the Windows
>Networking password would usually return 'Incorrect password'. I get the
>same failure with WinXP, except the error is slightly different, but same
>result. I have narrowed down the problem to the above directive, by
>commenting and uncommenting other things in my 'smb.conf'.

I'm such a nitwit, here's the logged entry in '/var/log/messages' btw :

Jun 12 15:33:30 cookie smbd[5679]: smb_pass_passchange: PAM: Password
Change Failed for user tester!

I did run across another post by someone which said they used
"/usr/bin/passwd %U" instead of "/usr/bin/passwd %u", and it worked for
them (problem with the sync directive also); but I've tried that, and the
result is negative.

My smb.conf is listed below. I've wrapped the 'passwd chat' line.

[global]
workgroup = SCSILOVER
netbios name = OSS-SAMBA
server string = PIII 2.4Ghz Samba Trial Run
interfaces = 132.147.160.125
encrypt passwords = Yes
log level = 5
log file = /usr/local/opt/samba/var/log/log.%m
max log size = 500
load printers = no
domain logons = yes
os level = 100
preferred master = True
domain master = True
wins support = Yes
name resolve order = wins lmhosts hosts bcast
local master = Yes
dns proxy = Yes
hosts allow = 132.147.160. 127.
security = user
adduser script = /usr/sbin/useradd -s /bin/false -M %u
unix password sync = yes
passwd chat = *New*password* %n\n *Retype*new*password* %n\n 
  *passwd:*all*authentication*tokens*updated*
  successfully*
passwd chat debug = no
passwd program = /usr/bin/passwd %u
#passwd program = /usr/bin/passwd %U
pam password change = yes
obey pam restrictions = yes
smb passwd file = /usr/local/opt/samba/private/smbpasswd

[homes]
comment = user home directories -- test
read only = No

[netlogon]
comment = network logon services
path = /usr/local/opt/samba/lib/netlogon
read only = No
guest ok = Yes
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Samba 3.0.0beta1 problems when using 'unix password sync'

2003-06-12 Thread Julian Gomez
Hi,

I've been playing with the above release package, and everything works
great. Domain logons with WinXP / Win95, file shares between WinXP / Win95
/ Linux.

That said, I cannot seem to get the above version of the software to play
nice with the 'unix password sync' directive. Trying to modify the Windows
Networking password would usually return 'Incorrect password'. I get the
same failure with WinXP, except the error is slightly different, but same
result. I have narrowed down the problem to the above directive, by
commenting and uncommenting other things in my 'smb.conf'.

But, when I use the exact same configuration file with Samba v2.2.8a,
everything works dandy like. Changing passwords is good, and it syncs
properly with '/etc/shadow'.

My 'smb.conf' is attached to the email. Samba was built from the relevant
sources, my ./configure line was :

./configure --prefix=/usr/local/opt/samba --with-pam --with-pam_smbpass
--with-syslog --with-quotas --with-acl-support --with-sendfile support

That was the generic one used with both Samba builds, the 3.0.0beta1
configure line was slightly longer, I also included winbind and a number of
other things for kicks. Platform is RedHat v9, all errate packages applied.

I've gone through Aimsgroup's archives, but cannot see anything which is
related :-\ Nothing noted via a cursory look through Bugzilla either.

Insight would be much appreciated, thanks!
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba