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

46 Commits

Author SHA1 Message Date
Günther Deschner
29758ea1c4 r15984: Correctly handle the case when there is no configuration file for
pam_winbind.

Guenther
2007-10-10 11:17:16 -05:00
Günther Deschner
bf077fb226 r15546: When debugging is enabled be just a little more verbose in logging in
pam_winbind.

Guenther
2007-10-10 11:16:57 -05:00
Günther Deschner
9dac3ab328 r15528: Make the existance of the /etc/security/pam_winbind.conf file
non-critical and fallback to only parse the argv options in that case.

Guenther
2007-10-10 11:16:56 -05:00
Volker Lendecke
7188ec6bd8 r15478: Likewise for bug # 3763 2007-10-10 11:16:53 -05:00
Günther Deschner
34b29c30b2 r15417: Don't use cached credentials when changing passwords.
Guenther
2007-10-10 11:16:41 -05:00
Günther Deschner
1856dc0f52 r15411: Small debug fixes for the PAM module.
Guenther
2007-10-10 11:16:41 -05:00
Günther Deschner
cc800ced60 r15399: Fix the build, sorry, Jerry :)
Guenther
2007-10-10 11:16:40 -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
Volker Lendecke
fc6effcd9c r15039: Fix an uninitialized variable. I _think_ this should default to
PAM_SUCCESS. Günther, could you take a look?

Thanks,

Volker
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
Gerald Carter
1e0b79e591 r15003: patch based on code from Arkady Glabek <aglabek@centeris.com> to ensure that global memory is freed when unloading pam_winbind.so (needs more testing on non-linux platforms) 2007-10-10 11:15:55 -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
1f1402e45d r14508: Return PAM_SUCCESS in pam_sm_close_session when there is no KRB5CCNAME
environment.

Guenther
2007-10-10 11:15:35 -05:00
Günther Deschner
2155bb0535 r14496: Add WBFLAG_PAM_GET_PWD_POLICY bit to only callout for domain password
policies when requested.

No panic, the flags is uint32 so we are not running out of WBFLAG bits.

Guenther
2007-10-10 11:15:34 -05:00
Volker Lendecke
bf7c608147 r13895: As agreed upon with gd on the phone, remove WBFLAG_PAM_CONTACT_TRUSTDOM. This
can not work for NTLM auth, where we only have a workstation account for our
own domain. For the PAM Kerberos login we need to find a better way to do
this, probably using Dsr_GetDCName and some winbind-crafted krb5.conf.

Volker
2007-10-10 11:10:59 -05:00
Günther Deschner
e6d52c1e9d r13492: As noone objected on the mailing-list:
Fix parse_domain_user to fail when splitting a full name like "DOM\user"
when "winbind use default domain" and "winbind trusted domains only" are
not enabled.

This allows pam_winbind to behave correctly when more modules are
stacked in the "account" or "password" PAM facility. pam_winbindd calls
WINBINDD_GETPWNAM which can decide whether or not a user is a winbind
user and return correct PAM error codes.

Guenther
2007-10-10 11:10:06 -05:00
Günther Deschner
e9ccebf45a r13391: Only fall into password change when ACB_PWNOEXP is not set
(got it wrong the first time as administrator has this flag set by
default).

Guenther
2007-10-10 11:09:58 -05:00
Günther Deschner
24c6b9fecb r13375: Match XP behaviour: Don't force 'Administrator' to change an expired
password on logon. (this might be true for all domain admins as well).

Guenther
2007-10-10 11:09:56 -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
Jeremy Allison
6795c818a3 r10321: Fix winbindd recursion bug found by Ingo Steuwer <steuwer@univention.de>.
Jeremy.
2007-10-10 11:03:40 -05:00
Günther Deschner
ef80a49a85 r7145: reuse the WINBIND_REQUIRED_MEMBERSHIP constant.
This is just cosmetic but prevents people from thinking that the
pam_winbind "require_membership_of"-option is not yet implemented :)

Guenther
2007-10-10 10:57:03 -05:00
Gerald Carter
9019a84361 r5207: patches from Jay Fenlason @ RedHat (scooped from their Fedora packages) 2007-10-10 10:55:33 -05:00
Günther Deschner
52dea588fd r3911: typo.
Guenther
2007-10-10 10:53:24 -05:00
Andrew Bartlett
83dadcd089 r2779: Some fixes to pam_winbind.c.:
Allow 'require_membership_of' and 'require-membership-of'.

Really use a different struct for the SID->Name lookup.

Andrew Bartlett
2007-10-10 10:52:52 -05:00
Andrew Bartlett
4bf0b94011 r2762: Remove silly conversion to and from UTF8 on the winbind pipe. Fix the
naming of the require_membership_of parameter in pam_winbind and fix
the error code for 'you didn't specify a domain' in ntlm_auth.

Andrew Bartlett
2007-10-10 10:52:51 -05:00
Jeremy Allison
a278dca1b2 r2482: Fix from Arthur van Dongen <avdongen@xs4all.nl> to fix acces -> access typos.
Jeremy.
2007-10-10 10:52:45 -05:00
Günther Deschner
74287178d2 r1971: move counter.
Guenther
2007-10-10 10:52:26 -05:00
John Terpstra
a0b80033c9 r1942: Add missing semicolon. 2007-10-10 10:52:24 -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
Gerald Carter
0fb724b321 *lots of small merges form HEAD
*sync up configure.in
*don't build torture tools in make all
*make sure to remove torture tools as part of make clean
-
Andrew Bartlett
9fa1863d8e Try to catch up on the code I've put into HEAD that should be in 3.0:
- vorlan's hosts allow with DNS names patch
 - use x_fileno() in debug.c, not the struct directly.
 - check for server timeout on password change (was reporting success)
 - better error/status loggin in both the pam_winbind client and winbindd_pam
server code.
 - (pdb_ldap) don't set the ldap version twice - we do it on every bind anyway.
-
Gerald Carter
65e7b5273b sync'ing up for 3.0alpha20 release -
Jelmer Vernooij
3928578b52 sync 3.0 branch with head -
Andrew Tridgell
03ac082dcb updated the 3.0 branch from the head branch - ready for alpha18 -
Andrew Bartlett
51fe3324dd More winbind for HPUX updates from Don Mccall. I think JRA has already
applied these to 2.2.

Andrew Bartlett
-
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
54e69ed20a Fix typo in copyright -
Tim Potter
33dd07d1fc Removed bogus calles to D() debugging function. Perhaps these should
be replaced by DEBUG() calls?
-
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
-
Tim Potter
b5540bee7b Removed silly fprintf(stderr, ...) debug.
Part of Samuel Ziegler's patch to get winbind password changing working
again in HEAD.
-
Tim Potter
caff5dc1d6 Don't log the password in pam_sm_authenticate() unless DEBUG_PASSWORD is
defined.  This is done with --enable-developer mode.
-
Tim Potter
1e7b1c71b9 Merge from TNG branch. -
Andrew Tridgell
80f85b5359 in head as well ...
renamed ntdom to winbind
I think that using winbind in /etc/nsswitch.conf is better than ntdom
-
Andrew Tridgell
3fb862531a brought the winbindd code into head
this does not yet compile, but I'm working on that.
-