1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-23 09:57:40 +03:00

247 Commits

Author SHA1 Message Date
Jeremy Allison
cfbf78085d Fix case where volumename could be returned as UNIX charset or DOS codepage
depending on where it came from.
Jeremy.
-
Andrew Tridgell
7b5912be15 added printer admin option
any user in that list can do anything to a printer
-
Jeremy Allison
902ada6379 Added John Reilly's enumports/addprinter/delprinter scripting code plus the
fix for the Win9x printer drivers.
Changed command names to add "command" string on the end for some consistancy
with the other scripting commands.
Added '%P' option to tdbpack/unpack to store long comment string.
Made port name be "Samba Printer Port" if no enum port script given.
Fixed prs_uint32_pre code to cope with null args.
Jeremy.
-
Christopher R. Hertel
cc08bdc74f First cut toward adding WINS server failover.
*Note: failover doesn't actually work yet!*  It's just that the code I'm
adding provides all of the pieces necessary.

I do have one big question.  Something that I'll have to ask Jeremy, I'm
thinkin'.  In nmbd/nmbd_subnetdb.c the IP of the WINS server is used to
set up the Unicast subnet.

...so what happens if the WINS server changes?

My guess is either:
  a) nothing.
  b) I'd have to change the unicast subnet entry whenever the WINS server
     changes.

Urq.

BTW, the lp_wins_server() function no longer returns the WINS server name
or IP.  It returns the list of WINS servers entered in smb.conf.  To get
the currently 'live' WINS server, use the wins_srv() function.

Fun, eh?

Chris -)-----
-
Andrew Tridgell
a81371a4fd don't need shmem any more -
Jeremy Allison
193a248bed Changed enumports to show printernames as ports. In line with 'the grand plan' :-)
Gerald & I discussed with HP. More changes to follow.
Jeremy.
-
Jeremy Allison
54bf7c12b8 Changed default printer driver to "" from NULL.
Jeremy.
-
Andrew Tridgell
2d35d0cf1d reverted lukes changes in param/
apparently they were not deliberate, they were probably a result of
Luke accidentally copying a CVS directory from one spot to another in
error
-
Luke Leighton
ac91ef3093 more update. -
Andrew Tridgell
b28cc4163b Linux kernel oplocks now seem to work, but need a _lot_ of testing
I had to modify sys_select() to not loop on EINTR. I added a wrapper
called sys_select_intr() which gives the old behaviour.
-
Andrew Tridgell
3253085d98 a first pass at Linux kernel oplocks support -
Andrew Tridgell
b5ceab8102 continued the split of the kernel level oplocks code into a more
modular form. In this pass I added oplock_irix.c and added a "struct
kernel_oplocks" that describes a kernel oplock implementation.
-
Jeremy Allison
7afb68461f Change from "David S. Chappell" <David.Chappell@mail.cc.trincoll.edu>
to make "printer driver file" a share parameter. This fits better with
the new NT printing subsystem.
Jeremy.
-
Jeremy Allison
d175d3ebef param/loadparm.c: Looks like someone ran indent on this !
passdb/smbpass.c: Insure uninitialized memory reference fix.
printing/nt_printing.c:
rpc_server/srv_spoolss_nt.c: Insure memory leak fixes.
smbd/unix_acls.c: Shadow ref fix.
Jeremy.
-
Luke Leighton
3a1ebfa080 space in front of lp_preexec() causing make proto to not detect this fn. -
Luke Leighton
62271c30f4 make proto -
Luke Leighton
82e47e268c lp_server_role() + use in srv_reg. -
Luke Leighton
038dab9053 TIMESTAMPS ARE IRRITATING AS HELL WHEN DEBUGGING! NGGGH!!
switched default to False, i expect someone to revert this very soon [for
security reasons],
but for now am doing this so i don't get exasperated by seeing stupid
timestamps splitting up debug output.
-
Andrew Tridgell
fba5886a05 removed lp_revalidate() -
Shirish Kalele
6803d2574f The new msdfs implementation that uses symlinks to point to other
servers. Very intuitive.

Removed the dfs map parsing code and tdb maintenance code (files
msdfs/parse_dfs_map.c & msdfs/msdfs_tdb.c), dfs map loading and unloading
calls (param/loadparm.c smbd/server.c).

Added code to display msdfs format symlinks as directories in a
transact2_findfirst/findnext. (smbd/trans2.c)

Modified msdfs/msdfs.c to use the msdfs symlinks to
create dfs referrals.

Changed msdfs/README to reflect new operability.
-
Andrew Tridgell
6cbb826b15 use "winbind separator" option for domain/user separator character -
Andrew Tridgell
f838707820 I found a better way of handling deleted auto printers -
Andrew Tridgell
23f16c5ce6 remove autoloaded printers that are no longer in /etc/printcap when we
get a HUP
-
Andrew Tridgell
d178c00aae more merging
it is now at the stage that winbindd can compile in the head branch,
but not link
-
Andrew Tridgell
cd5e249427 added winbindd options in head branch, so it is possible to combine
branches
-
Andrew Tridgell
ee8546342d split the username in the vuser structure into a separate
userdom_struct. As the name implies this also contains a domain
(unused at the moment).

