1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

51854 Commits

Author SHA1 Message Date
Björn Jacke
00913a73c7 prefer gssapi header files from subdirectory
this fixes some compile time noise on FreeBSD 7
2009-02-23 13:41:16 +01:00
Günther Deschner
dc0bf17ac1 s3-rpcclient: use correct clientname in spoolss_RemoteFindFirstPrinterChangeNotifyEx command.
Guenther
2009-02-23 12:48:19 +01:00
Günther Deschner
e2ab5a155c s3: re-run make samba3-idl.
Guenther
2009-02-23 12:47:53 +01:00
Günther Deschner
db400032ab spoolss: spoolss_NotifyData contains a devmode container, not devmode pointer.
Guenther
2009-02-23 12:47:20 +01:00
Günther Deschner
672eb22bc1 spoolss: fix some PRINTER_CHANGE_ defines (and add a new windows 7 flag).
Guenther
2009-02-23 12:47:10 +01:00
Björn Jacke
cd6ae0de52 all BSDs use this evironment variable
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-02-23 09:43:23 +01:00
Karolin Seeger
09a7f93f6b s3/docs: Fix typo in man mount.cifs.
Thanks to Tobias Stoeckmann for reporting!

Karolin
2009-02-23 09:24:50 +01:00
Steven Danneman
ac0d452ac6 s3: Wrap usage of rlimit in configure checks 2009-02-22 22:32:27 -08:00
Simo Sorce
4e5997736c For some unknown reason ldbrename was not being built in samba3. 2009-02-22 01:16:46 -05:00
Tim Prouty
8ec9903426 s3 OneFS: Add an atomic sendfile implementation 2009-02-21 17:10:42 -08:00
Tim Prouty
0dcfa9ce1b s3: If sendfile returns 0 bytes read, fall back to the normal read path
This allows sendfile implementations that are atomic to avoid having
to send zeros or kill the client connection on a short read (usually
the file was truncated).
2009-02-21 15:42:37 -08:00
Tim Prouty
1ff9696306 Revert "s3 auth: Add parameter that forces every user through an NSS lookup"
After the discussion on samba-technical, it was decided that the best
answer for now was to revert this change.  The right way to do this is
to rewrite the token api to use opaque tokens with pluggable modules.

This reverts commit 8e19a288052bca5efdb0277a40c1e0fdd099cc2b.
2009-02-21 14:00:14 -08:00
Tim Prouty
39b508e38e Fix shadowed declaration warning 2009-02-21 14:00:05 -08:00
Günther Deschner
2ad2b6f723 s3-spoolss: fix client name in rpccli_spoolss_openprinter_ex.
Guenther
2009-02-21 21:14:37 +01:00
Günther Deschner
35d6234998 s3-spoolss: remove duplicate flag.
Guenther
2009-02-21 21:14:30 +01:00
Günther Deschner
d3372c6a9e s3-spoolss: fix _spoolss_GetPrinterDriverDirectory and spoolss_GetPrintProcessorDirectory.
Both calls need to return NULL in the error case to avoid ndr encoding problems.
(found by smbtorture spoolss test).

