summaryrefslogtreecommitdiffstats
path: root/source/include
Commit message (Collapse)AuthorAgeFilesLines
...
* Added Herb's fixes to HEAD.Jeremy Allison2000-10-063-6/+13
| | | | Jeremy.
* Proto update. Also fix from John Reilly @ HP for not showing APW with W2K.Jeremy Allison2000-10-061-0/+1
| | | | Jeremy.
* Herb's warning fixes. Also the POSIX locking fix.Jeremy Allison2000-10-065-27/+67
| | | | | We now use our own vfs layer to do get/set acl calls (hurrah!). Jeremy.
* Inlined many of the vfs_XXX calls as macros for speed.Jeremy Allison2000-10-062-7/+41
| | | | Jeremy.
* Restructuring of vfs layer to include a "this" pointer - can be an fsp orJeremy Allison2000-10-065-250/+360
| | | | | | | | | | | | | | | a conn struct depending on the call. We need this to have a clean NT ACL call interface. This will break any existing VFS libraries (that's why this is pre-release code). Andrew gets credit for this one :-) :-). In addition - added Herb's WITH_PROFILE changes - Herb - please examine the changes I've made to the smbd/reply.c code you added. The original code was very ugly and I have replaced it with a START_PROFILE(x)/END_PROFILE(x) pair using the preprocessor. Please check this compiles ok with the --with-profile switch. Jeremy.
* Vector get_nt_acl/set_nt_acl via vfs. POSIX ACL support should be addedJeremy Allison2000-10-052-11/+95
| | | | | above this layer. Jeremy.
* Herb's fixes for profiling & compiler warnings.Jeremy Allison2000-10-052-4/+2
| | | | Jeremy.
* someone forgot to update proto.h :-)Jean-François Micouleau2000-10-051-1/+2
| | | | J.F.
* utf-8 and EUC3 patch from Hiroshi Miura Samba User Group Japan staff.Jeremy Allison2000-10-033-3/+576
| | | | | mkdir high bits patch from Robert Dahlem" <Robert.Dahlem@gmx.net>. jeremy.
* Memleak fix for cache code.Jeremy Allison2000-10-021-1/+0
| | | | Jeremy.
* new prototypesAndrew Tridgell2000-09-291-0/+3
|
* added a hack to get 64 bit locking working with the broken fcntl()Andrew Tridgell2000-09-291-0/+13
| | | | | call in glibc 2.1.95. This hack only gets enabled if you define GLIBC_HACK_FCNTL64
* fixed samr_create_user(). we now correctly parse the query and the reply.Jean-François Micouleau2000-09-281-6/+4
| | | | | | | | | | And we create the disabled account. That means we can create user and trust accounts remotely ! ifdef out a return in passdb/smbpass.c. I think I didn't break any security. Jeremy could you check if I didn't make any mistakes ??? J.F.
* Restructuring of the code to remove dos_ChDir/dos_GetWd and re-vector themJeremy Allison2000-09-272-5/+21
| | | | | | | through the VFS. All file access/directory access code in smbd should now go via the vfs. Added vfs_chown/vfs_chmod calls. Still looking at vfs_get_nt_acl() vfs_set_nt_acl() call API design. Jeremy.
* samr unknown 0x32 is in fact samr create user.Jean-François Micouleau2000-09-272-11/+11
| | | | | | so renamed and tidy up of the server function. J.F.
* fixed IRIX compiller error messageHerb Lewis2000-09-261-1/+1
|
* broadcast printer notify message to all clients. We now have printerJean-François Micouleau2000-09-262-345/+349
| | | | | | | | notification as on NT. Andrew, your message passing code is cool :-) J.F.
* added NEGNOWAIT. sent to secure@microsoft.comLuke Leighton2000-09-262-344/+363
|
* Changes from John Reilly to add a parameter "show add printer wizard" thatJeremy Allison2000-09-261-9/+1
| | | | | | | | | allows Samba to turn off the display of APW (hmmm. This should probably be a share specific parameter, I'll fix that in another commit). Also a few small changes to JF's code to fix compiler warnings about missing return statements and also change '//' comments (C++) to /* .. */ comments (C). Jeremy.
* printer notify code.Jean-François Micouleau2000-09-252-3/+43
| | | | | | | It only sends notifies to one client. The broadcasting notify code will code soon. J.F.
* Some code moved back from TNG - updates to LSA stuff. Not yet used butJeremy Allison2000-09-202-3/+25
| | | | | will be needed soon. Jeremy.
* in a printer_info_6, driver version is 64 bits long and there is a 32 bitJean-François Micouleau2000-09-161-2/+4
| | | | | | padding before. J.F.
* Move towards getting W2k p&p to upload NT4.x drivers. Still doesn't work -Jeremy Allison2000-09-151-0/+2
| | | | | | | not sure why (JF - a glance at this would be appreciated). Removed code that JF objected to with enumprinterdata. Added translations to/from level 6 - but Win2k still not happy... hmmm... Jeremy.
* first cut at smbcontrol program. It currently allows syntax like:Andrew Tridgell2000-09-131-0/+3
| | | | | | | smbcontrol nmbd debug 7 smbcontrol smbd debug 9 smbcontrol 3278 debug 1 smbcontrol nmbd force-election
* - fixed some memory leaks in the messages codeAndrew Tridgell2000-09-121-0/+1
| | | | - added a MSG_PING message for performance testing.
* - changed the msg_type to be an int instead of an enum so that it isAndrew Tridgell2000-09-122-5/+11
| | | | | | | easier to add new message types to messages.h without breaking old binaries - added a MSG_FORCE_ELECTION message to force nmbd to hold an election
* much nicer message interface. We now register dispatch functions,Andrew Tridgell2000-09-121-2/+4
| | | | | | | | | allowing new bits of code or vfs modules to register functions without impacting on the messaging code itself. Also note that multiple registrations for the same message type are possible allowing the same message to be delivered to multiple parts of the code (possibly useful for reload messages).
* the first cut of the internal messaging system.Andrew Tridgell2000-09-113-2/+36
| | | | | The motivation for this system is to replace the UDP message for oplocks, but this commit only does the "set debug level" message.
* Implemented DELETEPRINTERDATA (tested with Gerald's Win32 progs).Jeremy Allison2000-09-092-0/+17
| | | | Jeremy.
* Win32 API is explicit that EnumPrinterData returns ERROR_MORE_DATA notJeremy Allison2000-09-081-0/+1
| | | | | | ERROR_INSUFICIENT_BUFFER when working out what space is needed. This fix gives us the same return that WinNT does. Jeremy.
* Fix for the SID history problem when using a Win2k domain controllerJeremy Allison2000-09-063-3/+7
| | | | | with security=domain. Also fixed to dynamically allocate the SIDs and GIDs. Jeremy.
* Implemented GETFORM tested and working using Gerald's Win32 test progs....Jeremy Allison2000-09-052-1/+21
| | | | Jeremy.
* Changes from APPLIANCE_HEAD (per Tim Potter):David O'Neill2000-09-012-3/+11
| | | | | | | | | | | | | | | | | | | - make proto - addition of function to convert from errno values to NT status codes (source/lib/error.c) - purge queue done without full access permission will purge only the jobs owned by that user, rather than failing. - unlock job database tdb before sending job to printer - in print_job_start(), ensure that we don't pick a jobid with an existing temporary file that may be owned by another user, as it causes silent failures. - fixes for printer permission checking for NT5 clients (source/include/rpc_spoolss.h, source/printing/nt_printing.c, source/printing/printing.c, source/rpc_server/srv_spoolss_nt.c) - change from uint8 to 'enum SID_NAME_USE' (source/rpc_server/srv_lsa.c) - fixed memory leaks for win95 driver download process (source/smbd/lanman.c) - properly free prs_structs and dacl in testsuite/printing/psec.c
* Implemented DELETEFORM tested using Gerald's Win32 test code :-).Jeremy Allison2000-08-312-1/+18
| | | | Jeremy.
* Fixed error returns for moving printer driver files around so genericJeremy Allison2000-08-301-1/+1
| | | | | | "Access denied" isn't always returned. More fixes found using Gerald's wonderful Win32 test progs :-). Jeremy.
* Added vfs_unlink call to ensure vfs is used on unlink from client.Jeremy Allison2000-08-301-1/+2
| | | | Jeremy.
* Implemented AbortPrinter() from Gerald's Win32 test code. Just purge allJeremy Allison2000-08-302-4/+19
| | | | | | possible printjobs from that printer (I think this is correct). Added error code returns for print_queue_XXX() functions. Jeremy.
* make protoGerald Carter2000-08-291-0/+2
|
* added -P (for no prompt) and -A <authfile> optionsGerald Carter2000-08-291-0/+1
| | | | jerry
* added a #define for SPOOLSSGETPRINTERDATAEX. Although we do notGerald Carter2000-08-291-0/+1
| | | | | | | | | support the RPC yte (win2k specific), I added it for documentation purposes. jerry
* yipee!Andrew Tridgell2000-08-282-1/+4
| | | | | | | | | | | | The spoolss AddJob function has an [in,out] buffer not an [in] buffer (despite the comment in the code to the contrary). Also, we must fail this function - not just blindly reply "no problem" as AddJob should always fail on non-local printers. This fixes a bug where the "print test page" failed about half the time. I suspect it will also fix a bunch of other intermittent spoolss bugs where the client (incorrectly) tries to use the AddJob printing interface.
* Documentation on NT_USER_TOKEN. Requested by Sander.Jeremy Allison2000-08-231-0/+5
| | | | Jeremy.
* Added code to do SID to uid/gid conversion. Needed for ACL support.Jeremy Allison2000-08-231-10/+11
| | | | Jeremy.
* Reverted the change Luke made. Removed IS_BITS_SET_XX macros.Jeremy Allison2000-08-141-5/+0
| | | | | | | | Do not re-add them. These macros are unsafe as they are not understood. Change all TNG code using them to correct '&' and '|' please. IS_BITS_SET_ALL was being used in cmd_interp.c when IS_BITS_SET_SOME should have been used. Jeremy.
* restored IS_BITS_SET_xxx macros.Luke Leighton2000-08-141-0/+5
|
* reworked talloc() to in order to help track down invalidGerald Carter2000-08-121-0/+6
| | | | | | | | | | | | | | | | | memory access. Tridge, I don't think using 0xdeadbeef for size allocations of 0 is going to work. I ended up having to use NULL as much code that works on UNISTR checks to see if the buffer ptr is NULL. So valid code ends up with a seg fault. Rather than rewriting it all, I added a DEBUG_TALLOC #ifdef in talloc.h that sets a macro BAD_PTR. This is the value assigned to ptr for an allocation of 0 bytes. jerry
* removed (void) typecast from SMB_ASSERTGerald Carter2000-08-121-1/+1
| | | | jerry
* Tidied up security rights definitions.Jeremy Allison2000-08-103-28/+20
| | | | Jeremy.
* make protoGerald Carter2000-08-091-2/+2
|
* More work on AddPrinterDriver() and AddPrinterEx() client RPC'sGerald Carter2000-08-091-1/+1
| | | | | | | | Also fixed init_unistr() to deal with a NULL source character string. -jerry