summaryrefslogtreecommitdiffstats
path: root/source/include
Commit message (Collapse)AuthorAgeFilesLines
...
* rewrote enumprinterdata. still a bug in it but reproducing it hard andJean-François Micouleau2000-02-262-360/+354
| | | | | | | | | | borring. I need a client test program urgently!!! rewrote setprinter, doesn't coredump anymore, and no memleak. J.F.
* client/client.c:Jeremy Allison2000-02-252-3/+16
| | | | | | | libsmb/clientgen.c: Fixes for Win2k smbclient browsing. Other fixes implement smbpasswd -x user to delete users. Also allows swat to do the same. Jeremy.
* converted a couple of bzero() to memset()Jean-François Micouleau2000-02-242-57/+85
| | | | | | | | | | | rewrote the printer notify code, so now it's compatible with SP5 and fully dynamic. No more limits on printers and job lists. removed the make_xxx() functions as they are not used and broken fixed a bug in the open handle function. J.F.
* lib/system.c: Fixed gcc warnings.Jeremy Allison2000-02-232-15/+53
| | | | | | nmbd/nmbd_processlogon.c: Use "True" and "False" instead of 1 and 0. Others - preparing for multiple pdu write code. Jeremy.
* more rewrite ...Jean-François Micouleau2000-02-212-99/+72
| | | | | | comitting before starting on new functions. J.F.
* Fix for reporting file system attributes correctly.Jeremy Allison2000-02-181-4/+11
| | | | Jeremy.
* Make proto.Jeremy Allison2000-02-161-0/+1
|
* Added replacement functions sys_popen and sys_pclose. These are basedJeremy Allison2000-02-153-343/+350
| | | | | | | | | on the glibc source code and are safer than the traditional popen as they don't use a shell to exec the requested command. Now we have these functions they can be tightened up (environment etc.) as required to make a safe popen. It should now be safe to add the environement variable loading code to loadparm.c Jeremy.
* fix the reply of rpc_alter_contextJean-François Micouleau2000-02-152-444/+437
| | | | | | | | | OpenPrinterEx is now decoding correctly the query most of the EnumXXX use the new_buffer struct. check the (un)marshalling return code. conclusion: still a long way to go. all the client code has to be rewritten, and I still wonder how to implement correctly the notify stuff.
* make proto ...Jean-François Micouleau2000-02-071-340/+675
| | | | | | and the Makefile.in file J.F.
* spoolss include definitionsJean-François Micouleau2000-02-075-15/+35
| | | | J.F.
* First commit of the spoolss code to the HEAD branch.Jean-François Micouleau2000-02-072-0/+1678
| | | | | | still needs a lot of cleaning/debuging. J.F.
* Added check for SGI IRIX brokenness with semaphores when using gcc.Jeremy Allison2000-02-072-4/+20
| | | | | Code from Don Badrak <dbadrak@census.gov> Jeremy.
* Fixed compile warning in locking.c:traverse_fn()Tim Potter2000-02-071-340/+340
|
* 1) added void* state argument to tdb_traverse. guess what! there wereLuke Leighton2000-02-042-345/+357
| | | | | | | | | | | | | | | | | | two places i found where it was appropriate to _use_ that third argument, in locking.c and brlock.c! there was a static traverse_function and i removed the static variable, typecast it to a void*, passed it to tdb_traverse and re-cast it back to the traverse_function inside the tdb_traverse function. this makes the use of tdb_traverse() reentrant, which is never going to happen, i know, i just don't like to see statics lying about when there's no need for them. as i had to do in samba-tng, all uses of tdb_traverse modified to take the new void* state argument. 2) disabled rpcclient: referring people to use SAMBA_TNG rpcclient. i don't know how the other samba team members would react if i deleted rpcclient from cvs main. damn, that code's so old, it's unreal. 20 rpcclient commands, instead of about 70 in SAMBA_TNG.
* make protoTim Potter2000-02-031-332/+373
|
* Busting up of source/include/smb.h into smaller pieces which can beTim Potter2000-02-036-349/+608
| | | | #included by VFS modules without bringing in too much other junk.
* Wrapped popen calls in HAVE_POPEN - needed if we are to add theJeremy Allison2000-01-291-0/+3
| | | | | env patch. Jeremy.
* Added hash-based stat cache code from Ying Chen.Jeremy Allison2000-01-263-0/+86
| | | | Jeremy.
* Second set of inline optimisation fixes from Ying Chen <ying@almaden.ibm.com>.Jeremy Allison2000-01-262-1/+5
| | | | | | Stop makeing function calls for every use of skip_multibyte_char. This function is called several *million* times during a NetBench run :-). Jeremy.
* First set of speed improvements from Ying Chen <ying@almaden.ibm.com>.Jeremy Allison2000-01-252-13/+75
| | | | | Inline several commonly used functions as macros. Jeremy.
* made cvs main up-to-date with samba_tng, with addition of process id toLuke Leighton2000-01-213-1/+9
| | | | msrpc loop-back interface.
* SAMR_R_UNKNOWN_38 is 3 uint16 params (4-byte aligned) followed by status code.Luke Leighton2000-01-171-1/+0
|
* proto updateAndrew Tridgell2000-01-161-2/+4
|
* make a br_off a SMB_BIG_UINTAndrew Tridgell2000-01-161-1/+1
|
* damn, Solaris already has a "enum lock_type"Andrew Tridgell2000-01-142-8/+7
| | | | changed it to "enum brl_type"
* we now pass all byte range locking testsAndrew Tridgell2000-01-141-3/+5
| | | | | the last piece was to use a smb timeout slightly larger than the locking timeout in bloking locks to prevent a race
* Added "inherit permissions" patch.Jeremy Allison2000-01-141-1/+3
| | | | | Fixed locking bug found by Andrew. Jeremy.
* added Enosuchshare and a lock_type enumAndrew Tridgell2000-01-131-0/+4
|
* new prototypesAndrew Tridgell2000-01-131-5/+22
|
* defined br_off as a type for byte range offsets. For now I've set itAndrew Tridgell2000-01-131-0/+3
| | | | | as SMB_OFF_T, we need to do some autoconf changes to generate a 64 bit int whenever possible (eg. long long on 32 bit i386)
* Added utmp fix from David Lee <T.D.Lee@durham.ac.uk>.Jeremy Allison2000-01-122-0/+9
| | | | Jeremy.
* modified smbd/msrpc credential transfer system. user session keyLuke Leighton2000-01-111-1/+3
| | | | | | | | | is *missing* from samba cvs main, therefore it is set to all zeros. this will cause, amongst other things, administrator-changing-user-passwords, and setting up new accounts, to fail, as the user's password can only be decoded with the session key (in this case, the administrator's usr sess key). it's never a perfect world, is it?
* I'm currently designing a new locking system (using a tdb database!)Andrew Tridgell2000-01-101-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | that will make us match NT semantics exactly and do away with the horrible fd multiplexing in smbd. this is some diag stuff to get me started. - added the ability to do read or write locks in clientgen.c - added a LOCK4 test to smbtorture. This produces a report on the server and its locking capabilities. For example, NT4 gives this: the same process cannot set overlapping write locks the same process can set overlapping read locks a different connection cannot set overlapping write locks a different connection can set overlapping read locks a different pid cannot set overlapping write locks a different pid can set overlapping read locks the same process can set the same read lock twice the same process cannot set the same write lock twice the same process cannot override a read lock with a write lock the same process can override a write lock with a read lock a different pid cannot override a write lock with a read lock the same process cannot coalesce read locks this server does strict write locking this server does strict read locking whereas Samba currently gives this: the same process can set overlapping write locks the same process can set overlapping read locks a different connection cannot set overlapping write locks a different connection can set overlapping read locks a different pid can set overlapping write locks a different pid can set overlapping read locks the same process can set the same read lock twice the same process can set the same write lock twice the same process can override a read lock with a write lock the same process can override a write lock with a read lock a different pid can override a write lock with a read lock the same process can coalesce read locks this server does strict write locking this server does strict read locking win95 gives this - I don't understand why! the same process cannot set overlapping write locks the same process cannot set overlapping read locks a different connection cannot set overlapping write locks a different connection cannot set overlapping read locks a different pid cannot set overlapping write locks a different pid cannot set overlapping read locks the same process cannot set the same read lock twice the same process cannot set the same write lock twice the same process cannot override a read lock with a write lock the same process cannot override a write lock with a read lock a different pid cannot override a write lock with a read lock the same process cannot coalesce read locks this server does strict write locking this server does strict read locking
* smbd/mangle.cJeremy Allison2000-01-081-1/+0
| | | | | | smbd/negprot.c: Tidyup of static initializers. smbd/server.c: Fix -l option. Jeremy.
* this looks like a big commit, but it isn't really :)Andrew Tridgell2000-01-071-1/+1
| | | | | | | | This fixes our netbios scope handling. We now have a 'netbios scope' option in smb.conf and the scope option is removed from make_nmb_name() this was prompted by a bug in our PDC finding code where it didn't append the scope to the query of the '*' name.
* Re-added "dfree command" functionality that was described in the man pagesJeremy Allison2000-01-061-0/+1
| | | | | but was not in the code. Jeremy.
* Moved check_plaintext_password() into smbd/chgpasswd.c from smbd/ipc.c.Jeremy Allison2000-01-053-0/+9
| | | | | | configure configure.in include/config.h.in: Added <sys/un.h> autoconf code for Luke's UNIX domain sockets code. Jeremy.
* implemented talloc() as described on samba-technical. This fixes theAndrew Tridgell2000-01-053-0/+40
| | | | | | | lp_string() bug properly. we still need to add lp_talloc_free() calls in all the main event loops, I've only put it in smbd and nmbd thus far.
* simple mods to add msrpc pipe redirection. default behaviour: fall backLuke Leighton2000-01-035-22/+268
| | | | to using internal msrpc code in smbd.
* added suppport for unexpected udp/138 packetsAndrew Tridgell2000-01-031-2/+4
| | | | | | | | | | | | | | I also fixed up the lookup_pdc_name() code so that it now works, even with a NT server that insists on replying to udp/138. The method I used to match packets was to use the mailslot string as a datagram ID. The true dgm_id doesn't work as NT doesn't set it correctly. uggh. PS: Jeremy, I had to change your code quite a bit, are you sure this worked with a Samba PDC?? The code looked broken, it got the offsets wrong in the SMB portion of the packet and filled in the IP incorrectly.
* got rid of mem_manAndrew Tridgell2000-01-031-4/+0
| | | | | | | yamd is much better, and doesn't require any source code changes if you haven't seen yamd then take a look at http://www3.hmc.edu/~neldredge/yamd/ its excellent!
* added the unexpected packet database (unexpected.tdb)Andrew Tridgell2000-01-032-5/+15
| | | | | | | | | | | | this means "nmblookup -S" now always works, even with broken servers the database stores all unexpected replies and these can be accessed by any client. while doing this I cleaned up a couple of functions, and put in place a better trn_id generator. in most places the code got quite a bit simpler due to the addition of simple helper functions. I haven't yet put the code in to take advantage of this for pdc replies - that will be next. Jeremys pdc finding code will then work :)
* - added tdb_flags option to tdb_open()Andrew Tridgell2000-01-021-2/+2
| | | | | | | | | - added TDB_CLEAR_IF_FIRST flag to clear the database if this is the first attached process. Useful for non-persistent databases like our locking area (this will also make upgrades to new database layouts easier) - use lock_path() in a couple of places - leave connections database open while smbd running - cleaned up some tdb code a little, using macros for constants
* Converted most of the functions in lib/util_str.c to smb_ucs2_t equivalents.Jeremy Allison1999-12-294-13/+60
| | | | Jeremy.
* Samba now includes a full ucs2 upper to lower case (and vica versa) map table.Jeremy Allison1999-12-231-0/+13
| | | | Jeremy.
* Upper to lower case map table for unicode.Jeremy Allison1999-12-231-0/+65536
| | | | Jeremy.
* include/includes.h: Trimmed down unicode directory entry to be POSIX complient.Jeremy Allison1999-12-221-3/+1
| | | | | | lib/system.c: Trimmed down unicode directory entry to be POSIX complient. lib/util_unistr.c: Added wstrdup(). Jeremy.
* First cut at unicode sys_xx functions. Now to start moving upwards.....Jeremy Allison1999-12-223-6/+54
| | | | Jeremy.
* Ok - we now have the following functions for UNICODE support :Jeremy Allison1999-12-221-0/+2
| | | | | | | | | | | | | | | | | unicode_to_unix() unix_to_unicode() unicode_to_dos() dos_to_unicode() wstrlen() safe_wstrcpy() safe_wstrcat() wstrcmp() wstrncmp() wstrstr() wstrchr() wstrrchr() wstrtok() Jeremy.