1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

527 Commits

Author SHA1 Message Date
Herb Lewis
398bd14fc6 get rid of more compiler warnings -
Gerald Carter
8cc1a49c13 fix bug 294; win9x driver lookups should always use version 0 -
Tim Potter
59dae1da66 More printf portability fixes. Got caught out by some gcc'isms last
time.  )-:
-
Tim Potter
ba4d334b82 More printf fixes - size_t is long on some architectures. -
Jeremy Allison
919078cf39 Some fclose -> x_fclose found by Tony Jago.
Jeremy.
-
Gerald Carter
3d29302756 fix cache coherency bug in print handle print_info_2 cache.
Needs to be rewritten to use a reference counter, but this
will work for now.

also the memory allocation in the printing code needs to be cleaned
up to use talloc exclusively.
-
Gerald Carter
66359531b8 i guess i'm the only one this ever annyoed...
fix the confusion when we tdb_lock_bystring() but
we retrieve an entry using tdb_fetch_by_string.
It's now always tdb.*bystring()
-
Jeremy Allison
ff222716a0 Removed strupper/strlower macros that automatically map to strupper_m/strlower_m.
I really want people to think about when they're using multibyte strings.
Jeremy.
-
Gerald Carter
fd24183ec3 fix typos in log messages and comments. -
Jeremy Allison
8f830c509a Some const correctness. Stop tdb being used as a remote backend. If an
idmap backend is specified cause smbd to ask winbindd (use winbindd if
you want a consistant remote backend solution).
Should work well enough for next beta now...
Jeremy.
-
Gerald Carter
2d192e0431 ifdef out some functions that are not used when HAVE_ADS is not defined -
Gerald Carter
d7f7fcda42 large change:
*)  consolidates the dc location routines again (dns
    and netbios)  get_dc_list() or get_sorted_dc_list()
    is the authoritative means of locating DC's again.

    (also inludes a flag to get_dc_list() to define
     if this should be a DNS only lookup or not)

    (however, if you set "name resolve order = hosts wins"
     you could still get DNS queries for domain name IFF
     ldap_domain2hostlist() fails.  The answer?  Fix your DNS
     setup)

*)  enabled DOMAIN<0x1c> lookups to be funneled through
    resolve_hosts resulting in a call to ldap_domain2hostlist()
    if lp_security() == SEC_ADS

*)  enables name cache for winbind ADS backend

*)  enable the negative connection cache for winbind
    ADS backend

*)  removes some old dead code

*)  consolidates some duplicate code

*)  moves the internal_name_resolve() to use an IP/port pair
    to deal with SRV RR dns replies.  The namecache code
    also supports the IP:port syntax now as well.

*)  removes 'ads server' and moves the functionality back
    into 'password server' (which can support "hostname:port"
    syntax now but works fine with defaults depending on
    the value of lp_security())
-
Tim Potter
8b20883435 Squash another compiler warning. -
Alexander Bokovoy
c2689ed118 Prefix VFS API macros with SMB_ for consistency and to avoid problems with VFS_ macros at system side. We currently have one clash with AIX and its VFS_LOCK. Compiled and tested -- no new functionality or code, just plain rename of macros for yet-unreleased VFS API version. Needs to be done before a24 is out -
Alexander Bokovoy
91984ef5ca Fix VFS layer:
1. Finally work with cascaded modules with private data storage per module
2. Convert VFS API to macro calls to simplify cascading
3. Add quota support to VFS layer (prepare to NT quota support)

Patch by Stefan (metze) Metzemacher, with review of Jelmer and me
Tested in past few weeks. Documentation to new VFS API for third-party developers to follow
-
Andrew Bartlett
a4556786d2 Elsewhere, we use a #define for this environment variable name, so do the
same here.

Andrew Bartlett
-
Gerald Carter
2839534722 removing printing = SOFTQ since no one knows what it is -
Jim McDonough
674174fcca Get credentials before publishing printers. -
Andrew Bartlett
32fb801ddc Merge the 'safe' parts of my StrnCpy patch - many of the users really wanted
a pstrcpy/fstrcpy or at most a safe_strcpy().

These have the advantage of being compiler-verifiable.

Get these out of the way, along with a rewrite of 'get_short_archi' in the
spoolss client and server.  (This pushes around const string pointers, rather
than copied strings).

