summaryrefslogtreecommitdiffstats
path: root/source/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Move samr_make_sam_obj_sd to lib/util_seaccess.c. samtest now compiles andJelmer Vernooij2002-08-291-0/+41
| | | | links successfully!
* Make debuglevel a string for use with debug classesJelmer Vernooij2002-08-291-2/+2
|
* Put in intermediate version of new SAM system. It's not stable yet, codeJelmer Vernooij2002-08-282-0/+7
| | | | | | | | | might be ugly, etc - please don't blame me for anything but instead try to fix the code :-). Compiling of the new sam system can be enabled with the configure option --with-sam Removing passdb/passgrp.c as it's unused fix typo in utils/testparm.c
* Make constJelmer Vernooij2002-08-281-1/+1
|
* Some debugs for panic_action.Tim Potter2002-08-281-1/+11
|
* add a trivial seeking function to xfile (tseek) that does not do SEEK_CURSimo Sorce2002-08-271-0/+34
| | | | | | and add commands reget and reput to smbclient that continues a transfer that has been onterrupted. thanks to josef Zlomek that did the original patch.
* Updates!Andrew Bartlett2002-08-262-6/+7
| | | | | | | | | | | - Don't print an uninitialised buffer in service.c - Change some charcnv.c functions to take smb_ucs2_t ** instead of void ** - Update NTLMv2 code to use dynamic buffers - Update experimental SMB signing code - still more work to do - Move sys_getgrouplist() to SAFE_FREE() and do a DEBUG() on initgroups() failure. Andrew Bartlett
* Try to support non-root-mode systems without getgrouplist().Andrew Bartlett2002-08-261-0/+5
| | | | Andrew Bartlett
* Clarify function commentsAndrew Bartlett2002-08-251-0/+2
|
* Patch from mimir to back out idra's attempted DOS mitigation patch.Andrew Bartlett2002-08-251-2/+2
| | | | | | | | | | | (It broke port 139 name exchange) I've been thinking about this, and doing is properly is actually rather difficult - but I'll try and get somthing in there. (My worry is what smb_read_error should be set to, and how that interacts with the rest of samba). Andrew Bartlett
* We never checked if the smb packet len is != 0Simo Sorce2002-08-231-2/+2
| | | | Should fix a supposed DoS too.
* We need to return the value here...Andrew Bartlett2002-08-231-0/+1
| | | | Andrew Bartlett
* added smb_xstrndup()Andrew Tridgell2002-08-221-0/+11
|
* added a useful unistr2 display functionAndrew Tridgell2002-08-221-0/+10
|
* Spelling fixes.Tim Potter2002-08-221-2/+2
|
* fix a few segfaultsGerald Carter2002-08-221-6/+6
|
* Patch from Paul Green <Paul.Green@stratus.com> to be more POSIX-compatibleJelmer Vernooij2002-08-211-1/+1
|
* Fix debug level initialization for net.cVolker Lendecke2002-08-211-1/+1
| | | | Volker
* IFSTEST fixes for open fid, nametoolong.Jeremy Allison2002-08-201-0/+3
| | | | Jeremy.
* added a generic print_guid utility, and get the byte order handingAndrew Tridgell2002-08-191-0/+15
| | | | right
* remove 'admin log' parameter (discussed with Jeremy)Jelmer Vernooij2002-08-191-3/+0
| | | | remove 'alternate permissions' parameter (deprecated and not used since 2.0) (discussed with tridge)
* Move tridge's getgrouplist() replacement function from replace.c to a newAndrew Bartlett2002-08-174-99/+170
| | | | | | | | | | 'system_smbd.c' file, where it can link with become_root() and unbecome_root(), and therefore avoiding some nasty 'it workes on linux' bugs. (The replacement function is implemented in terms of initgroups(), which is naturally only avaliable to root). Andrew Bartlett
* The idea of this function is not to touch the argument, so make it const too...Andrew Bartlett2002-08-171-1/+1
|
* Merge of netbios namecache code from APPLIANCE_HEAD.Tim Potter2002-08-161-0/+12
| | | | | | | Tridge suggested a generic caching mechanism for Samba to avoid the proliferation of little cache files hanging around limpet like in the locks directory. Someone should probably implement this at some stage.
* *** empty log message ***Simo Sorce2002-08-151-1/+1
|
* Use byteorder.h macrosJim McDonough2002-08-121-45/+9
|
* Code to generate uuids for ADS setups. Uses our random generator butJim McDonough2002-08-121-0/+108
| | | | conforms to standard OSF/DCE uuid format.
* Make 'remote_machine' private to lib/substitute.c, and fix all the user to useAndrew Bartlett2002-08-111-1/+3
| | | | | | the new accessor functions. Andrew Bartlett
* Fix the %m security bug again - and try to make it harder to reintroduce inAndrew Bartlett2002-08-101-8/+41
| | | | | | | | | | | future. This moves us from fstrcpy() and global variables to 'get' and 'set' functions. In particular, the 'set' function sainity-checks the input, in the same way as we always have. Andrew Bartlett
* fixed a memory corruption bug in the wins codeAndrew Tridgell2002-08-061-1/+1
|
* make sure we zero the unusued elements in a SID when parsingAndrew Tridgell2002-07-311-0/+3
|
* added support for smbd listening on port 445 and 139. It now listensAndrew Tridgell2002-07-311-1/+1
| | | | | | | on both by default, and you can specify a list of ports to listen on either with "smb ports = " in smb.conf or using the -p option to smbd. this is needed for proper netbiosless operation.
* Make some of the charconv code a bit easier to read and work with - when weAndrew Bartlett2002-07-301-8/+8
| | | | | | | are dealing with utf8 we may as well specify char** for the pointer, save otherwise casting in the caller. Andrew Bartlett
* Our include popt is starting to get a bit old - fixed some compileTim Potter2002-07-291-1/+1
| | | | | | problems here. Also fixed some non-constant initialisers in samsync.
* A place to store common popt routines.Tim Potter2002-07-291-0/+49
|
* found nasty bug in intl/lang_tdb.c tdb structure was not tested to not be ↵Simo Sorce2002-07-283-4/+5
| | | | | | | | | | | | null before close this one fixes swat not working with browsers that set more then one language. along the way implemented language priority in web/neg_lang.c with bubble sort also changet str_list_make to be able to use a different separator string Simo.
* good security patch from Timothy.Sell@unisys.comAndrew Tridgell2002-07-281-1/+1
| | | | | we could generate short passwords! samba-patches 880
* It seems I didn't need to write a dup2() wrapper - as we already use it aAndrew Bartlett2002-07-281-1/+1
| | | | | | lot. But as thats done, we might as well use it anyway. Andrew Bartlett
* Make it possible to query account policy values from pdbedit (set to come soon).Andrew Bartlett2002-07-241-26/+62
| | | | | | | | | | | Update account_pol.c to use just uint32, rather then uint32 for paramaters, int32 for storage. (The int32 functions didn't have seperate return/status values, uint32 functions use a pointer-paramater). Move the #define -> string from a swtich to a table, so we can look it up both ways. Andrew Bartlett
* implemented getgrouplist() for systems that don't have it and use itAndrew Tridgell2002-07-232-21/+101
| | | | | in get_alias_user_groups(). The old method used getgrent() which is extremely slow when the number of groups is large
* Another smattering of static and constAndrew Bartlett2002-07-211-1/+1
|
* Don't try and sys_dup2(dbf->fd) if dbf == NULL.Tim Potter2002-07-201-1/+1
|
* Add some const to try and get less warnings.Andrew Bartlett2002-07-201-2/+3
| | | | Andrew Bartlett
* Add support for duplicating stderr into our logfiles.Andrew Bartlett2002-07-202-17/+27
| | | | | | | | | | | This is for two things: To allow panic actions etc to pump out backtraces to stderr and to allow vangrind to put its stuff in a logfile - making it possible to debug smbd when launched from inetd. I've also cleaned up some of the duplicate names in procedures between smbd and nmbd. Andrew Bartlett
* Add a wrapper for dup2() to our system.cAndrew Bartlett2002-07-201-0/+10
| | | | Andrew Bartlett
* fixed a logic error in the sorted_tree_find_child() routineGerald Carter2002-07-201-32/+63
| | | | | that caused a valid search to fail. The printing registry view now works again.
* fixed seg fault in registry frontend caused by trying toGerald Carter2002-07-191-0/+2
| | | | use a destroyed TALLOC_CTX*
* Never ignore valgrind messages :-). Don't reference before the startJeremy Allison2002-07-191-1/+1
| | | | | of a string.... Jeremy.
* * refactored registry operations some. subkey lists andGerald Carter2002-07-191-15/+32
| | | | | | | | | | | | | | | | | | registry values are now passed around in containers (REGSUBKEY_CTR & REGVAL_CTR) which each possess a TALLOC_CTX. * removed subkey_specific_fn() from REGISTRY_OPS. Is implemented in the form of a wrapper * temporarily broke the printing registry ops. * implemented inheritence for the data_p of nodes in a SORTED_TREE * All REGISTRY_KEY instances now store a valid REGISTRY_HOOK since the default REGOSTRY_OPS structure is stored in the root of the cache_tree. * Probably some other change I forgot.... T
* fixed line buffer mode in XFILEAndrew Tridgell2002-07-191-1/+1
| | | | thanks to tim for finding this bug