summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-02-20Introduce a new passdb backend: pdb_onefs_samDan Sledz3-1/+439
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-20Introduce a new authentication backend auth_onefs_wbDan Sledz3-0/+141
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-20Allow building with an external libwbclient libraryDan Sledz1-20/+57
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-20s4 torture: Add comment to clarify testZack Kirsch1-0/+3
2009-02-20s3 BRL: Add more clarifying comments and add implied logic to make ↵Zack Kirsch1-2/+6
conditional more clear
2009-02-20s3 OneFS: Add debugging for createfile_flagsZack Kirsch1-12/+15
2009-02-20Change smbc_set_credentials_with_fallback() (unreleased) to useJeremy Allison2-10/+17
const approptiately. Jeremy.
2009-02-20S3: Detect max_open_files from systemtodd stecher3-1/+68
- Attempt to use syscalls to determine max-open-files value. - Add in periodic logging when max file limit reached
2009-02-20s3: Refactor of madvise() usage in c441f58dSteven Danneman2-7/+7
* move to reinit_after_fork() to protect all Samba daemons * only protect parent processes
2009-02-20Moved become_daemon() and close_low_fds() to shared util libSteven Danneman6-85/+20
2009-02-20s3: OneFS implementation of change notifySteven Danneman4-2/+694
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-20s3: Make change notify immediately return a catch-all packet on underlying errorSteven Danneman1-1/+14
* 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-20s3: Modifications to generic notify structures to allow implementation of ↵Steven Danneman6-0/+56
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-20Added torture tests to RAW-NOTIFYSteven Danneman1-2/+150
* 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-20Fix bug #6133 - Cannot delete non-ACL files on Solaris/ZFS/NFSv4 ACL filesystem.Jeremy Allison1-1/+7
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-20variable grouping: just my OCD desire to keep similar things togetherDerrell Lipman1-5/+7
2009-02-20Make libsmbclient work with DFSBo Yang7-6/+108
Signed-off-by: Derrell Lipman <derrell.lipman@unwireduniverse.com>
2009-02-20s3/docs: Add hint about getfattr in man vfs_acl_xattr.Karolin Seeger1-0/+9
Karolin
2009-02-20s3/docs: Add man vfs_acl_tdb.Karolin Seeger1-0/+66
Karolin
2009-02-20s3/docs: Add man vfs_acl_xattr.Karolin Seeger1-0/+61
Karolin
2009-02-20s3/docs: Fix several typos.Karolin Seeger19-27/+24
This fixes bug #6127. Thanks to Justin T Pryzby <justinpryzby [at] users.sourceforge.net> for the review! Karolin
2009-02-19s3 OneFS: Add shadow copy moduleTim Prouty5-1/+1538
2009-02-19s3 OneFS: Add file_id_create implementation to take advantage of snapshotsTim Prouty1-0/+18
2009-02-19s3: Change the vfs_GetWd cache to use the file_id structTim Prouty1-12/+3
2009-02-19s3: Remove unused inform_level2_message structTim Prouty1-8/+0
2009-02-19s3: Add extid to the dev/inode pairTim Prouty14-63/+122
This extends the file_id struct to add an additional generic uint64_t field: extid. For backwards compatibility with dev/inodes stored in xattr_tdbs and acl_tdbs, the ext id is ignored for these databases. This patch should cause no functional change on systems that don't use SMB_VFS_FILE_ID_CREATE to set the extid. Existing code that uses the smb_share_mode library will need to be updated to be compatibile with the new extid.
2009-02-19s3: Modify SMB_VFS_FILE_ID_CREATE to take a stat structTim Prouty12-44/+56
Since file_id_create_dev is incompatible with the concept of file_ids, it is now static and in the one file that needs it.
2009-02-19Fix printf warnings found on systems where time_t <> long int.Jeremy Allison3-10/+11
Jeremy.
2009-02-19Fix printf type warning.Jeremy Allison1-2/+2
Jeremy.
2009-02-19Fix an uninitialized variableVolker Lendecke1-0/+1
2009-02-19Fix a O(n^2) algorithm in regdb_fetch_keys()Volker Lendecke1-5/+27
2009-02-19s3-spoolss: fix vista fallback in _spoolss_AddPrinterDriverEx.Günther Deschner1-2/+1
Martin Zielinski, if you're reading this, please have a look. Vista nicely takes just a WERR_UNKNOWN_LEVEL here and retries with a level 6 add. Guenther
2009-02-19s3-spoolss: remove old spoolss_AddPrinterDriver{Ex}.Günther Deschner3-207/+0
Guenther
2009-02-19s3-spoolss: use pidl for _spoolss_AddPrinterDriver{Ex}.Günther Deschner3-130/+218
Guenther
2009-02-19s3-spoolss: remove old spoolss_GetPrintProcessorDirectory.Günther Deschner4-233/+0
Guenther
2009-02-19s3-spoolss: use pidl for _spoolss_GetPrintProcessorDirectory.Günther Deschner3-83/+46
Guenther.
2009-02-19s3-rpcclient: use rpccli_spoolss_GetPrintProcessorDirectory in rpcclient.Günther Deschner1-12/+35
Guenther
2009-02-19s3-spoolss: fix _spoolss_GetPrinterDriverDirectory.Günther Deschner1-1/+6
treat architecture correctly as it is a [unique] pointer, and newer Windows versions sometimes send in an empty string. Guenther
2009-02-19s3-rpcclient: use SPOOLSS_ARCHITECTURE_NT_X86 define in spoolss getdriverdir ↵Günther Deschner1-1/+1
cmd. Guenther
2009-02-19s3-spoolss: _spoolss_OpenPrinterEx needs to wipe out policy handle upon failure.Günther Deschner1-0/+10
Guenther
2009-02-19s3-spoolss: _spoolss_AddPrinterEx needs to wipe out policy handle upon failure.Günther Deschner1-0/+1
Guenther
2009-02-19spoolss: add ndr_size_spoolss_StringArray to spoolss helper.Günther Deschner2-0/+11
Guenther
2009-02-19s3: re-run make samba3-idl.Günther Deschner3-7/+1
Guenther
2009-02-19spoolss: remove gensize calculation from spoolss_StringArray. Thanks metze!Günther Deschner1-1/+1
Guenther
2009-02-19Fix a buffer handling bug when adding lots of registry keysVolker Lendecke1-9/+24
This is *ancient*... From 2002, and nobody noticed until someone added lots of shares using net conf... :-)
2009-02-19s3: re-run make samba3-idl.Günther Deschner6-0/+358
Guenther
2009-02-19spoolss: fill in spoolss_GetPrintProcessorDirectory.Günther Deschner1-1/+17
Guenther
2009-02-19s3-libnet: fix coverity #848 (UNINIT).Günther Deschner1-1/+1
Guenther
2009-02-19s4:librpc/ndr: if uninitialized variable in string_array codeStefan Metzmacher1-1/+1
metze
2009-02-19s3:librpc/ndr: if uninitialized variable in string_array codeStefan Metzmacher1-1/+1
metze