summaryrefslogtreecommitdiffstats
path: root/source/utils/pdbedit.c
Commit message (Collapse)AuthorAgeFilesLines
* Move over to RELEASE branch.Jeremy Allison2002-02-011-26/+123
| | | | Jeremy.
* New files added.Jeremy Allison2001-10-111-21/+23
| | | | Jeremy.
* Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter2001-10-021-1/+0
|
* Don't try to write the LM password in the NT password feild.Andrew Bartlett2001-09-301-1/+0
|
* Fix up a number of intertwined issues:Andrew Bartlett2001-09-291-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The big one is a global change to allow us to NULLify the free'ed pointer to a former passdb object. This was done to allow idra's SAFE_FREE() macro to do its magic, and to satisfy the input test in pdb_init_sam() for a NULL pointer to start with. This NULL pointer test was what was breaking the adding of accounts up until now, and this code has been reworked to avoid duplicating work - I hope this will avoid a similar mess-up in future. Finally, I fixed a few nasty bugs where the pdb_ fuctions's return codes were being ignored. Some of these functions malloc() and are permitted to fail. Also, this caught a nasty bug where pdb_set_lanman_password(sam, NULL) acheived precisely didilly-squat, just returning False. Now that we check the returns this bug was spotted. This could allow different LM and NT passwords. - the pdbedit code needs to start checking these too, but I havn't had a chance to fix it. I have also fixed up where some of the password changing code was using the pdb_set functions to store *internal* data. I assume this is from a previous lot of mass conversion work... Most likally (and going on past experience) I have missed somthing, probably in the LanMan password change code which I havn't yet been able to test, but this lot is in much better shape than it was before. If all this is too much to swallow (particularly for 2.2.2) then just adding a sam_pass = NULL to the particular line of passdb.c should do the trick for the ovbious bug. Andrew Bartlett
* Removed smbpasswd_XX call (how did this get re-added, I removed allJeremy Allison2001-09-271-1/+1
| | | | | these yesterday ?). Jeremy.
* Sync 2.2.2 and HEAD (I will keep these the same if it kills me :-).Jeremy Allison2001-09-271-127/+103
| | | | Jeremy.
* Major update to pdbedit's import and export code, in line with reqests for itAndrew Bartlett2001-09-271-81/+83
| | | | | | | | | to use the pdb_ formatting functions. Similarly, it now uses pdb_set...() rather than accessing passdb members directly. Andrew Bartlett
* Fix up pdbedit to initialise its structures with the standard functions,Andrew Bartlett2001-09-261-40/+52
| | | | | | | | | | therfore ensuring sensible defaults for some values, notably account expriries which mean 'locked out' if == 0. This NEEDS to be merged into 2.2.2 or people can get wrongly initilaised TDB records. (which will only fail on future versions of samba). Andrew Bartlett
* Started a cleanup of smbpasswd related stuff. I've created a new fileTim Potter2001-09-061-12/+16
| | | | | | | | | | | | | | | | 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 typo in comment.Tim Potter2001-08-281-3/+1
|
* Changed instances of TRUE, FALSE to True, False as some compilers don'tTim Potter2001-07-121-23/+23
| | | | have the first set of symbols.
* strchr and strrchr are macros when compiling with optimisation in gcc, so we ↵Andrew Tridgell2001-07-041-2/+2
| | | | can't redefine them. damn.
* The big character set handling changeover!Andrew Tridgell2001-07-041-2/+0
| | | | | | | 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.
* Patch from Simo:Gerald Carter2001-05-071-7/+8
| | | | | | o sed 's/pdb_clear_sam/pdb_free_sam/g' o add pdb_reset_sam() o password changing should be ok now as well.
* Removed unused variable.Tim Potter2001-05-071-1/+0
|
* Big cleanup of passdb and backends.Jean-François Micouleau2001-05-041-33/+60
| | | | | | | I did some basic tests but I have probably broken something. Notably the password changing. So don't cry ;-) J.F.
* groupdb/mapping.c:Jeremy Allison2001-03-231-0/+2
| | | | | | | | | include/proto.h: Fix missing (void) in proto. rpc_server/srv_samr_nt.c: Fix user private group problem by filtering out groups that clash with users. smbd/posix_acls.c: Ensure default ACE's are sensible. utils/pdbedit.c: Fix from Simo Sorce. Jeremy.
* patches from Simo. Couple of snity thingsGerald Carter2001-03-141-4/+4
|
* added passdb editor (rough form with a few bugs) Should workGerald Carter2000-12-061-0/+692
with all backends. --jerry