This will be important shortly, as operation in appliance mode needs
the domain to be always carried with the username.
-
Shirish Kalele
99d07e1352 Added info level 1005 to netsharegetinfo (is the share a DFS root)
Added dfs_server announcement in set_default_server_announce_type()
-
Andrew Tridgell
a09470817c converted a bunch more functions to use a fd instead of a FILE*
to support some of this I added the following functions in util_file.c

file_lines_pload : load lines from a pipe
file_pload : load a pipe into memory
-
Jeremy Allison
3de058bd43 Removed "ole locking compat" parameter (no longer used).
We now get/set/check POSIX locks, but I still need to code up the
close fd braindamage...
Jeremy.
-
Jeremy Allison
db96f83e34 Code to map tdb locks onto POSIX. Mainly placeholder code at the moment,
but the structure is done enough so that Andrew can look it over and give
a yea/nay decision.
Jeremy.
-
Jean-François Micouleau
396f73c11b changed all the status code to ERROR_xxx instead of NT_STATUS_xx which are
wrong in the spoolss case.

fxed a bug in the job notify code (that's the polite answer), the truth is
different: there is a bug in the NT spooler service, including SP6a and
NT2K.

changed the default lpcommand in the LPRNG case.

	J.F.
-
Jeremy Allison
58a16e2718 Fix for compiler warning about invalid structure type.
jeremy.
-
Jeremy Allison
c4c06650dd Fix for coredump in testparm.
Jeremy.
-
Jeremy Allison
26963f2f8e Fixed crash bug in new handle_netbios_name code.
Jeremy.
-
Jeremy Allison
3b8cbb10de Fixes to add "paranoid" option to popen. Checks some basic things.
Jeremy
-
Jeremy Allison
bb100352ab include/smb.h:
smbd/negprot.c:
smbd/reply.c: Fixes to recognise Win2k.
param/loadparm.c: Put debug timestamp parameter back to correct default.
smbd/nttrans.c: Fix to detect Win2k unicode bug with transact create.
Jeremy.
-
Shirish Kalele
ca02d9f821 Cleaning up the warnings from configure.developer.
Found that Jeremy had already made some of the changes.
-
Shirish Kalele
4684b4a188 dded Microsoft Dfs services.
* added a new msdfs/ directory under source/
* added msdfs sources under this directory.
* modified configure setup to add a --with-msdfs configure time option

 Modified Files:
 	Makefile.in acconfig.h configure configure.in
 	include/config.h.in include/includes.h include/proto.h
 	include/smb.h include/smb_macros.h param/loadparm.c
 	smbd/negprot.c smbd/nttrans.c smbd/process.c smbd/reply.c
 	smbd/server.c smbd/trans2.c
 Added Files:
 	include/msdfs.h msdfs/README msdfs/msdfs.c msdfs/msdfs_tdb.c
 	msdfs/parse_dfs_map.c
 ----------------------------------------------------------------------
-
Luke Leighton
f8d3ce0419 added a tcon test: make two tconXs with the same user/pass, open a file
with one of them and try to write to the file with the other.
-
Jeremy Allison
f29847cbee Added "source environment" parameter from Nicolas Williams <Nicolas.Williams@wdr.com>.
Jeremy.
-
Jean-François Micouleau
b81dc7b7f8 Jeremy can you check lib/util_unistr.c for codepages support ?
I added 2 UNICODE <-> ASCII functions which _don't_ honor codepage
support.

	J.F.
-
Tim Potter
f872518972 Added 'vfs object' and 'vfs options' smb.conf parameters. -
Herb Lewis
d3557b7f72 made "enable" and "disable" the default "lpresume" and "lppause" commands
for SYSV instead of the lpc commands (since these are BSD commands)

I still don't like the default "lppause" and "lpresume" commands for
SYSV since these seem to be SUN specific additions to the lp command
(at least I don't find them in IRIX and HPUX). I think this should be
inside an ifdef SUN??? but I'm not sure what the define should be so
I have left it for now.
-
Jeremy Allison
171bef4d95 Fix from Motonobu TAKAHASHI to sort code page parameters first.
Needed when reading the rest of smb.conf.
Jeremy.
-
Jeremy Allison
bdb2ff6a38 Moved Herb's global -> local changes to HEAD.
Jeremy.
-
Jeremy Allison
fa3d91de89 Added Herb's swat fixes.
Jeremy.
-
Andrew Tridgell
070f49397f use string_set() instead of string_init()
bug pointed out by Richard
-
Jeremy Allison
38dffd360d Added "inherit permissions" patch.
Fixed locking bug found by Andrew.
Jeremy.
-
Jeremy Allison
465c5a8308 Added missing #ifdef for WITH_UTMP.
Jeremy.
-
Jeremy Allison
95d37a1d25 Added utmp fix from David Lee <T.D.Lee@durham.ac.uk>.
Jeremy.
-