summaryrefslogtreecommitdiff
path: root/source3/utils
AgeCommit message (Collapse)AuthorFilesLines
2001-10-11first step in converting the head branch to use lang_tdb.c insteadAndrew Tridgell2-21/+36
of gettext for internationalisation support. There is more to do (This used to be commit ab7f67677a1ade4669e5c2750d0a38422ea616a9)
2001-10-11Fixed bug when status=no and max smbd processes > 0.Jeremy Allison1-0/+5
Jeremy. (This used to be commit d1adaee373f08020d350af2aa65b7651da94bdae)
2001-10-03fix some possible memleaks and not tested reallocs spotted by Andreas MoroderSimo Sorce1-0/+1
(This used to be commit d30939a091b48f4d77f7618c75668ae151a5592e)
2001-10-02Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter9-21/+0
(This used to be commit 2d0922b0eabfdc0aaf1d0797482fef47ed7fde8e)
2001-09-30Don't try to write the LM password in the NT password feild.Andrew Bartlett1-1/+0
(This used to be commit 90dcbe16be065e2113fba1d3cee28f40be1bb86c)
2001-09-29Fix up a number of intertwined issues:Andrew Bartlett2-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 (This used to be commit 762c8758a7869809d89b4da9c2a5249678942930)
2001-09-27Removed smbpasswd_XX call (how did this get re-added, I removed allJeremy Allison1-1/+1
these yesterday ?). Jeremy. (This used to be commit e25dc68843ed10d8454cb8166c39ff4b2e6a4159)
2001-09-27Sync 2.2.2 and HEAD (I will keep these the same if it kills me :-).Jeremy Allison1-127/+103
Jeremy. (This used to be commit 76fac3eb945c7ced28c5685849d3616bb7c89ca2)
2001-09-27Major update to pdbedit's import and export code, in line with reqests for itAndrew Bartlett1-81/+83
to use the pdb_ formatting functions. Similarly, it now uses pdb_set...() rather than accessing passdb members directly. Andrew Bartlett (This used to be commit e3b7cac47f4fd9dff289a367ef6649b14c117d17)
2001-09-26Fix up pdbedit to initialise its structures with the standard functions,Andrew Bartlett1-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 (This used to be commit f0f315f31533bb5dc47d27cd6823ad0b146f1ff9)
2001-09-21Added -s configfile to smbcontrol.c.Volker Lendecke1-6/+9
Volker (This used to be commit 9ecd9db4efc7b736bef0e01a5e157e149a381587)
2001-09-20Check 'hosts equiv' and 'use rhosts' compatability with 'hostnameAndrew Bartlett1-0/+16
lookup' value. (This used to be commit 5f5b4b48ca78b3981001965058a2b4e796ba815c)
2001-09-17move to SAFE_FREE()Simo Sorce5-28/+26
(This used to be commit 67db8f03c5c9e81e11b5f3276b50ee23e09a2659)
2001-09-15free memory before returning.Simo Sorce1-0/+7
tx Andreas Moroder. (This used to be commit 8d60a825f74a340beba11193a28fd83b0c4a8129)
2001-09-12Fixed problems with arg parsing as root with smbpasswd.Jeremy Allison1-8/+11
Jeremy. (This used to be commit 6399cf490dffbd162afa06f18cdd6e0364db567d)
2001-09-10left out {Herb Lewis1-1/+1
(This used to be commit 70bd17473a2106ef41b5d921595ce537ec1871cb)
2001-09-10prevent segv by not calling tdb_traverse and tdb_close if tdb_open_logHerb Lewis1-18/+20
returns NULL. (This used to be commit afdf93836b59d5d9ede2ac0f3298d99471872829)
2001-09-10declare dbf in one spotAndrew Tridgell5-5/+0
(This used to be commit f41c3bb80f1e498a9d27f6e236b0ff3a742764c9)
2001-09-10replaced stdio in many parts of samba with a XFILE. XFILE is a cut-downAndrew Tridgell5-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. (This used to be commit 1af8bf34f1caa3e7ec312d8109c07d32a945a448)
2001-09-08convert more code to using d_printfAndrew Tridgell2-395/+395
(This used to be commit 60d297303488ed583537ca2853828fccd6da2ade)
2001-09-06got rid of USE_TDB_MMAP_FLAG as its not needed any moreAndrew Tridgell2-3/+3
(This used to be commit c26e0d3f27a05ecc8bd2390f9aab7f9451524e47)
2001-09-06Started a cleanup of smbpasswd related stuff. I've created a new fileTim Potter1-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. (This used to be commit 4a01e240305fb6fead973beef4937a016b15d744)
2001-09-05always include profile support so you do not need a different binary ofHerb Lewis1-5/+0
smbstatus to dump profile stats. (This used to be commit fc048955b8af05779992bc111f9bd690b8a8faf2)
2001-09-05add profiling stats from 2.2Herb Lewis1-2/+332
(This used to be commit 6c333e9d922b3a7443db829277b8a209cce2d350)
2001-09-05When sending a message via a tdb, it must be open read/write.Jeremy Allison1-1/+1
Jeremy. (This used to be commit f35887c7d40ced750596b87bf37f7aae1df68c7a)
2001-09-05more warning fixes on solarisAndrew Tridgell1-2/+2
(This used to be commit c04c67fec85b1c81ef0b3cebacde304a1de0d854)
2001-09-04it now all compiles - so try enabling it by default and see what explodes on ↵Andrew Tridgell1-7/+6
the build farm (This used to be commit 5bb7e4f0f65edf1db20245f403cbe81833134240)
2001-09-04the next stage in the NTSTATUS/WERROR change. smbd and nmbd now compile, but ↵Andrew Tridgell1-5/+5
the client code still needs some work (This used to be commit dcd6e735f709a9231860ceb9682db40ff26c9a66)
2001-08-31Set acb_info to ACB_SVRTRUST if we are joining the domain as a BDC withoutTim Potter1-2/+6
going through the server manager. (This used to be commit 52f5abae4667d841be7ca8f5ff0f25ba6d027067)
2001-08-30merge from 2.2Gerald Carter1-0/+3
(This used to be commit d31e1b63b5a13ec585da18971e85c9eaa941ed33)
2001-08-29Fix uninitialised variables. Spotted by "Esh, Andrew" <AEsh@tricord.com>Tim Potter1-0/+3
(This used to be commit 9081af4fe584d222c00587d6d3c81e12d6611222)
2001-08-29Fuss, fuss, fuss...Christopher R. Hertel1-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 -)----- (This used to be commit 3af2de7ed26e5a26a273be2dcd9c5565c586fe47)
2001-08-28Added samsync and samrepl (untested) message types to smbcontrol.Tim Potter1-0/+38
(This used to be commit b0c8090396ca02d06669d6e20a1c715fc83ff887)
2001-08-28Fixed typo in comment.Tim Potter1-3/+1
(This used to be commit b10ad789d6d412ef1d2e0d8b47fc233225861bf9)
2001-08-27converted another bunch of stuff to NTSTATUSAndrew Tridgell2-6/+6
(This used to be commit 1d36250e338ae0ff9fbbf86019809205dd97d05e)
2001-08-26Same as nmbd.c. These now test wins_srv_count() instead of lp_wins_serverChristopher R. Hertel1-1/+1
to determine whether the 'wins server' parameter is set. (This used to be commit 5b975d3a9cea39e9992a9b556b8a6d9d3ec14807)
2001-08-24get rid of compiler warningsHerb Lewis1-3/+3
(This used to be commit 0768991d04ea03e774ca8662c9cae5e1951b88e0)
2001-08-24fixed handling of 139/445 in clientsAndrew Tridgell1-2/+1
(This used to be commit 22b372f8a7996a19bebb8cdb411df999cffa32a4)
2001-08-23Fix up some unused variables and functions, fix up formattingAndrew Bartlett1-14/+0
(This used to be commit bfce4ba7b6db261d981a60a7e262f2f690355f5c)
2001-08-22A few changes:Andrew Bartlett1-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. (This used to be commit b068ad300527c44673bbee0aede7849199c89de7)
2001-08-20added -b optionAndrew Tridgell1-2/+9
(This used to be commit 1c2618df450ddde7e52ab8784fcdd2b64a85771e)
2001-08-02Allow smbpasswd to join a W2K hosted AD domain.Jeremy Allison1-3/+10
Jeremy. (This used to be commit c51cfc7f0d3ad1614ca1e0330c8707f7b263b8e6)
2001-07-30Added "use mmap" for HPUX.Jeremy Allison2-2/+2
Jeremy. (This used to be commit 840802f10677cb0009cb4df4c37c7d01aa5edacd)
2001-07-25Held a shoot-out between NT_STATUS_NO_PROBLEMO and NT_STATUS_NOPROBLEMO.Tim Potter1-2/+2
According to the incorruptible judges find and grep, the latter won. Mmm - procrastination. (-: (This used to be commit 2e339403605177b15d5185a8fdd1b06f3f043168)
2001-07-25nicer smbtree outputAndrew Tridgell1-2/+4
(This used to be commit b840d7d65e0e8e437e016318d7ee702db2fa561b)
2001-07-12Changed instances of TRUE, FALSE to True, False as some compilers don'tTim Potter1-23/+23
have the first set of symbols. (This used to be commit ad0cbfbd790bc5d6003ffcff2835d82fb0140625)
2001-07-09allow to rename an NT groupJean-François Micouleau1-2/+5
(This used to be commit 42fc4f4154ccf2e93322da6b0b234f8f846991dc)
2001-07-06Don't try and open tdb secrets file in non-root/local mode.Jeremy Allison1-2/+1
Jeremy. (This used to be commit e78a114425129d980f79db812dbea368123913ed)
2001-07-06A program to display a tree of domains, servers and shares similar to theTim Potter1-0/+419
network neighbourhood graph. Still needs a bit of work. (This used to be commit 6b4559506d1434e6114d9707dd11fdc8ee8d54be)
2001-07-04strchr and strrchr are macros when compiling with optimisation in gcc, so we ↵Andrew Tridgell8-24/+24
can't redefine them. damn. (This used to be commit c41fc06376d1a2b83690612304e85010b5e5f3cf)