Guenther
2009-02-21 21:14:20 +01:00
Günther Deschner
762b92e285 s3-eventlog: fix rpcclient and server stub for eventlog_GetLogInformation.
Guenther
2009-02-21 21:14:11 +01:00
Günther Deschner
24373c16a5 s4-smbtorture: fix eventlog getinformation test.
Guenther
2009-02-21 21:13:59 +01:00
Günther Deschner
3bd612527d s3: re-run make samba3-idl.
Guenther
2009-02-21 21:13:46 +01:00
Günther Deschner
acfa1278ae spoolss: add spoolssNotifyOptionFlags.
Guenther
2009-02-21 21:12:45 +01:00
Günther Deschner
dc8ab10d3d eventlog: remove unused eventlog_Record struct.
Guenther
2009-02-21 21:12:19 +01:00
Günther Deschner
80cd7ed519 eventlog: fix eventlog_GetLogInformation typo in IDL.
Guenther
2009-02-21 21:12:10 +01:00
Jelmer Vernooij
c9a057bc04 pytevent: Fix include path - tevent_util is not installed. 2009-02-21 19:08:24 +01:00
Jelmer Vernooij
7e9c735b3c Merge branch 'master' of ssh://git.samba.org/data/git/samba 2009-02-21 19:00:18 +01:00
Jelmer Vernooij
80e9e63cf6 Let --enable-external-libldb default to no (since linking against
external LDB doesn't work yet).
Fix flags when using internal libs.
2009-02-21 18:59:12 +01:00
Volker Lendecke
4a2e2c0c12 Fix the build on Solaris 2009-02-21 18:55:35 +01:00
Jelmer Vernooij
fb1c564b78 Add --enable-external-* flags for libraries shipped with Samba, to allow
explicitly enabling or disabling the use of the version provided by the
system.
2009-02-21 18:21:20 +01:00
Volker Lendecke
a3127ea9d7 Fix some nonempty blank lines 2009-02-21 14:04:16 +01:00
Volker Lendecke
4aed9abbf8 Remove the static "chal" from ntlmssp.c:get_challenge() 2009-02-21 14:04:14 +01:00
Volker Lendecke
e9467ff26e Fix a typo 2009-02-21 12:54:34 +01:00
Volker Lendecke
5a5af073bb Do not close an fd we know is -1 2009-02-21 12:54:06 +01:00
Volker Lendecke
3305780e5d Move some bytes from the data to the text segment 2009-02-21 12:53:49 +01:00
Volker Lendecke
2562723445 Fix an uninitialized variable 2009-02-21 12:49:01 +01:00
Steven Danneman
c207fe42a7 s3: Fix build break in d9a842b2
* actually check for existance of sysctlbyname()
2009-02-20 23:25:49 -08:00
Dan Sledz
fc02c3b089 Introduce a new passdb backend: pdb_onefs_sam
Implements a custom backend for onefs that exclusively uses the wbclient
interface for all passdb calls.
It lacks some features of a standard passdb.
In particular it's a read only interface and doesn't implement privileges.
2009-02-20 19:39:07 -08:00
Dan Sledz
c383022f89 Introduce a new authentication backend auth_onefs_wb
This new backend is custom tailored to onefs' unique requirements:
1) No fallback logic
2) Does not validate the domain of the user
3) Handles unencrypted passwords
2009-02-20 19:39:07 -08:00
Dan Sledz
e311dcff22 Allow building with an external libwbclient library
Introduce a new configure option --with-wbclient which specifies a
location to find a compatible libwbclient library to link against.  This
options is overwritten by --with-winbind
2009-02-20 19:39:06 -08:00
Zack Kirsch
2539d678f5 s4 torture: Add comment to clarify test 2009-02-20 16:42:50 -08:00
Zack Kirsch
a04bb5f9a2 s3 BRL: Add more clarifying comments and add implied logic to make conditional more clear 2009-02-20 16:42:50 -08:00
Zack Kirsch
5300dc6288 s3 OneFS: Add debugging for createfile_flags 2009-02-20 16:42:50 -08:00
Jeremy Allison
87a4c09b9b Change smbc_set_credentials_with_fallback() (unreleased) to use
const approptiately.
Jeremy.
2009-02-20 16:41:41 -08:00
todd stecher
d9a842b26f S3: Detect max_open_files from system
- Attempt to use syscalls to determine max-open-files value.
- Add in periodic logging when max file limit reached
2009-02-20 16:35:48 -08:00
Steven Danneman
193be432a2 s3: Refactor of madvise() usage in c441f58d
* move to reinit_after_fork() to protect all Samba daemons
* only protect parent processes
2009-02-20 16:30:13 -08:00
Steven Danneman
116ce19b10 Moved become_daemon() and close_low_fds() to shared util lib 2009-02-20 16:30:12 -08:00
Steven Danneman
5bd7f9c61b s3: OneFS implementation of change notify
The OneFS Samba implementation of change notify is modeled after the
usage of Linux's inotify kernel subsystem.  A single call is made
into the onefs.so VFS module to initialize kernel tracking of certain
file change events.  When these events occur a kernel notification is
sent to smbd and the notification event is translated and given to the
general Samba Change Notify layer through a callback function.

The most difficult aspect is converting an SMB CompletionFilter to
a matching ifs_event mask, and then back to an appropriate change
notify action.  Currently, not all possible cases are handled by the
this module, but the most prevalent ones, which are tested by
smbtorture, are implemented.
2009-02-20 14:10:31 -08:00
Steven Danneman
9a90cbea83 s3: Make change notify immediately return a catch-all packet on underlying error
* This allows a problem in the underlying CN backend to be bubbled up
  to the general CN layer so a catch-all reply can be returned
* We now also return a catch-all response immediately if the server-side
  event queue becomes too big
2009-02-20 14:10:30 -08:00
Steven Danneman
b329ea1cf3 s3: Modifications to generic notify structures to allow implementation of OneFS notify.
The OneFS kernel based change notify system takes an fd of the directory
to watch in it's initialization syscall.  Since we already have this
directory open, this commit plumbs that fd down to the VFS layer via the
notify_entry struct.

We also need to know if the watch is taken out on a snapshot directory.
The full file_id struct is also passed down to make this determination.
The file_id marshalling wrappers are hand written here, but should
eventually be auto-generated by moving the struct file_id into the idl.
2009-02-20 14:10:30 -08:00
Steven Danneman
1a0aed36c0 Added torture tests to RAW-NOTIFY
* This adds a test to check the change notify behavior of the SMB server
  when more events have been generated than can be returned in a single
  change notify response.

* Second test makes sure the server doesn't return notification events
  for changes to the watched directory itself
2009-02-20 14:10:29 -08:00
Jeremy Allison
e6a5f11865 Fix bug #6133 - Cannot delete non-ACL files on Solaris/ZFS/NFSv4 ACL filesystem.
As the NFSv4 ACL mapping code doesn't map write directory into the DELETE_CHILD
permission bit (which we require before allowing a delete) no one can delete
files without an explicit DELETE_CHILD bit set on the directory. Add this mapping.
Jeremy.
2009-02-20 08:23:52 -08:00
Derrell Lipman
45630c47fc variable grouping: just my OCD desire to keep similar things together 2009-02-20 09:51:36 -05:00