summaryrefslogtreecommitdiff
path: root/source3/nsswitch/pam_winbind.c
AgeCommit message (Collapse)AuthorFilesLines
2008-10-10pam_winbind: re-add mkhomedir option.Günther Deschner1-3/+132
Guenther
2008-10-10pam_winbind: remove unused pam_winbind_request().Günther Deschner1-47/+0
Guenther
2008-10-10pam_winbind: fix wbc_auth_error_to_pam_error().Günther Deschner1-18/+14
Guenther
2008-10-10pam_winbind: remove ACB_PWNOEXP.Günther Deschner1-2/+2
Guenther
2008-10-10pam_winbind: use libwbclient for WINBINDD_PAM_AUTH.Günther Deschner1-116/+251
Guenther
2008-10-10pam_winbind: use libwbclient for WINBINDD_PAM_LOGOFF.Günther Deschner1-19/+56
Guenther
2008-10-10pam_winbind: use libwbclient for WINBINDD_PAM_CHAUTHTOK.Günther Deschner1-73/+71
Guenther
2008-10-10pam_winbind: use libwbclient for WINBINDD_LOOKUPNAME/LOOKUPSID.Günther Deschner1-51/+23
Guenther
2008-10-10pam_winbind: use libwbclient for WINBINDD_INFO.Günther Deschner1-9/+12
Guenther
2008-10-10pam_winbind: use libwbclient for WINBINDD_GETPWNAM.Günther Deschner1-15/+11
Guenther
2008-10-10pam_winbind: add _pam_check_remark_auth_err().Günther Deschner1-0/+41
Guenther
2008-10-10pam_winbind: add wbc_auth_error_to_pam_error().Günther Deschner1-8/+45
Guenther
2008-10-10pam_winbind: add wbc_error_to_pam_error().Günther Deschner1-0/+36
Guenther
2008-10-10pam_winbind: convert to use talloc.Günther Deschner1-57/+50
Guenther
2008-09-23pam_winbind: attempt to fix build issue on solaris, bug #5784Günther Deschner1-0/+8
Guenther
2008-08-19pam_winbind: some doxygen fixes.Günther Deschner1-24/+12
Guenther (This used to be commit f2a2ed315e393353110aa7760b4eca4f1f49ca21)
2008-08-19pam_winbind: use pam error string function to display result.Günther Deschner1-1/+2
Guenther (This used to be commit 8504a92ac55d6936df051be66207a59a76bf32a3)
2008-08-19pam_winbind: add _pam_error_code_str().Günther Deschner1-0/+72
Guenther (This used to be commit 693f90fd2394309ce40d3ca5fc007543058b342a)
2008-07-07Allow authentication and memory credential refresh after password change ↵Jeremy Allison1-7/+14
from gdm/xdm. Patch from boyang <boyang@novell.com>. Jeremy. (This used to be commit 8cfc6afc7b4a6af9aea5f5a7cb5af7e3218c2d75)
2008-06-11pam_winbind: Update cached creds during password change.Günther Deschner1-0/+4
Fix is from Bo Yang @ Novell. Thanks! (This used to be commit e4eb9d347d14de8c9ba73b07f26fe8fd4f17eab5)
2008-06-06pam_winbind: fix pam_sm_chauthtok for storing modified cached creds.Günther Deschner1-1/+16
Thanks to Bo Yang for pointing this out. Guenther (This used to be commit 516a067016955938988ab37c777102a14b41e100)
2008-04-03Fix pam_winbind macros.Günther Deschner1-2/+2
Guenther (This used to be commit 37091859126167e84e55afe8a32025ac0f65065e)
2008-04-03Use pwb_context in pam_winbind.Günther Deschner1-391/+343
Guenther (This used to be commit bf960f57e7adf09cdf096f2c72065ea1ff8b0daa)
2008-04-03Add _pam_winbind_init/free_context.Günther Deschner1-0/+39
Guenther (This used to be commit d62676cf886d910334b3d6f7ce0147b75ef53aec)
2008-04-03Make more functions in pam_winbind static.Günther Deschner1-30/+30
Guenther (This used to be commit ea2175ee0e6288ccb132e86b9dd0bf8a0e4169c9)
2008-03-27Only add WBFLAG_PAM_CONTACT_TRUSTDOM when performing a krb5 auth request.Gerald W. Carter1-3/+7
NTLM logons must go against our DC. (This used to be commit 2e24f7c0243c67a00102c11258cfa6f61caf499f)
2008-02-28winbind: use a struct element for WBFLAG_PAM_UNIX_NAMEStefan Metzmacher1-2/+3
To not conflict with WBFLAG_PAM_INFO3_TEXT. This should fix pam_winbind. metze (This used to be commit 1b8ed6c0ffb2548442bb7e9d848117ce9b1c65c0)
2008-01-17Finally enable pidl generated SAMR & NETLOGON headers and clients.Günther Deschner1-4/+4
Guenther (This used to be commit f7100156a7df7ac3ae84e45a47153b38d9375215)
2007-12-20Only retrieve password policies in pam_auth when WBFLAG_PAM_GET_PWD_POLICY ↵Michael Adam1-0/+1
is set. This essentially re-establishes r14496 (2155bb0535656f294bd054d6a0a7d16a9a71c31b) which was undone in r17723 (43bd8c00abb38eb23a1497a255d194fb1bbffffb) for reasons that are unclear to me. Maybe I am being too naive. Now we do again only retrieve the password policy when called from the pam_winbind module. This fixes logons delegated to AD trusted domain controllers: We need to connect to the sam to retrieve the password policy. But auhtenticated session setup is not possible when contacting the trusted domain dc and afterwards, SamrConnect also fails with whatever credentials and method used. Michael (This used to be commit 6d765e0de523211a2d0b43a2c4c4117f5f0c662f)
2007-10-10r25426: Fix another implicit cast warning.Michael Adam1-1/+1
Michael (This used to be commit 4a053d5bf9db82b5ae9ac342f68e90ef89ba292f)
2007-10-10r25148: Adapt to coding conventions.Günther Deschner1-414/+697
Guenther (This used to be commit c3b423c52a2bf3f50870158d8c7ffd314c8ac935)
2007-10-10r25143: rename public functions from winbind_client.hStefan Metzmacher1-6/+6
init_request => winbindd_init_request free_response => winbindd_free_response read_reply => winbindd_read_reply write_sock => winbind_write_sock read_sock => winbind_read_sock close_sock => winbind_close_sock(void) metze (This used to be commit 8a95d7a7edcfa5e45bccc6eda5c45d9c308cb95d)
2007-10-10r25130: make use only of base types which are provided by libreplaceStefan Metzmacher1-56/+56
in winbind client and nss/pam stuff metze (This used to be commit 2e13e05fa91788bd128e6940bccc0d2cc7140986)
2007-10-10r24786: Fix another build warning.Günther Deschner1-5/+5
Guenther (This used to be commit 29a56dcc78c49653bcf72dea6313fd4852de8f72)
2007-10-10r24722: Squashed commit of the following:Gerald Carter1-2/+99
commit fb52f971986dd298abbcd9745ddf702820ce0184 Author: Gerald Carter <coffeedude@plainjoe.org> Date: Mon Aug 27 13:50:26 2007 -0500 Check correct return type for pam_winbind_request_log() wnibind_upn_to_username which is an int and not NSS_STATUS. commit 7382edf6fc0fe555df89d5b2a94d12b35049b279 Author: Gerald Carter <coffeedude@plainjoe.org> Date: Mon Aug 27 13:30:26 2007 -0500 Allow wbinfo -n to convert a UPN to a SID commit 8266c0fe1ccf2141e5a983f3213356419e626dda Author: Gerald Carter <coffeedude@plainjoe.org> Date: Fri Aug 3 09:53:16 2007 -0500 Merge some of Guenther UPN work for pam_winbind.c (check the winbind separator and better pam logging when converting a upn to a username). commit 15156c17bc81dbcadf32757015c4e5158823bf3f Author: Gerald Carter <coffeedude@plainjoe.org> Date: Fri Aug 3 08:52:50 2007 -0500 Include Universal groups from the cached PAC/SamLogon info when generating the list of domain group SIDs for a user's token. commit 979053c0307b051954261d539445102c55f309c7 Author: Gerald Carter <coffeedude@plainjoe.org> Date: Thu Aug 2 17:35:41 2007 -0500 merge upnlogon patch from my tree (This used to be commit 98fb5bcd5702d5086bdf9b58105a67efb90950f4)
2007-10-10r23708: - Add define for WINBIND_WARN_PWD_EXPIRE.Lars Müller1-2/+11
- Add parameter config_flag to get_config_item_int() and do the same check as in get_conf_item_string. (This used to be commit d1d1baa264587911e1c97b3b35d5ed2bc56bf12b)
2007-10-10r23707: - Move the asprintf() call to create the key even inLars Müller1-14/+12
get_conf_item_string() to the later if statement. - Also move the key definition to the later if statement in get_conf_item_string() and get_conf_item_int(). (This used to be commit 3a82ec943a3828b843dd47aaa0e360844d4dfb91)
2007-10-10r23704: Add pam_pwd_expire feature as discussed on samba-technical.Lars Müller1-10/+94
This is a slightly modified version to set warn_pwd_expire to the default value if 0, no, or a broken value is set. This version also has one if statement less in get_config_item_int(). Thanks a lot to Andreas 'GlaDiaC' Schneider for this feature! (This used to be commit d26914c978457ae0ec097cc40c8e33a7cee9ebcf)
2007-10-10r22794: Add "debug_state" and "silent" to pam_winbind.conf template. Honor ↵Günther Deschner1-0/+2
the silent argument when parsing pam configuration file options. Guenther (This used to be commit 5b4a4df26f32fe1947a0c4fb741a4cb89e308f92)
2007-10-10r22712: Inform the user when logging in via pam_winbindGerald Carter1-0/+27
and the krb5 tkt cache could not be created due to clock skew. (This used to be commit 24616f7d6be40b090dc74851b1ea7d09d6976811)
2007-10-10r22402: Fix build warning.Günther Deschner1-1/+1
Guenther (This used to be commit bf9131fed30b3d6f80c41734c04450a1e6bcba5b)
2007-10-10r22393: fix cut&paste errorSimo Sorce1-1/+1
(This used to be commit 70878d698532aa8b0e151e7772894e251290186e)
2007-10-10r22388: clearer message, thanks DavidSimo Sorce1-1/+1
(This used to be commit 7961476784713267efc19d305aa66c68275ccaa1)
2007-10-10r22348: 3_0 as wellSimo Sorce1-1/+1
(This used to be commit ad57434faf806a6ad27beb0f75b73d5389a35382)
2007-10-10r21933: Change the write_sock() call in pam_winbind_request()Gerald Carter1-1/+1
to not request a privileged pipe operation for everything as this cannot be done from a process running under the context of a user (e.g. screensaver). Thanks to Danilo Almeida <dalmeida@centeris.com> for the help in pointing out the change to write_sock(). (This used to be commit 80790f935abc8905542338b08f54d61ebacf2ff1)
2007-10-10r21878: Fix a bug with smbd serving a windows terminal server: If winbind ↵Volker Lendecke1-1/+1
decides smbd to be idle it might happen that smbd needs to do a winbind operation (for example sid2name) as non-root. This then fails to get the privileged pipe. When later on on the same connection another authentication request comes in, we try to do the CRAP auth via the non-privileged pipe. This adds a winbindd_priv_request_response() request that kills the existing winbind pipe connection if it's not privileged. Volker (This used to be commit e5741e27c4c22702c9f8b07877641fecc7eef39c)
2007-10-10r21632: Remove ununsed variableGerald Carter1-1/+0
(This used to be commit 82dc19f844af65a8815c629e4ec1f354d208a53f)
2007-10-10r21612: Make pam_winbind do the same username fixup on AIX as the WINBINDDGerald Carter1-2/+32
LAM module does to work around a system that does not support >8 character usernames. Without the change, pam_winbind tries to authenticate _#uid in the domain. (This used to be commit 7f0ba72e05acbd958fbf768a04d16c29189dc8f7)
2007-10-10r21500: Fix inappropriate creation of a krb5 ticket refreshing event when a userGünther Deschner1-6/+56
changed a password via pam_chauthtok. Only do this if a) a user logs on using an expired password (or a password that needs to be changed immediately) or b) the user itself changes his password. Also make sure to delete the in-memory krb5 credential cache (when a user did not request a FILE based cred cache). Finally honor the krb5 settings in the first pam authentication in the chauthtok block (PAM_PRELIM_CHECK). This circumvents confusion when NTLM samlogon authentication is still possible with the old password after the password has been already changed (on w2k3 sp1 dcs). Guenther (This used to be commit c3005c48cd86bc1dd17fab80da05c2d34071b872)
2007-10-10r21318: Fix Bug #4225.Günther Deschner1-6/+8
Cached logon with pam_winbind should work now also for NT4 and samba3 domains. Guenther (This used to be commit b2f91154820219959b8008b15802c70e1d76d158)