summaryrefslogtreecommitdiffstats
path: root/source/utils
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove setbuffer which caused build errorsJim McDonough2001-10-231-2/+0
|
* Replace getopt_long with popt for parsing commandline optionsJim McDonough2001-10-231-136/+91
|
* Added xstrdup, removed static version from smbpasswd.cJeremy Allison2001-10-221-14/+0
| | | | Jeremy.
* Add command-line remote management utilityJim McDonough2001-10-191-0/+1510
|
* first step in converting the head branch to use lang_tdb.c insteadAndrew Tridgell2001-10-112-21/+36
| | | | of gettext for internationalisation support. There is more to do
* Fixed bug when status=no and max smbd processes > 0.Jeremy Allison2001-10-111-0/+5
| | | | Jeremy.
* fix some possible memleaks and not tested reallocs spotted by Andreas MoroderSimo Sorce2001-10-031-0/+1
|
* Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter2001-10-029-21/+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-292-22/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Added -s configfile to smbcontrol.c.Volker Lendecke2001-09-211-6/+9
| | | | Volker
* Check 'hosts equiv' and 'use rhosts' compatability with 'hostnameAndrew Bartlett2001-09-201-0/+16
| | | | lookup' value.
* move to SAFE_FREE()Simo Sorce2001-09-175-28/+26
|
* free memory before returning.Simo Sorce2001-09-151-0/+7
| | | | tx Andreas Moroder.
* Fixed problems with arg parsing as root with smbpasswd.Jeremy Allison2001-09-121-8/+11
| | | | Jeremy.
* left out {Herb Lewis2001-09-101-1/+1
|
* prevent segv by not calling tdb_traverse and tdb_close if tdb_open_logHerb Lewis2001-09-101-18/+20
| | | | returns NULL.
* declare dbf in one spotAndrew Tridgell2001-09-105-5/+0
|
* replaced stdio in many parts of samba with a XFILE. XFILE is a cut-downAndrew Tridgell2001-09-105-11/+11
| | | | | | | | | replacemnt of stdio that doesn't suffer from the 8-bit filedescriptor limit that we hit with nasty consequences on some systems I would eventually prefer us to have a configure test to see if we need to replace stdio, but for now this code needs to be tested widely so I'm enabling it by default.
* convert more code to using d_printfAndrew Tridgell2001-09-082-395/+395
|
* got rid of USE_TDB_MMAP_FLAG as its not needed any moreAndrew Tridgell2001-09-062-3/+3
|
* 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.
* always include profile support so you do not need a different binary ofHerb Lewis2001-09-051-5/+0
| | | | smbstatus to dump profile stats.
* add profiling stats from 2.2Herb Lewis2001-09-051-2/+332
|
* When sending a message via a tdb, it must be open read/write.Jeremy Allison2001-09-051-1/+1
| | | | Jeremy.
* more warning fixes on solarisAndrew Tridgell2001-09-051-2/+2
|
* it now all compiles - so try enabling it by default and see what explodes on ↵Andrew Tridgell2001-09-041-7/+6
| | | | the build farm
* the next stage in the NTSTATUS/WERROR change. smbd and nmbd now compile, but ↵Andrew Tridgell2001-09-041-5/+5
| | | | the client code still needs some work
* Set acb_info to ACB_SVRTRUST if we are joining the domain as a BDC withoutTim Potter2001-08-311-2/+6
| | | | going through the server manager.
* merge from 2.2Gerald Carter2001-08-301-0/+3
|
* Fix uninitialised variables. Spotted by "Esh, Andrew" <AEsh@tricord.com>Tim Potter2001-08-291-0/+3
|
* Fuss, fuss, fuss...Christopher R. Hertel2001-08-291-1/+1
| | | | | | | | | | Function name_status_query() performs a node status query, so it really should be called "node_status_query()" just to be consistent. Yeah, minor... but it's looking as though an overhaul of namequery.c is in order and I am trying to do the tiny changes that impact other stuff first. Chris -)-----
* Added samsync and samrepl (untested) message types to smbcontrol.Tim Potter2001-08-281-0/+38
|
* Fixed typo in comment.Tim Potter2001-08-281-3/+1
|
* converted another bunch of stuff to NTSTATUSAndrew Tridgell2001-08-272-6/+6
|
* Same as nmbd.c. These now test wins_srv_count() instead of lp_wins_serverChristopher R. Hertel2001-08-261-1/+1
| | | | to determine whether the 'wins server' parameter is set.
* get rid of compiler warningsHerb Lewis2001-08-241-3/+3
|
* fixed handling of 139/445 in clientsAndrew Tridgell2001-08-241-2/+1
|
* Fix up some unused variables and functions, fix up formattingAndrew Bartlett2001-08-231-14/+0
|
* A few changes:Andrew Bartlett2001-08-221-60/+44
| | | | | | | | | | | | drop paramaters: status utmp hostname change session code to always record each vuid current on the server. The sessionid struct is no longer packed, as I couldn't get that to work ;-) change smbstatus to show this info and less of the connections.tdb info (its not actualy that accurate). I'll get swat doing some of this shortly.
* added -b optionAndrew Tridgell2001-08-201-2/+9
|
* Allow smbpasswd to join a W2K hosted AD domain.Jeremy Allison2001-08-021-3/+10
| | | | Jeremy.
* Added "use mmap" for HPUX.Jeremy Allison2001-07-302-2/+2
| | | | Jeremy.
* Held a shoot-out between NT_STATUS_NO_PROBLEMO and NT_STATUS_NOPROBLEMO.Tim Potter2001-07-251-2/+2
| | | | | | According to the incorruptible judges find and grep, the latter won. Mmm - procrastination. (-:
* nicer smbtree outputAndrew Tridgell2001-07-251-2/+4
|
* Changed instances of TRUE, FALSE to True, False as some compilers don'tTim Potter2001-07-121-23/+23
| | | | have the first set of symbols.