Andrew Bartlett
-
Jeremy Allison
2e5e4c10d2 Limit the number of outstanding print notify messages for a process to
1000.
Jeremy.
-
Jeremy Allison
03a1f46e34 Fix mem leak. Spotted by tpot (thanks Tim).
Jeremy.
-
Tim Potter
5d1e8cca03 Array size fixup for construct_nt_devicemode() from HEAD. -
Jeremy Allison
9e6e6c3f50 Grr. Get rid of one of the extra NULL's that crept in from app-head.
Spotted by Andrew Esh.
Jeremy.
-
Jeremy Allison
8a6f3313e6 Ensure we're not filtering our essential delete messages.
Added jobid debug when unpacking message.
Jeremy.
-
Jeremy Allison
f0fac6a1e3 Ensure print queue array is zeroed out before returning.
Jeremy.
-
Jeremy Allison
59be98401c Fix the new storage code to correctly convert from system queue info to
pjob info. Ensure we retrieve more than one job from the storage code.
Jeremy.
-
Jeremy Allison
e5e83544dc Subtle changes to message handling after ENUMJOBS.
Jeremy.
-
Jeremy Allison
b2ef052ada Fix extra NULL arg added during app-head merge.
Jeremy.
-
Jeremy Allison
331e621b58 Merge of new appliance-head scalable printing fixes.
Jeremy.
-
Jeremy Allison
bf795b684e lib/messages.c: Check return from chainlock before modifying message queue.
Apply the job returned limit across all requests for job queues.
Jeremy.
-
Jeremy Allison
759aab9944 Fix off by one bug noticed by Andrew Bartlett.
Jeremy.
-
Gerald Carter
52ef84b534 add #define for the max device name length in a DEVICEMODE -
Jeremy Allison
c832e95c2f Writable string const fixes.
Jeremy.
-
Jeremy Allison
75b36459ab Fix for little-used lpq parser.
Jeremy.
-
Jeremy Allison
a75d9fc4e1 Ensure added jobs increment total_jobs.
Jeremy.
-
Gerald Carter
31272d3b6b Progress on CR 601
cache the printer_info_2 with the open printer handle.
cache is invalidated on a mod_a_printer() call **on that smbd**.

Yes, this means that the window for admins to step on each other
from different clients just got larger, but since handles a generally
short lived this is probably ok.
-
Andrew Bartlett
39f3bec0f6 Missed one in the previous merge - user_ok() and user_in_group() now take
an optional list of groups the user is in.
-
Jeremy Allison
7ec1c8869d Bit of a hack job to prevent smbprn.XXX jobs appearing in the queue if the
jobid is below the UNIX_JOB_START number.
Jeremy.
-
Gerald Carter
ffda9e2480 * set PRINTER_ATTRIBUTE_RAW_ONLY; CR 1736
* never save a pointer to an automatic variable (they go away)
  implement a deep copy for SPOOLSS_NOTIFY_MSG to correct
  messages being sent that have junk for strings;
  fix in response to changes for CR 1504
-
Gerald Carter
aaefa889ad off by one bug in string length; CR 1159 -
Andrew Bartlett
0809670d0f Merge from HEAD: Fix NULL pointer de-reference in arguments to tdb_pack.
Andrew Bartlet
-
Andrew Bartlett
c1cfc296c2 Cleanups: (merge from HEAD)
- use safe_strcpy() instead of pstrcpy() for malloc()ed strings

 - CUPS: a failure in an attempt to automaticly add a printer is not level 0 stuff.

 - Fix up a possible Realloc() failure segfault

Andrew Bartlett
-
Jeremy Allison
82cf8aa747 Ensure we return NOSPACE if we can't fast allocate a print job.
Jeremy.
-
Jeremy Allison
105d37474d Collapse duplicate messages before sending.
Jeremy.
-
Gerald Carter
d4168c327b CUPS patch to log client name -
Jeremy Allison
62e274abbb Hold the lock for a much shorter time when allocating a new jobid.
Jeremy.
-
Jeremy Allison
97848f40ee Up the hash table size for printing tdb.c
Jeremy.
-
Jeremy Allison
d8a42753cc Ensure we only ever set fsp->conn in one place.
Jeremy.
-
Jeremy Allison
07efebb984 Add 3 second timeout when terminating server and sending print notify
messages. Stops build-up of large numbers of smbd's waiting to terminate
on large print throughput.
Jeremy.
-
Jeremy Allison
7ace900b33 More scalable print tdb fixes.
Jeremy.
-