1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-17 02:05:21 +03:00

51559 Commits

Author SHA1 Message Date
Günther Deschner
cd2af58af9 s3-spoolss: use pidl for _spoolss_SetPrinter.
Guenther
2009-02-14 01:42:07 +01:00
Günther Deschner
fbcccbc410 s3-spoolss: use pidl for _spoolss_AddPrinterEx.
Guenther
2009-02-14 01:42:01 +01:00
Günther Deschner
9992827838 s3-spoolss: add printer_info2_to_nt_printer_info2 and convert_printer_info_new.
Guenther
2009-02-14 01:42:00 +01:00
Günther Deschner
cba40f6521 s3-rpcclient: use rpccli_spoolss_AddPrinterEx.
Guenther
2009-02-14 01:42:00 +01:00
Günther Deschner
886c028e44 s4-smbtorture: fix test_PausePrinter and test_ResumePrinter.
Guenther
2009-02-14 01:21:21 +01:00
Günther Deschner
935a551d25 s3: re-run make samba3-idl.
Guenther
2009-02-14 01:21:21 +01:00
Günther Deschner
aad5de9a11 spoolss: fill in some unknowns in spoolss_PrinterInfo0 and spoolss_SetPrinterInfo0.
Guenther
2009-02-14 01:21:21 +01:00
Günther Deschner
c302cac9d5 spoolss: fill in more levels in spoolss_UserLevel union.
Guenther
2009-02-14 01:21:21 +01:00
Günther Deschner
6222c177bf spoolss: fix spoolss_AddPrinterEx IDL.
Guenther
2009-02-14 01:21:20 +01:00
Günther Deschner
640248d2d3 spoolss: fix spoolss_SetPrinter IDL.
Guenther
2009-02-14 01:21:20 +01:00
Günther Deschner
75562a1e34 s3-netlogon: some more appropriate debug messages.
Guenther
2009-02-14 01:21:20 +01:00
Jeremy Allison
4df9f1860e Merge branch 'master' of ssh://jra@git.samba.org/data/git/samba 2009-02-13 16:07:07 -08:00
Jeremy Allison
49b52ec16f Parameterize in local.h the MAX_RPC_DATA_SIZE, and ensure
that "offered" read from the rpc packet in spoolss is under
that size. Tidyup from analysis from Veracode.
Jeremy.
2009-02-13 16:06:17 -08:00
Zack Kirsch
ca87726f81 s3: Fix uninitialized variable warning (and bug). 2009-02-13 15:59:39 -08:00
Jeremy Allison
f6821a15a0 Noted by Vericode analysis. Correctly use chroot().
Jeremy.
2009-02-13 15:02:32 -08:00
Aravind Srinivasan
4d83d3a286 s4 torture: Add rename test to imitate the way OS X renames files
This tests for mis-behaved case-insensitive get_real_filename
implementations.
2009-02-13 13:18:54 -08:00
Tim Prouty
5e5d2b2cfa s3 libsmbclient: Fix fstatvfs to be more portable
The statvfs struct isn't guaranteed to be portable across operating
systems.  Since libsmbclient isn't actually calling statvfs and just
using the statvfs struct to store similar information, this patch adds
a new portable smbc_statvfs struct.  This fixes a few of the failures
in the build farm introduced by:
ae259575c447e61665c8e7070c476914161b953f

Derrell, please check.
2009-02-13 12:59:30 -08:00
Aravind Srinivasan
6085ba3dec s3 OneFS: Add vfs implementation for SMB_VFS_GET_REAL_FILE_NAME 2009-02-13 12:59:30 -08:00
todd stecher
dbe2588e46 s3: Test module for perfcount system
Add 'perfcount module = pc_test' to exercise this module. Results are
logged into smb.log every 50 operations (configurable via smb.conf).
2009-02-13 12:59:30 -08:00
Volker Lendecke
ad07bb8dbd Fix Coverity ID 740 (RESOURCE_LEAK) 2009-02-13 21:55:10 +01:00
Jeremy Allison
7d73130125 Fix the build. When you do "make distclean; ./autogen; ./configure; make" and it still doesn't build you know it's messed up.
Jeremy.
2009-02-13 10:36:11 -08:00
Zack Kirsch
a3531314dd OneFS implementation of BRL VFS ops:
* Much of the beginning should look familiar, as I re-used the OneFS oplock
  callback record concept. This was necessary to keep our own state around - it
  really only consists of a lock state, per asynchronous lock that is currently
  unsatisfied.  The onefs_cbrl_callback_records map to BLRs by the id.
