1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-15 05:57:49 +03:00

322 Commits

Author SHA1 Message Date
Tim Potter
5095941dcb Fixed uninitialised variable warning. -
Gerald Carter
096d06a961 ChangeID fixe from APPLIANCE_HEAD -
Jeremy Allison
4bf4ee3f14 Use print_queue_length() by preference if we don't need a queue
as it doesn't do a traversal.
Jeremy.
-
Jeremy Allison
425bb0f405 Improved efficiency of enumerating print queue's under a particular
extreme condition...
Jeremy.
-
Martin Pool
142d3dad0a Writing decimal constants as "02" has been shown to cause cancer in
rats.
-
Tim Potter
9712d3f15a Renamed sid field in SEC_ACE to trustee to be more in line with MS's
definitions.
-
Tim Potter
f85c976acc Merge from appliance-head: when creating a default security descriptor
for a printer, save it in ntprinters.tdb instead of recreating it
every time it is required.  This can save at least one winbind lookup
per secdesc creation.  Opening a port monitor and viewing the security
tab in the properties dialog required the security descriptor to be
returned 25 times!
-
Andrew Tridgell
058a5aee90 added "net join" command
this completes the first stage of the smbd ADS support
-
Gerald Carter
48f2da440f merge oops fix from 2.2 -
Gerald Carter
96b3a65a73 merge from 2.2 -
Jeremy Allison
9148bb9eaa Tidyups when I was doing the big merge...
Jeremy.
-
Andrew Bartlett
f70fb819b2 This is a farily large patch (3300 lines) and reworks most of the AuthRewrite
code.

In particular this assists tpot in some of his work, becouse it provides the
connection between the authenticaion and the vuid generation.

Major Changes:
	- Fully malloc'ed structures.
	  - Massive rework of the code so that all structures are made and destroyed
	    using malloc and free, rather than hanging around on the stack.
	- SAM_ACCOUNT unix uids and gids are now pointers to the same, to allow them
	   to be declared 'invalid' without the chance that people might get ROOT by
	   default.

	- kill off some of the "DOMAIN\user" lookups.  These can be readded at a more
	  appropriate place (probably domain_client_validate.c) in the future. They
	  don't belong in session setups.

	- Massive introduction of DATA_BLOB structures, particularly for passwords.

	- Use NTLMSSP flags to tell the backend what its getting, rather than magic
	  lenghths.

	- Fix winbind back up again, but tpot is redoing this soon anyway.

	- Abstract much of the work in srv_netlog_nt back into auth helper functions.

This is a LARGE change, and any assistance is testing it is appriciated.

Domain logons are still broken (as far as I can tell) but other functionality
seems
intact.

Needs testing with a wide variety of MS clients.

Andrew Bartlett
-
Jeremy Allison
8d23a7441b Merge the become_XXX -> change_to_XXX fixes from 2.2.2 to HEAD.
Ensure make_conection() can only be called as root.
Jeremy.
-
Jeremy Allison
3807c747a4 Optimisation to send only to correct processid.
Jeremy
-
Jean-François Micouleau
8ef9dff307 very simple asynchronous "lpq" thread patch
To speed up operations with the lpq command, it's now run in a separate
asynchronous process.

Opening the Printers folder on NT is now fast ;-) I think even faster than
with a ** server

Jeremy, you should look at that patch to include it in 2.2.3

	J.F.
-
Tim Potter
2d0922b0ea Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header. -
Jeremy Allison
bca6419447 Added Elrond patch to make se_access_check use NT datastructures, not Samba.
Jeremy.
-
Simo Sorce
09bf442549 move to SAFE_FREE() -
Andrew Bartlett
0e1322227b Looks like it missed these. make_connection now no longer takes a 'username'
argument.
-
Andrew Tridgell
fe6679dffb convert more code to use XFILE -
Andrew Tridgell
c26e0d3f27 got rid of USE_TDB_MMAP_FLAG as its not needed any more -
Andrew Tridgell
dcd6e735f7 the next stage in the NTSTATUS/WERROR change. smbd and nmbd now compile, but the client code still needs some work -
Andrew Tridgell
ad648c5cd8 more NTSTATUS/WERROR conversion -
Andrew Tridgell
24f9ab683d the next step in our error code handling change
- added WERROR for win32 error codes
- added a configure test for immediate structures

