summaryrefslogtreecommitdiffstats
path: root/source/passdb
Commit message (Collapse)AuthorAgeFilesLines
* updating whatsnew and merging from SAMBA_2_2Gerald Carter2002-10-151-2/+10
|
* sync for rc2 :-( (forgot the LDAP fix)Gerald Carter2002-10-101-2/+2
|
* sync with SAMBA_2_2 for 2.2.6rc1Gerald Carter2002-10-091-1/+46
|
* syncing up for 2.2.6pre2Gerald Carter2002-08-272-0/+15
|
* merging for 2.2.6pre1Gerald Carter2002-07-273-29/+30
|
* more syncs with SAMBA_2_2Gerald Carter2002-06-181-2/+39
|
* beginning to sync up for 2.2.5 release....Gerald Carter2002-06-173-46/+79
|
* merge from 2.2Gerald Carter2002-05-021-1/+1
|
* merge from SAMBA_2_2Gerald Carter2002-05-011-2/+2
|
* syncing up with SAMBA_2_2 treeGerald Carter2002-05-011-93/+101
|
* Start of merge to 2_2_RELEASE branch for release.Jeremy Allison2002-04-306-210/+136
| | | | Jeremy.
* Sync for release.Jeremy Allison2002-02-021-5/+9
| | | | Jeremy
* Merging for release.Jeremy Allison2002-02-014-2922/+0
| | | | Jeremy.
* Move over to RELEASE branch.Jeremy Allison2002-02-0110-569/+570
| | | | Jeremy.
* New files added.Jeremy Allison2001-10-115-25/+48
| | | | Jeremy.
* Removing unused files.Jeremy Allison2001-10-112-1630/+0
| | | | Jeremy.
* Sync-up with SAMBA_2_2 branch.Jeremy Allison2001-10-115-1043/+1243
| | | | Jeremy.
* This commit was manufactured by cvs2svn to create branchcvs2svn Import User2001-10-105-0/+5042
|\ | | | | 'SAMBA_2_2_RELEASE'.
| * merge from 2.2Gerald Carter2001-10-101-11/+32
| |
| * Fixes from John Trostel (modified somewhat by me) to ensure that all lookup_XXJeremy Allison2001-10-091-0/+10
| | | | | | | | | | | | functions correctly deal with the SID_NAME_TYPE. One fix for connection user lookup in LSA. Jeremy.
| * Added a comment about not changing the magic timestamp values withoutTim Potter2001-10-032-0/+7
| | | | | | | | knowing what you are doing!
| * Ensure accessing NT member servers works with a Samba PDC. Don'tJeremy Allison2001-10-033-7/+7
| | | | | | | | | | | | change these timestamp settings without good reason. Remove CLEAR_IF_FIRST flag is tdb is read-only. Jeremy.
| * set ACB_PWNOEXP by default on new accounts.Andrew Tridgell2001-10-031-2/+2
| |
| * 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.
| * Fixed the bug with member servers in a Samba PDC hosted domain not allowingJeremy Allison2001-10-023-25/+22
| | | | | | | | | | | | other access. Problem was max time was being set to 0xffffffff, instead of 0x7fffffff. Jeremy.
| * Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter2001-10-028-19/+0
| |
| * - fix handling of 0 last_change_time and must_change_timeAndrew Tridgell2001-10-013-12/+10
| | | | | | | | - move the arbitrary 21 day timeout to local.h
| * This is the passdb section of the previously mentioned commit.Andrew Bartlett2001-09-292-65/+111
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Of particular note is the change to pdb_free_sam() to take its sam argument by reference, allowing it to be NULLified by the SAFE_FREE() macro, and the changed to local_password_change() both to make it work and to remove the duplicate code that caused so much breakage over the last few days. - Small change in behaviour: when LOCAL_ADD_USER is set, the user doesn't actually exist locally but does exist in the passdb we don't attempt to do a GetPwnam(). (How the entry got there is another matter, and most passdbs won't allow this anyway). Andrew Bartlett
| * How the heck I missed this I don't know, but somehow I got a copy-and-pasteAndrew Bartlett2001-09-281-16/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | error in here... Now you can change local passwords again. There is stil somthing broken about remote (via windows/sampasswd) password changing. I shall have to revise my testing, I honestly don't know how this slipped through the net. MERGE for 2.2.2. Sorry, Andrew Bartlett
| * Merge HEAD and 2.2 - try frantically to keep in sync.Jeremy Allison2001-09-271-13/+13
| | | | | | | | Jeremy.
| * Fix memory leak in get_sampwd_entries(), reindent for clarity.Andrew Bartlett2001-09-271-35/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - call pdb_reset_sam() after each getent call. Fix bug in get_group_alias_entries(), were if num_entries was zero this caused talloc() to return NULL, failing a test below with NT_STATUS_NO_MEMORY. Fix pdb_reset_sam() to correctly initalise the sam structure. Move default value code into a single place, likewise for sam freeing code. - should make things easier if we decide to malloc other strings, or get more non-zero default values. Finally, add a function in init a sam struct from a getpwnam() return. Andrew Bartlett
| * minor fixesSimo Sorce2001-09-271-22/+10
| |
| * merge from 2.2Gerald Carter2001-09-262-3/+3
| |
| * Fix the uninitialised variable, but more importantly fix the SEGFAULT.Andrew Bartlett2001-09-261-2/+4
| | | | | | | | | | | | | | | | Merge for 2.2.2 Should TDB cope with TDB pointers itself? Andrew Bartlett
| * Fix up TDB_SAM with repect to case sensitvity. (need to use unix_strlower)Andrew Bartlett2001-09-261-7/+9
| | | | | | | | | | | | | | Also attempt to make some of the syntax clearer, its confusing enought for the compiler... (it thinks that there is use of an unitilaised variable) In fact there is, see next patch...
| * 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