* There are 4 states an async lock can be in. NONE means there is no async
  currently out for the lock, as opposed to ASYNC. DONE means we've locked
  *every* lock (keep in mind a request can ask for multiple locks at a time.)
  ERROR is an error.
* onefs_cbrl_async_success: The lock_num is incremented, and the state changed,
  so that when process_blocking_lock_queue is run, we will try the *next* lock,
  rather than the same one again.
* onefs_brl_lock_windows() has some complicated logic:
    * We do a no-op if we're passed a BLR and the matching state is ASYNC --
      this means Samba is trying to get the same lock twice, and we just need
      to wait longer, so we return an error.
    * PENDING lock calls happen when the lock is being queued on the BLQ -- we
      do async in this case.
    * We also do async in the case that we're passed a BLR, but the lock is not
      pending. This is an async lock being probed by process_blocking_lock_queue.
    * We do a sync lock for any normal first request of a lock.
    * Failure is returned, but it doesn't go to the client unless the lock has
      actually timed out.
2009-02-13 10:08:55 -08:00
Zack Kirsch
813273c87e Add VFS ops for Windows BRL: Lock, Unlock and Cancel:
This patch adds 3 new VFS OPs for Windows byte range locking: BRL_LOCK_WINDOWS,
BRL_UNLOCK_WINDOWS and BRL_CANCEL_WINDOWS. Specifically:

* I renamed brl_lock_windows, brl_unlock_windows and brl_lock_cancel to
  *_default as the default implementations of the VFS ops.
* The blocking_lock_record (BLR) is now passed into the brl_lock_windows and
  brl_cancel_windows paths. The Onefs implementation uses it - future
  implementations may find it useful too.
* Created brl_lock_cancel to do what brl_lock/brl_unlock do: set up a
  lock_struct and call either the Posix or Windows lock function. These happen
  to be the same for the default implementation.
* Added helper functions: increment_current_lock_count() and
  decrement_current_lock_count().
* Minor spelling correction in brl_timeout_fn: brl -> blr.
* Changed blocking_lock_cancel() to return the BLR that it has cancelled. This
  allows us to assert its the lock that we wanted to cancel. If this assert ever
  fires, this path will need to take in the BLR to cancel, rather than choosing
  on its own.
* Adds a small helper function: find_blocking_lock_record_by_id(). Used by the
  OneFS implementation, but could be useful for others.
2009-02-13 10:08:40 -08:00
Zack Kirsch
eb3d964f20 Remove typedef struct blocking_lock_record and move references to struct blocking_lock_record. 2009-02-13 10:08:27 -08:00
Stefan Metzmacher
f3262027a3 s4:configure: require the same version for external and internal libtevent
Until we reach 1.0.0, we better require the exact same version.

metze
2009-02-13 18:55:22 +01:00
Stefan Metzmacher
946573aaed tevent: raise version to 0.9.3
- aio events are removed
- tevent_req infrastructure was added

metze
2009-02-13 18:55:21 +01:00
Stefan Metzmacher
113651c517 lib/tevent: add tevent_req infrastructure
This is almost a copy of the async_req code,
which will be removed later.

metze
2009-02-13 18:37:01 +01:00
Stefan Metzmacher
f337974ed5 lib/tevent: add tevent_req.c as copy of lib/async_req/async_req.c
metze
2009-02-13 16:02:14 +01:00
Stefan Metzmacher
fa2461ae73 lib/tevent: expose ev_timeval_zero() for internal usage
metze
2009-02-13 16:02:14 +01:00
Stefan Metzmacher
1d949fe742 lib/tevent: remove broken tevent_aio support
It makes no sense to support aio events because,
the current implementation was based on IOCB_CMD_EPOLL_WAIT
which never made it into the main kernel tree.

