summaryrefslogtreecommitdiffstats
path: root/source/passdb
Commit message (Collapse)AuthorAgeFilesLines
...
* Add a new interface pdb_set_plaintext_passwd() to the passdb. This simplyAndrew Bartlett2001-09-261-11/+26
| | | | | | | | interfaces to the existing set NT and LM functions, but ensures we always do it in the same way. This also allows for the possibility for the unix password sync code to be hidden behind the passdb interface as some stage.
* We don't use a modified 'user' in any case, so don't modifiy it.Andrew Bartlett2001-09-261-1/+1
|
* Fixup passdb stuff to add new nisplus and ldap backends.Jeremy Allison2001-09-255-296/+2824
| | | | Jeremy.
* Don't segfault when deleting accounts not in /etc/passwd. The RID we want isAndrew Bartlett2001-09-251-5/+2
| | | | | | the one in the sampass anyway. Andrew Bartlett
* memory leak fixes ..Simo Sorce2001-09-251-7/+21
|
* Move pass_check.c over to NTSTATUS, allowing full NTSTATUS from PAM to wire!Andrew Bartlett2001-09-201-80/+118
| | | | | Add the ability for swat to run in non-root-mode (ie non-root from inetd). - we still need some of the am_root() calls fixed however.
* Use lp_private_dir() not magic on the lp_smb_passwd_file() output.Andrew Bartlett2001-09-191-7/+2
|
* Remove the ugly hacks to get around the Get_Pwnam() calls in pass_check.c byAndrew Bartlett2001-09-191-5/+6
| | | | | | | | | | | | | simply not doing Get_Pwnam() calls in pass_check.c We now make *one* sys_getpnam() call in cgi.c and we always call PAM no matter what it returns. We also no longer run the password cracker for these logins. The truly parinod will note the slight difference in call paths, in that we only call crypt for valid password structs (if not --with-pam). The truly parinoid don't run SWAT either, so I don't think this is an issue. Andrew Bartlett
* move to SAFE_FREE()Simo Sorce2001-09-175-34/+22
|
* merges from 2.2Gerald Carter2001-09-141-2/+2
|
* String length fix from Toomas Soome <tsoome@ut.ee>Tim Potter2001-09-121-1/+1
|
* passdb/smbpassfile ain't needed any more - it only provided migration from ↵Andrew Tridgell2001-09-101-297/+0
| | | | an ancient file format, not relevant for Samba 3.0
* got rid of USE_TDB_MMAP_FLAG as its not needed any moreAndrew Tridgell2001-09-062-8/+8
|
* Started a cleanup of smbpasswd related stuff. I've created a new fileTim Potter2001-09-065-143/+14
| | | | | | | | | | | | | | | | lib/smbpasswd.c which will contain routines related to manipulating smbpasswd entries. - renamed and moved pdb_{get,set}hexpwd() functions - renamed and moved pdb_{decode,encode}acct_ctrl() functions - started hiding references to the cruftalicious NEW_PW_FORMAT_SPACE_PADDED_LEN constant - started gradual rename of references to acct_ctrl to acb_info which is the nomenclature used in MSDN and header files There's still more work to be done. Currently there are several places where smbpasswd entries are iterated etc. Ideally this should all happen through the passdb system.
* fixed some compilation errors in cli_netlogon.c - tim, you need to rerun ↵Andrew Tridgell2001-09-051-3/+2
| | | | configure to get the new NTSTATUS stuff right
* more warning fixes on solarisAndrew Tridgell2001-09-051-1/+3
|
* cope with pam being offAndrew Tridgell2001-09-041-1/+1
|
* the next stage in the NTSTATUS/WERROR change. smbd and nmbd now compile, but ↵Andrew Tridgell2001-09-042-18/+19
| | | | the client code still needs some work
* changed the data format in the tdb, as the time fields were notSimo Sorce2001-08-311-24/+29
| | | | | managed correctly. this mean you need to rebuild your passdb.tdb file.
* Fixed silly typo.Jeremy Allison2001-08-301-3/+3
| | | | Jeremy.
* Fix from Paul Green to set correct lengths.Jeremy Allison2001-08-301-3/+3
| | | | Jeremy.
* converted another bunch of stuff to NTSTATUSAndrew Tridgell2001-08-272-11/+11
|
* get rid of compiler warningsHerb Lewis2001-08-241-1/+1
|
* merge from 2.2Gerald Carter2001-08-231-3/+14
|
* Fixed typo in debug message.Tim Potter2001-08-131-2/+2
|
* this is a big global fix for the ptr = Realloc(ptr, size) bug.Simo Sorce2001-08-121-7/+12
| | | | | | many possible mem leaks, and segfaults fixed. someone should port this fix to 2.2 also.
* a few cleanups while mergeing the passdb code into 2.2Gerald Carter2001-08-091-3/+0
|
* Change all realloc() statements to Realloc() (ecxept for tdb.c)Simo Sorce2001-08-081-2/+2
| | | | | | | changed some code to exploit the fact that Realloc(NULL, size) == malloc(size) fixed some possible mem leaks, or seg faults. thanks to andreas moroder (mallocs not checked in client/client.c, client/smbumount.c)
* Added "use mmap" for HPUX.Jeremy Allison2001-07-302-8/+8
| | | | Jeremy.
* Fix case insensitive password change code.Jeremy Allison2001-07-231-4/+2
| | | | | Fixed crash bug with un-zeroed talloced memory. Jeremy.
* move the global_machine_password_needs_changing where we need it.Simo Sorce2001-07-171-2/+0
|
* Changed instances of TRUE, FALSE to True, False as some compilers don'tTim Potter2001-07-121-1/+1
| | | | have the first set of symbols.
* This removes unused paramaters from various authtication functions, and shouldAndrew Bartlett2001-07-081-7/+2
| | | | | | | | | not change behaviour. This should make my later diffs smaller, where I actualy start cleaning up this mess... Andrew Bartlett
* Password changing via PAM works now. DONT CHANGE THIS UNLESS YOU RE-TEST !!!!!!Jeremy Allison2001-07-061-2/+19
| | | | Jeremy.
* Wrapped dlerror() in the same way as the other dlxxx() calls.Jeremy Allison2001-07-061-2/+2
| | | | Jeremy.
* strchr and strrchr are macros when compiling with optimisation in gcc, so we ↵Andrew Tridgell2001-07-043-7/+7
| | | | can't redefine them. damn.
* The big character set handling changeover!Andrew Tridgell2001-07-041-6/+1
| | | | | | | This commit gets rid of all our old codepage handling and replaces it with iconv. All internal strings in Samba are now in "unix" charset, which may be multi-byte. See internals.doc and my posting to samba-technical for a more complete explanation.
* Added Andrew's pam password change stuff. Needs some testing but looks good !Jeremy Allison2001-06-251-44/+140
| | | | Jeremy.
* fixed usage of socklen_t and also tidied up SIG_ATOMIC_T, using a typedef ↵Andrew Tridgell2001-06-251-1/+1
| | | | instead of a define
* Changes to use new genrand code that got missed while I was in Japan.Jeremy Allison2001-06-061-0/+29
| | | | Jeremy.
* use LDSHFLAGS not -shared in several placesAndrew Tridgell2001-06-042-8/+8
|
* update from SimoGerald Carter2001-05-101-8/+8
|
* Fixed up the oldpw prompts. Made the matching case insensitive.Jeremy Allison2001-05-091-5/+24
| | | | Jeremy.
* very nasty bug !Jean-François Micouleau2001-05-091-1/+1
| | | | J.F.
* fixes to the group mapping code.Jean-François Micouleau2001-05-081-2/+2
| | | | | | Not ready yet. J.F.
* merge from 2.2 removing the 'domain XXX' parameters.Gerald Carter2001-05-071-16/+3
|
* Patch from Simo:Gerald Carter2001-05-072-24/+53
| | | | | | o sed 's/pdb_clear_sam/pdb_free_sam/g' o add pdb_reset_sam() o password changing should be ok now as well.
* Big cleanup of passdb and backends.Jean-François Micouleau2001-05-043-618/+434
| | | | | | | I did some basic tests but I have probably broken something. Notably the password changing. So don't cry ;-) J.F.
* fixes from SimoGerald Carter2001-05-042-213/+281
|
* Had to add a "pam password change" parameter (defaults to "off") and inlinedJeremy Allison2001-05-021-10/+11
| | | | | | | | | | | the pam password change code to ensure that existing and working password chat scripts don't break with 2.2.1. PAM password changing has to be explicitly requested. Allowed wildcards in pam password change matching (matches password chat script matching). Had to add const (sorry Tim :-) to ms_fnmatch() to stop warnings. Don't worry - the const changes are isolated and don't cause any other warnings :-). Jeremy.