Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Update the smbd reply code a little: | Andrew Bartlett | 2002-07-20 | 2 | -5/+25 | |
| | | | | | | | | | | | | I don't like the idea of muliple netprots - becouse I see potential problems with people being able to maniplate internal samba variables. This applies in particular to remote names, so don't allow muliple session requests either. Also remove a pstrcpy() from the tcon code, we really don't need it. Andrew Bartlett | |||||
* | Fix up char/uchar casts etc. Fix up comments on some of the password hash | Andrew Bartlett | 2002-07-20 | 2 | -12/+9 | |
| | | | | | | wrappers. Andrew Bartlett | |||||
* | If we can't connect, make sure its a level 0 so we see it, and the reason. | Andrew Bartlett | 2002-07-20 | 1 | -1/+1 | |
| | ||||||
* | Move some startup time initialisation to server.c, so it is all in one place. | Andrew Bartlett | 2002-07-20 | 2 | -11/+11 | |
| | | | | | | | | I'm not sure that we need that "dummy" talloc init, but anyway... Also, add some 'const' to the table of smb reply functions. Andrew Bartlett | |||||
* | Add support for duplicating stderr into our logfiles. | Andrew Bartlett | 2002-07-20 | 3 | -25/+35 | |
| | | | | | | | | | | | 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 support for a weird behaviour apparently used by Win9X pass-through | Andrew Bartlett | 2002-07-20 | 2 | -4/+19 | |
| | | | | | | | | | | authentication - we can have an NT hash in the LM hash feild. (I need to double-check this fix with tpot, who discovered it). Also remove silly casts back and forth between uchar and char. Andrew Bartlett | |||||
* | Update the usage for smbgroupedit to document -d for 'description'. | Andrew Bartlett | 2002-07-20 | 1 | -0/+2 | |
| | | | | | | I think this one is due to metze. Andrew Bartlett | |||||
* | Add a wrapper for dup2() to our system.c | Andrew Bartlett | 2002-07-20 | 1 | -0/+10 | |
| | | | | Andrew Bartlett | |||||
* | NT_STATUS_UNSUCCESSFUL just gets clients confused - move to NO_LOGON_SERVERS | Andrew Bartlett | 2002-07-20 | 1 | -11/+11 | |
| | | | | | | | | | | becouse thats what Win2k gives when the PDC is down. Some of these might better go to other errors, but the Win2k text message for 'unsuccessful' is not particularly useful. (A device attached to the system is not functioning...) Andrew Bartlett | |||||
* | enumeration of printers keys ( no data yet ) via the registry | Gerald Carter | 2002-07-20 | 5 | -34/+65 | |
| | | | | functions now works :-) | |||||
* | fixed a logic error in the sorted_tree_find_child() routine | Gerald Carter | 2002-07-20 | 3 | -33/+69 | |
| | | | | | that caused a valid search to fail. The printing registry view now works again. | |||||
* | fixed seg fault in registry frontend caused by trying to | Gerald Carter | 2002-07-19 | 4 | -12/+23 | |
| | | | | use a destroyed TALLOC_CTX* | |||||
* | Fixed a compiler warning. | Tim Potter | 2002-07-19 | 1 | -3/+3 | |
| | ||||||
* | Never ignore valgrind messages :-). Don't reference before the start | Jeremy Allison | 2002-07-19 | 1 | -1/+1 | |
| | | | | | of a string.... Jeremy. | |||||
* | * refactored registry operations some. subkey lists and | Gerald Carter | 2002-07-19 | 7 | -240/+488 | |
| | | | | | | | | | | | | | | | | | | 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 | |||||
* | Allow trans2 and nttrans messages to be processed in oplock break state. | Jeremy Allison | 2002-07-19 | 2 | -5/+7 | |
| | | | | | | | As noticed by Lev Iserovich <lev@ciprico.com> this seems to fix a problem with oplock breaks and Win2k, and we are protected from problems by existing code in trans2.c and nttrans.c Jeremy. | |||||
* | Formatting fixup. Fix shadow warning. | Jeremy Allison | 2002-07-19 | 2 | -458/+461 | |
| | | | | Jeremy. | |||||
* | merge from SAMBA_2_2 spotted by Simo | Gerald Carter | 2002-07-19 | 1 | -2/+14 | |
| | ||||||
* | fixed line buffer mode in XFILE | Andrew Tridgell | 2002-07-19 | 1 | -1/+1 | |
| | | | | thanks to tim for finding this bug | |||||
* | Previous fix was incorrect. len in string_sub and all_string_sub is | Jeremy Allison | 2002-07-18 | 1 | -4/+4 | |
| | | | | | | number of *bytes*. >= check was correct, the len=0 case needed changing to len = ls + 1. Jeremy. | |||||
* | Add useful VALGRIND #ifdef. | Jeremy Allison | 2002-07-18 | 1 | -0/+2 | |
| | | | | Jeremy. | |||||
* | Prevent gcc warning about shadowed global "index". | Jeremy Allison | 2002-07-18 | 1 | -1/+1 | |
| | | | | Jeremy | |||||
* | Don't crash on setfileinfo on printer fsp. | Jeremy Allison | 2002-07-18 | 1 | -1/+2 | |
| | | | | Jeremy. | |||||
* | Fixed off-by-one in all_string_sub also. | Jeremy Allison | 2002-07-18 | 1 | -1/+1 | |
| | | | | Jeremy. | |||||
* | Formatting fixups. | Jeremy Allison | 2002-07-18 | 1 | -66/+73 | |
| | | | | Jeremy. | |||||
* | Another bug found by valgrind. Don't AND a src length of -1. | Jeremy Allison | 2002-07-18 | 1 | -1/+2 | |
| | | | | Jeremy. | |||||
* | virtual registry framework with initial printing hooks. | Gerald Carter | 2002-07-18 | 11 | -335/+1329 | |
| | ||||||
* | The previous code would not allow things like string_sub(str, "\\", "/", 0). | Gerald Carter | 2002-07-18 | 1 | -1/+1 | |
| | | | | | | It complained about an overflow of 0 bytes. Jeremy please check since you modified this last. | |||||
* | Unneded extra check on len | Simo Sorce | 2002-07-18 | 1 | -1/+1 | |
| | ||||||
* | We have to look at the length before checking for "~" as the string | Jeremy Allison | 2002-07-18 | 1 | -3/+3 | |
| | | | | | may be shorter than 6 chars. Caught by valgrind. Jeremy. | |||||
* | Use of uninitialized variable caught by valgrind. | Jeremy Allison | 2002-07-18 | 1 | -1/+1 | |
| | | | | Jeremy. | |||||
* | Gone back to explicit queue number passing as snum - removed encoding of | Jeremy Allison | 2002-07-17 | 9 | -287/+170 | |
| | | | | | | queueid in job number. This means we must have an internal tdb to store mapping from 16 bit RAP jobid's to 32 bit RPC jobids. Jeremy. | |||||
* | Lanman print jobs are *16* bits, not 32. arggggh. Map them.... | Jeremy Allison | 2002-07-17 | 3 | -9/+88 | |
| | | | | Jeremy. | |||||
* | print_jobid in the fsp struct should be uint32. | Jeremy Allison | 2002-07-16 | 1 | -1/+1 | |
| | | | | Jeremy. | |||||
* | Use codepage 850 as a default for the dos character set. | Tim Potter | 2002-07-16 | 1 | -0/+3 | |
| | | | | Tridge, is this OK? | |||||
* | Put printing tdbs in a subdirectory to prevent name collisions. | Jeremy Allison | 2002-07-16 | 1 | -1/+6 | |
| | | | | Jeremy. | |||||
* | splitting off storage/retrieval routines for abstracting the | Gerald Carter | 2002-07-15 | 4 | -326/+366 | |
| | | | | registry view front end. Now to plug in the various hooks. | |||||
* | preparing for release of 3.0-alpha18 | Samba Release Account | 2002-07-15 | 2 | -1/+7 | |
| | ||||||
* | fixed a number of real bugs found by warnings on the 64 bit irix compiler | Andrew Tridgell | 2002-07-15 | 5 | -11/+8 | |
| | ||||||
* | enum_group_mapping takes an enum not an int | Andrew Tridgell | 2002-07-15 | 1 | -1/+1 | |
| | ||||||
* | checking for NULL really is counter-productive, and this one was also | Andrew Tridgell | 2002-07-15 | 1 | -5/+0 | |
| | | | | generating a warning | |||||
* | fixed a call to get_current_groups() | Andrew Tridgell | 2002-07-15 | 1 | -1/+1 | |
| | ||||||
* | don't use C++ comments in C - it doesn't work on many compilers | Andrew Tridgell | 2002-07-15 | 1 | -1/+1 | |
| | ||||||
* | fixed a problem with getgroups() where it could include our current | Andrew Tridgell | 2002-07-15 | 4 | -14/+65 | |
| | | | | | | | | | 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) | |||||
* | don't report the faiilure of non-blocking locks. They are supposed to | Andrew Tridgell | 2002-07-15 | 1 | -1/+1 | |
| | | | | fail sometimes, thats why they are non-blocking :) | |||||
* | after thinking about the env variable hack for avoiding group membership | Andrew Tridgell | 2002-07-14 | 1 | -14/+20 | |
| | | | | | | enumeration I realised it could be a security hole for setuid progs. This adds a proper nss function instead. | |||||
* | addedd new (t)alloc_sub_* functions | Simo Sorce | 2002-07-14 | 5 | -44/+318 | |
| | | | | | they will get a const string and return a (t)alloced epanded one. also modified passdb/* stuff to use this one. | |||||
* | this is a trick to work around the fact that posix does not supply | Andrew Tridgell | 2002-07-14 | 6 | -9/+53 | |
| | | | | | | | | | | a getgr*() function that lists groups without numerating all the group members. Instead of definiing a new nss method (which might cause problems) I added an environment variable WINBIND_GETGRLST that tells winbind not to fill in the group members in a gergrent() request. This can speed up group listing by a factor of 20 or more (on my test system with 50000 groups it reduces the time from an hour to 2 minutes) | |||||
* | Show the account flags in the 'verbose' listing of pdbedit. | Andrew Bartlett | 2002-07-14 | 1 | -0/+2 | |
| | | | | Andrew Bartlett | |||||
* | Apply patch from "Kai Krueger" <kai@kruegernetz.de> to make it easier to | Andrew Bartlett | 2002-07-14 | 1 | -51/+116 | |
| | | | | | | determine what access masks should be applied to various SAMR calls. Andrew Bartlett |