summaryrefslogtreecommitdiffstats
path: root/source/lib
Commit message (Collapse)AuthorAgeFilesLines
* This commit was manufactured by cvs2svn to create tagsamba-3.0.0alpha19cvs2svn Import User2002-08-171-1317/+0
|\ | | | | 'release-3-0-alpha19'.
* | 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
* | Previous fix was incorrect. len in string_sub and all_string_sub isJeremy Allison2002-07-181-4/+4
| | | | | | | | | | | | number of *bytes*. >= check was correct, the len=0 case needed changing to len = ls + 1. Jeremy.
* | Add useful VALGRIND #ifdef.Jeremy Allison2002-07-181-0/+2
| | | | | | | | Jeremy.
* | Fixed off-by-one in all_string_sub also.Jeremy Allison2002-07-181-1/+1
| | | | | | | | Jeremy.
* | Formatting fixups.Jeremy Allison2002-07-181-66/+73
| | | | | | | | Jeremy.
* | Another bug found by valgrind. Don't AND a src length of -1.Jeremy Allison2002-07-181-1/+2
| | | | | | | | Jeremy.
* | virtual registry framework with initial printing hooks.Gerald Carter2002-07-181-0/+414
| |
* | The previous code would not allow things like string_sub(str, "\\", "/", 0).Gerald Carter2002-07-181-1/+1
| | | | | | | | | | | | It complained about an overflow of 0 bytes. Jeremy please check since you modified this last.
* | don't use C++ comments in C - it doesn't work on many compilersAndrew Tridgell2002-07-151-1/+1
| |
* | fixed a problem with getgroups() where it could include our currentAndrew Tridgell2002-07-151-0/+36
| | | | | | | | | | | | | | | | | | effective gid which could mean that the user gets group 0 in their group list for acl interpretation this is a replacement fix for the one richard did in 2.2 (which didn't cope wiith variable behaviour depending on which nss module was in use)
* | addedd new (t)alloc_sub_* functionsSimo Sorce2002-07-142-31/+305
| | | | | | | | | | they will get a const string and return a (t)alloced epanded one. also modified passdb/* stuff to use this one.
* | make this a ZERO_STRUCTP for consitancy with the rest of Samba.Andrew Bartlett2002-07-131-1/+1
| |
* | fixed a stdin bug in XFILE that prevented 'print -' from workingAndrew Tridgell2002-07-131-4/+4
| |
* | The changes in make_sec_desc to make us match W2K broke the ↵Jeremy Allison2002-07-121-1/+1
| | | | | | | | | | | | | | | | | | marshalling/unmarshalling of security descriptors. We need to calculate the maximum offset and set the offset back after reading/writing every field in the SEC_DESC. This was *nasty* to find.... Jeremy.
* | *Experimental* new large-scaling printer code. Splits printing.tdb intoJeremy Allison2002-07-111-3/+3
| | | | | | | | | | | | | | a separate tdb per printer, but only keeps (currently one) tdb open at a time (although this is easily changed by changing a #define). Needs scalability testing with large numbers of printers now.... Jeremy.
* | some support functions to ease the next commit.Simo Sorce2002-07-091-6/+96
| |
* | the last WINS update broke self registration when we are a WINSAndrew Tridgell2002-07-091-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | server. The real problem is all the special cases we had for when we are a wins server as opposed to when we are using a 'real' wins server. This patch removes the special cases. We now accept non-broadcast packets from ourselves and we use ourselves as a wins server when we are one. This gets rid of the special cases and simplifies things quite a bit. It all seems to work, but there are bound to be problems found later.
* | Kill off const warnings - add a pile of const to various places.Andrew Bartlett2002-07-081-1/+1
| |
* | (this should have been part of the previous commit)Andrew Bartlett2002-07-081-1/+37
| | | | | | | | | | | | | | | | | | | | Add a function to display 'sid types' as strings - makes rpcclient outptut and DEBUG() logs much eaiser to understand. Move the enum for SID types to smb.h, becouse is really isn't LSA specific any more. Andrew Bartlett
* | Fix the forword prototype to be a static for this static function.Andrew Bartlett2002-07-031-1/+1
| |
* | Address the string_sub problem by changing len = 0 to mean "no expand".Jeremy Allison2002-07-022-41/+77
| | | | | | | | | | | | Went through and checked all string_subs I could to ensure they're being used correctly. Jeremy.