The native linux aio can be used with select/epoll
using eventfd(), which means we can implement aio
with fd events and implement aio outside of tevent.

metze
2009-02-13 16:02:13 +01:00
Stefan Metzmacher
f131718c60 s4:lib/socket: add socket_address_copy()
metze
2009-02-13 13:44:38 +01:00
Stefan Metzmacher
f3c5bd9b77 s4:ldb_ildap: remove compiler warnings
metze
2009-02-13 13:44:37 +01:00
Stefan Metzmacher
3c9ad421fb s4:libcli/ldap: use const char * const *attributes as in all other places
metze
2009-02-13 13:44:36 +01:00
Stefan Metzmacher
66b2604ef1 s4:ntvfs_generic: use talloc_get_type() to remote compiler warnings
metze
2009-02-13 13:44:36 +01:00
Stefan Metzmacher
abb96e202b s4:torture/samba3rpc: fix the build after get_myname() changes
metze
2009-02-13 13:36:11 +01:00
Volker Lendecke
c6f82b5259 Remove the s4 version of smbspool.c 2009-02-13 12:15:04 +01:00
Volker Lendecke
5b6c428763 Fix an uninitialized variable, introdued with 4d100f2f 2009-02-13 12:15:04 +01:00
Volker Lendecke
0844cca1d5 Replace get_myname() with the talloc version from v3-3-test 2009-02-13 12:15:03 +01:00
Stefan Metzmacher
e7f7ed8bf6 s3:auth: only create_local_token() should add S-1-22-X-Y sids
metze
2009-02-13 10:40:37 +01:00
Stefan Metzmacher
f14e4d4e54 s3:auth: add S-1-22-X-Y sids to the local token
metze
2009-02-13 10:40:37 +01:00
Volker Lendecke
c2f7f1b40b Fix Coverity ID 707 (RESOURCE_LEAK) 2009-02-13 10:21:03 +01:00
Volker Lendecke
83c2f028d8 Fix Coverity ID 742 (RESOURCE_LEAK) 2009-02-13 10:20:57 +01:00
Volker Lendecke
6e19b22c5a Fix Coverity ID 744
This was marked as a resource leak. This change makes the code a bit clearer
that we always free error_string.
2009-02-13 10:20:51 +01:00
Volker Lendecke
4d100f2f6a Fix Coverity ID 745 (RESOURCE_LEAK) 2009-02-13 10:20:45 +01:00
Andrew Bartlett
0ccdb5f74a Remove useless invocation of messaging_init() in RPC-PAC test 2009-02-13 16:56:46 +11:00
Andrew Bartlett
0d222a6924 Merge branch 'master' of ssh://git.samba.org/data/git/samba into master-devel 2009-02-13 16:56:35 +11:00
Andrew Bartlett
cd6026135d Push sam_get_server_info_principal into the auth subsystem
This means it must be accessed via the supplied auth_context in the
GENSEC server, and should remove the hard depenceny of GENSEC on the
auth subsystem and ldb (allowing LDB not to rely on LDB is considered
a good thing, apparently)

Andrew Bartlett
2009-02-13 14:02:49 +11:00
Günther Deschner
99b45f71cc s3-netlogon: implement _netr_ServerAuthenticate3.
Guenther
2009-02-13 01:47:58 +01:00
Andrew Bartlett
71632a1697 Remove auth/ntlm as a dependency of GENSEC by means of function pointers.
When starting GENSEC on the server, the auth subsystem context must be
passed in, which now includes function pointers to the key elements.

This should (when the other dependencies are fixed up) allow GENSEC to
exist as a client or server library without bundling in too much of
our server code.

Andrew Bartlett
2009-02-13 10:24:16 +11:00
Volker Lendecke
147a2e3440 Fix Coverity ID 871 -- do not dereference "sp" before checking for NULL 2009-02-12 23:20:20 +01:00