1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-21 01:59:07 +03:00

17 Commits

Author SHA1 Message Date
Volker Lendecke
ac79bba1a1 r15479: Check in patch from bug # 3746 -- Thanks Timur 2007-10-10 11:16:53 -05:00
Günther Deschner
7f64a66d25 r15398: Attempt to send the correct warning when a password change was attempted
too early.

Guenther
2007-10-10 11:16:40 -05:00
Günther Deschner
41b79ee80c r15040: Stripping the parametric options in pam_winbind and use
/etc/security/pam_winbind.conf as config file for the PAM module by
default.

Guenther
2007-10-10 11:15:59 -05:00
Günther Deschner
6f668ce673 r15038: Replace all code in pam_winbind that relied on access to samba
internals, mostly with the code that was in pam_winbind before.

Also switch from using loadparm to use iniParser to read the new
pam_winbind options from a configuration file. That still uses the old
(parametric) option names which will be replaced next (as iniParser does
not support parametric options).

Guenther
2007-10-10 11:15:58 -05:00
Günther Deschner
87293802f3 r14940: Remove pam_winbind's ability to create home directories on it's own.
Guenther
2007-10-10 11:15:54 -05:00
Günther Deschner
99158406b4 r14841: Fix IRIX build --with-pam.
Guenther
2007-10-10 11:15:50 -05:00
Gerald Carter
17e63ac4ed r13316: Let the carnage begin....
Sync with trunk as off r13315
2007-10-10 11:06:23 -05:00
Günther Deschner
4cb662ffd7 r12900: Merge from trunk:
Correctly handle the case where users logon with an expired password.

In that case pam_sm_authenticate has to return PAM_SUCESS instead of
PAM_NEW_AUTHTOK_REQD or PAM_AUTHTOK_EXPIRED and pam_sm_acct_mgmt has to
take care of requesting an immediate password change. (see the Linux PAM
documentation).

Fixes Bugzilla #1524, #3205. Tested with login, sshd, kdm and gdm on
Linux.

Thanks to Scott Barker <Scott_Barker@mtechIT.com>.

Guenther
2007-10-10 11:06:06 -05:00
Günther Deschner
7494569655 r1888: Bring the same level of "required_membership"-functionality that
ntlm_auth uses, to pam_winbindd as well.

This allows to make successfull authentication via PAM dependent on
SID-membership. At the moment, both ntlm_auth and pam_winbindd.so accept
user/group-names or sid-strings - as discussed, recursive membership
(e.g. local aliases) will be added later.

Guenther
2007-10-10 10:52:23 -05:00
Tim Potter
4a3727b03b More FreeBSD PAM compile fixes. Don't redefine PAM_AUTHTOK_RECOVER_ERR
if it already exists.  FreeBSD 4.8 doesn't need the redefinition, 5.0 does.
-
Tim Potter
75411005fc Fix for bug 261. Create a configure #define for FreeBSD and a check in
nsswitch/pam_winbind.h so we can compile properly on this platform.
-
Gerald Carter
65e7b5273b sync'ing up for 3.0alpha20 release -
Andrew Bartlett
8e705dd921 Various winbind updates:
- pam_winbind updates from vance, fixing a typo and making some the options
  work properly.

- Extra parinoia in the winbind connection loop

- Allow pam_winbind to compile on HP-UX (Don Mcall, more work to do).

- Fix up configure.in to use the same method for building the test .so
  as the Makefile uses.

Andrew Bartlett
-
Andrew Bartlett
dc1a72f896 Drastic impromvents to pam_winbind.
This adds code to do generic PAM -> NTSTATUS and NTSTATUS -> PAM error
conversions, and uses them to make the error handling in pam_winbind sane.

In particular, pam_winbind now uses PAM error codes, not silly '-1, -2 ...'
stuff, and logs the NTSTATUS error that winbind now sends over the pipe.

Added code to wbinfo to display these - makes a big difference in debugging
winbindd.

The main change here is the code to allow pam_winbind password changing to
correctly stack - This code ripped from pam_unix, and the copyright attached.
(Same as for all pam modules, including pam_winbind)

Andrew Bartlett
-
Simo Sorce
03dc67788f move to SAFE_FREE() -
Jeremy Allison
d52bc4d219 Try to fix build by adding autoconf tests for pam headers.
Jeremy.
-
Tim Potter
38ab3b31b5 iAdditional files for winbind merge. -