still lots to do, so its not enabled by default, but the main
structure is there
-
Andrew Tridgell
9d53473f30 updated copyright for Michael Sweet -
Andrew Tridgell
1d36250e33 converted another bunch of stuff to NTSTATUS -
Andrew Tridgell
83d9896c1e converted smbd to use NTSTATUS by default
major changes include:

- added NSTATUS type
- added automatic mapping between dos and nt error codes
- changed all ERROR() calls to ERROR_DOS() and many to ERROR_NT()
  these calls auto-translate to the client error code system
- got rid of the cached error code and the writebmpx code

We eventually will need to also:
- get rid of BOOL, so we don't lose error info
- replace all ERROR_DOS() calls with ERROR_NT() calls

but that is too much for one night
-
Herb Lewis
0768991d04 get rid of compiler warnings -
Tim Potter
2dbb41a7b8 Fixed detection of CUPS. We need to check for the presence of the cups
header files as well as libcups.
-
Simo Sorce
fa8e55b8b4 this is a big global fix for the ptr = Realloc(ptr, size) bug.
many possible mem leaks, and segfaults fixed.

someone should port this fix to 2.2 also.
-
Jeremy Allison
a3781ad38f Merge in the NT drivers changes from 2.2.
Jeremy.
-
Tim Potter
5f5ed41ee8 Replaced the duplicate DOS constants with appropriate ones from doserr.h to
emphasise the fact that the spoolss pipe returns DOS error codes instead of
32-bit nt status codes.
-
Jeremy Allison
36e01dcdbd Fixed typo in patch.
Jeremy.
-
Jeremy Allison
635f3a3ee2 Added fix from Dan Thibadeau @ HP for parsing problem.
Jeremy.
-
Jeremy Allison
61141c371a Merged John's fix.
Jeremy.
-
Simo Sorce
7f33c01688 Change all realloc() statements to Realloc() (ecxept for tdb.c)
changed some code to exploit the fact that Realloc(NULL, size) == malloc(size)
fixed some possible mem leaks, or seg faults.

thanks to andreas moroder (mallocs not checked in client/client.c, client/smbumount.c)
-
Jeremy Allison
5bd39ce233 Fixup error returns in updating driver db version.
Jeremy.
-
Jeremy Allison
840802f106 Added "use mmap" for HPUX.
Jeremy.
-
Tim Potter
2e33940360 Held a shoot-out between NT_STATUS_NO_PROBLEMO and NT_STATUS_NOPROBLEMO.
According to the incorruptible judges find and grep, the latter won.

Mmm - procrastination.  (-:
-
Jeremy Allison
9444fc554b Same fix for resume as for pause.
Jeremy.i
-
Jeremy Allison
592ef3d8ea Fix for CUPS pause/restart code.
Jeremy.
-
Jeremy Allison
e90ad081ad Fix for cups compile.
Jeremy.
-
Jeremy Allison
34244c2a8d iFix from "Shahms E. King" <shahms@shahms.com> to get cups user name
right.
Jeremy.
-
Jeremy Allison
7ebf284ef7 Fix for incorrect creation of print job names, based on a patch by
Jos M.Rodrguez <josemi@iies.es>
Jeremy.
-
Jeremy Allison
5aa3b18f69 Fix from Jim Vopni - muliple definitions of "letter".
Jeremy.
-
Tim Potter
ad0cbfbd79 Changed instances of TRUE, FALSE to True, False as some compilers don't
have the first set of symbols.
-
Tim Potter
fa1dfb681b Removed unused local variables. -
Jean-François Micouleau
c08e22713e split the nt_drivers.tdb in 3 separate tdb files. Should speed-up lookups
J.F.
-
Andrew Tridgell
c41fc06376 strchr and strrchr are macros when compiling with optimisation in gcc, so we can't redefine them. damn. -
Andrew Tridgell
debb471267 The big character set handling changeover!
This commit gets rid of all our old codepage handling and replaces it with
iconv. All internal strings in Samba are now in "unix" charset, which may
be multi-byte. See internals.doc and my posting to samba-technical for
a more complete explanation.
-