summaryrefslogtreecommitdiff
path: root/source3/auth/pampass.c
Commit message (Collapse)AuthorAgeFilesLines
* s3:auth: use const in smb_pam_xxx_session()Gregor Beck2012-10-191-4/+4
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Michael Adam <obnox@samba.org>
* Correctly check for errors in strlower_m() returns.Jeremy Allison2012-08-091-2/+2
|
* loadparm: make the source3/ lp_ functions take an explicit TALLOC_CTX *.Rusty Russell2012-07-181-1/+1
| | | | | | | | | | They use talloc_tos() internally: hoist that up to the callers, some of whom don't want to us talloc_tos(). A simple patch, but hits a lot of files. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* s3-auth: use auth.h where needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* pam: share pam errors in a common location.Günther Deschner2011-02-081-0/+1
| | | | Guenther
* s3: Fix smb_pam_passcheckVolker Lendecke2010-08-281-2/+2
|
* s3: Those functions are no macros anymore :-)Volker Lendecke2010-08-281-4/+0
|
* s3: Lift smbd_server_fd() from smb_pam_passcheckVolker Lendecke2010-08-271-7/+2
|
* s3: Lift smbd_server_fd() from smb_pam_startVolker Lendecke2010-08-271-16/+9
| | | | | smb_pam_passcheck() is the only caller that fills in NULL, all other callers now properly fill rhost
* s3: Pass rhost through to smb_pam_passchangeVolker Lendecke2010-08-271-2/+3
|
* s3: Fix typosVolker Lendecke2010-08-261-2/+2
|
* pam: fix unused variable warningBjörn Jacke2010-08-241-1/+1
|
* s3: PAM_RHOST and PAM_TTY are enums on FreeBSDVolker Lendecke2010-08-231-3/+3
|
* s3: Turn two macros into functionsVolker Lendecke2010-08-221-6/+24
|
* s3: Pass the rhost through smb_pam_accountcheckVolker Lendecke2010-08-221-3/+3
|
* s3: Fix some nonemtpy blank linesVolker Lendecke2010-08-221-10/+9
|
* s3: Remove get_client_fd()Volker Lendecke2010-08-161-2/+3
|
* s3/pam: move variable declaration into belonging ifdef sectionBjörn Jacke2009-11-131-1/+1
| | | | This fixes a unused variable 'addr' warning on some platforms
* S3: Fixes for coverity issues.todd stecher2009-02-101-2/+2
|
* Memory leaks and other fixes found by Coveritytodd stecher2009-01-211-1/+3
|
* auth: Fix build warning.Günther Deschner2008-08-251-2/+3
| | | | | Guenther (This used to be commit 4661ef625a6522d6f859b83e3e3702f01d0b952f)
* Fix two incompatible pointer warningsVolker Lendecke2007-12-081-1/+1
| | | | | Jeremy, please check (This used to be commit 60500fac30911500eade7c2a9aa13569dcab0911)
* Remove next_token - all uses must now be next_token_talloc.Jeremy Allison2007-12-071-7/+14
| | | | | | No more temptations to use static length strings. Jeremy. (This used to be commit ec003f39369910dee852b7cafb883ddaa321c2de)
* Remove most of the remaining globals out of lib/util_sock.c.Jeremy Allison2007-11-031-2/+2
| | | | | | | I have a plan for dealing with the remaining..... Watch this space. Jeremy. (This used to be commit 963fc7685212689f02b3adcc05b4273ee5c382d4)
* I can't get away without a 'length' arg. :-).Jeremy Allison2007-11-031-1/+1
| | | | | Jeremy. (This used to be commit 95d01279a5def709d0a5d5ae7224d6286006d120)
* Stop get_peer_addr() and client_addr() from using globalJeremy Allison2007-11-031-1/+2
| | | | | | statics. Part of my library cleanups. Jeremy. (This used to be commit e848506c858bd16706c1d7f6b4b032005512b8ac)
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-181-12/+12
| | | | | | | | bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy. (This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-10-101-2/+1
| | | | (This used to be commit b0132e94fc5fef936aa766fb99a306b3628e9f07)
* r23779: Change from v2 or later to v3 or later.Jeremy Allison2007-10-101-1/+1
| | | | | Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
* r23095: Support systems that have their PAM headers in /usr/include/pam.James Peach2007-10-101-0/+4
| | | | (This used to be commit f1e8de4b576b3954d456cb64c02417908bab8da4)
* r18616: fix breakage after DLIST_ADD_END() changes for --with-pamGerald Carter2007-10-101-2/+1
| | | | (This used to be commit 5c00b5497b7b2bb345429893d247cbb6bb0f4e20)
* r17573: Fix typoVolker Lendecke2007-10-101-1/+1
| | | | (This used to be commit fd6e3f133b267a9506699d1c2934a153dd732df2)
* r12279: unix_mask_match has been broken for *ever*... (How).Jeremy Allison2007-10-101-2/+2
| | | | | | | | | Ensure it returns a BOOL. Jerry (and anyone else) please check this, I think all uses are now correct but could do with another set of eyes. Essential for 3.0.21 release. Jeremy. (This used to be commit 0c7b8a7637e760fcb6629092f36b610b8c71f5c9)
* r8889: Another warningVolker Lendecke2007-10-101-1/+1
| | | | (This used to be commit 9ae1098d211f5e687786abb8474b1c4210413f0f)
* r6445: Make us survive the PARANOID_MALLOC_CHECKER. Should we enable that forVolker Lendecke2007-10-101-5/+5
| | | | | | | --enable-developer=yes? Volker (This used to be commit 61d40ac60dd9c8c9bbcf92e4fc57fe1d706bc721)
* r4236: More *alloc fixes.Jeremy Allison2007-10-101-1/+1
| | | | | Jeremy. (This used to be commit 6b25a6e088390d33314ca69c8f17c869cec3904b)
* r2703: Fix typo noticed by Igor Belyi <sambauser@katehok.ac93.org>Jeremy Allison2007-10-101-1/+1
| | | | | Jeremy. (This used to be commit ba69c7229c27e917a24e6d608d59e7c0bdd47551)
* More tuning from cachegrind. Change most trim_string() calls to trim_char(0,Jeremy Allison2003-09-051-4/+4
| | | | | | as that's what they do. Fix string_replace() to fast-path ascii. Jeremy. (This used to be commit f35e9a8b909d3c74be47083ccc4a4e91a14938db)
* Fixed strlower changes I missed. Pointed out by metze.Jeremy Allison2003-07-041-2/+2
| | | | | Jeremy (This used to be commit da5ee2b765fc321b14e92eb27bde8ec8930b61d4)
* Merge from HEAD - make Samba compile with -Wwrite-strings without additionalAndrew Bartlett2003-01-031-2/+2
| | | | | | | warnings. (Adds a lot of const). Andrew Bartlett (This used to be commit 3a7458f9472432ef12c43008414925fd1ce8ea0c)
* updated the 3.0 branch from the head branch - ready for alpha18Andrew Tridgell2002-07-151-5/+8
| | | | (This used to be commit 03ac082dcb375b6f3ca3d810a6a6367542bc23ce)
* Fix use of uninitialsed variable in PAM codeAndrew Bartlett2002-02-051-2/+2
| | | | (This used to be commit 6c08c233e6675056c0ee0bbc4ecdcbc205950f54)
* Drastic impromvents to pam_winbind.Andrew Bartlett2002-02-051-21/+2
| | | | | | | | | | | | | | | | | | 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 (This used to be commit dc1a72f896b83bc1ad3c7bf6c12c36ace3967280)
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header. (This used to be commit 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa)
* Small 'const' updates ahead of some AuthRewrite merging.Andrew Bartlett2001-10-311-5/+5
| | | | (This used to be commit 3b5e72bda3263c6bdf81dfface4fae4f06b71032)
* This commit is number 4 of 4.Andrew Bartlett2001-10-291-13/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In particular this commit focuses on: Actually adding the 'const' to the passdb interface, and the flow-on changes. Also kill off the 'disp_info' stuff, as its no longer used. While these changes have been mildly tested, and are pretty small, any assistance in this is appreciated. ---- These changes introduces a large dose of 'const' to the Samba tree. There are a number of good reasons to do this: - I want to allow the SAM_ACCOUNT structure to move from wasteful pstrings and fstrings to allocated strings. We can't do that if people are modifying these outputs, as they may well make assumptions about getting pstrings and fstrings - I want --with-pam_smbpass to compile with a slightly sane volume of warnings, currently its pretty bad, even in 2.2 where is compiles at all. - Tridge assures me that he no longer opposes 'const religion' based on the ability to #define const the problem away. - Changed Get_Pwnam(x,y) into two variants (so that the const parameter can work correctly): - Get_Pwnam(const x) and Get_Pwnam_Modify(x). - Reworked smbd/chgpasswd.c to work with these mods, passing around a 'struct passwd' rather than the modified username --- This finishes this line of commits off, your tree should now compile again :-) Andrew Bartlett (This used to be commit c95f5aeb9327347674589ae313b75bee3bf8e317)
* Fixed up the change password bug when not using PAM.Jeremy Allison2001-10-021-2/+2
| | | | | | | | | | | | | The problem is we were trying to use mask_match as a generic wildcard matcher for UNIX strings (like the password prompts). We can't do that - we need a unix_wild_match (re-added into lib/util.c) as the ms_fnmatch semantics for empty strings are completely wrong. This caused partial reads to be accepted as correct passwd change responses when they were not.... Also added paranioa test to stop passwd change being done as root with no %u in the passwd program string. Jeremy. (This used to be commit 9333bbeb7627c8b21a3eaeae1683c34e17d14bf0)
* Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter2001-10-021-2/+0
| | | | (This used to be commit 2d0922b0eabfdc0aaf1d0797482fef47ed7fde8e)
* move to SAFE_FREE()Simo Sorce2001-09-171-12/+9
| | | | (This used to be commit 64d35e94fe6f7e56353b286162f670c8595a90e6)
* cope with pam being offAndrew Tridgell2001-09-041-1/+1
| | | | (This used to be commit 5f6e7bbce76c85571ee10a3f8b5bbbd0beadb632)