1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
Commit Graph

610 Commits

Author SHA1 Message Date
Jeremy Allison
b12fbc22ac Fix the examples/VFS build.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Mar  7 15:11:25 CET 2011 on sn-devel-104
2011-03-07 15:11:25 +01:00
Jeremy Allison
286b22cb9a Fix examples/VFS to use correct prototypes for is_offline() and set_offline().
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Mar  7 13:39:17 CET 2011 on sn-devel-104
2011-03-07 13:39:16 +01:00
Björn Jacke
64e06b743b Revert "examples/LDAP: remove overoutdated samba-schema.IBMSecureWay"
This reverts commit 90b0f86d81.

this isn't that outdated at all. Got confused by the splitted oc/at files

Autobuild-User: Björn Jacke <bj@sernet.de>
Autobuild-Date: Tue Mar  1 23:43:51 CET 2011 on sn-devel-104
2011-03-01 23:43:50 +01:00
Björn Jacke
90b0f86d81 examples/LDAP: remove overoutdated samba-schema.IBMSecureWay 2011-03-01 22:46:53 +01:00
Björn Jacke
24e257c87d examples/LDAP: delete unmaintained samba-schema-netscapeds4.x 2011-03-01 22:40:30 +01:00
Sumit Bose
9ebbbb7456 s3-ldap: Add sambaTrustForestTrustInfo to LDAP schemata
Signed-off-by: Günther Deschner <gd@samba.org>
2011-02-16 11:44:06 +01:00
Sumit Bose
ba28fb025f s3-ldap: Update LDAP schemata to include sambaTrustedDomain.
Signed-off-by: Günther Deschner <gd@samba.org>
2011-02-16 11:44:05 +01:00
Jeremy Allison
a674a56a97 Add fdopendir to the VFS. We will use this to reuse a directory fd already open by NtCreateX.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Feb  9 00:55:22 CET 2011 on sn-devel-104
2011-02-09 00:55:22 +01:00
Michael Adam
84bbf9c5a8 examples:createdombj: default prefix to target-type, not "group"
It can be irritating to create users named group00001, group00002, ... :-)

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Thu Dec 30 17:22:57 CET 2010 on sn-devel-104
2010-12-30 17:22:57 +01:00
Jeremy Allison
716ea734e4 Rename vfs operation posix_fallocate to just fallocate and add the vfs_fallocate_mode parameter.
It turns out we need the fallocate operations to be able to both
allocate and extend filesize, and to allocate and not extend
filesize, and posix_fallocate can only do the former. So by defining
the vfs op as posix_fallocate we lose the opportunity to use any
underlying syscalls (like Linux fallocate) that can do the latter
as well.

We don't currently use the non-extending filesize call, but now
I've changed the vfs op definition we can in the future. For the
moment simply map the fallocate op onto posix_fallocate for the
VFS_FALLOCATE_EXTEND_SIZE case and return ENOSYS for the
VFS_FALLOCATE_KEEP_SIZE case.

Jeremy.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Dec 18 08:59:27 CET 2010 on sn-devel-104
2010-12-18 08:59:27 +01:00
Jeremy Allison
5819a36aef Move posix_fallocate into the VFS where it belongs.
Jeremy.
2010-12-02 16:25:59 -08:00
Björn Jacke
9329d0a91e smbprinting: fix wrong == in shell tests 2010-12-02 10:36:06 +01:00
Jeremy Allison
2b788aa6ce Move the uglyness of #ifdef REALPATH_TAKES_NULL into the vfs_default
module, change the signature of VFS_REALPATH to always return a
malloc'ed string.

Needed to make some privileges work I plan on doing shortly
easier to code.

Jeremy.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Nov 20 02:15:50 CET 2010 on sn-devel-104
2010-11-20 02:15:50 +01:00
Andrew Bartlett
e16c9904c6 s3-libsmbclient-examples Add tests for debug behaviour. 2010-11-02 04:36:04 +00:00
Andrew Tridgell
eccb22c9fb doc: patched bind9 is no longer needed
bind9.7.2rc1 contains all the patches needed to work with Samba4 krb5
DNS updates with w2k8r2.
2010-09-02 13:37:07 +10:00
Günther Deschner
6864a3e986 s3-ldapsam: add samba.ldif LDAP schema.
This one is suiteable for cn=config setups and should be added via ldapadd.

Thanks to Sumit Bose <sbose@redhat.com> for providing it.

Guenther
2010-08-19 14:24:51 +02:00
Andreas Schneider
66b6a8cf62 s3-auth: Remove obsolete 'update encrypted' option. 2010-08-16 12:48:27 +02:00
Günther Deschner
5815119cb0 s3-perfcount: make it possible to compile the example perfcount daemon.
Guenther
2010-07-16 23:00:17 +02:00
Andrew Bartlett
cba7f8b827 s3:dom_sid Global replace of DOM_SID with struct dom_sid
This matches the structure that new code is being written to,
and removes one more of the old-style named structures, and
the need to know that is is just an alias for struct dom_sid.

Andrew Bartlett

Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-21 10:39:59 +02:00
Karolin Seeger
fce533e3be examples: Fix typo in comment.
Karolin
2010-04-13 20:07:11 +02:00
Jeremy Allison
c61c9c3a4c Fix for bug #7189 - Open txt files with notepad on samba shares creates problem.
Ensure we don't use any of the create_options for Samba private
use. Add a new parameter to the VFS_CREATE call (private_flags)
which is only used internally. Renumber NTCREATEX_OPTIONS_PRIVATE_DENY_DOS
and NTCREATEX_OPTIONS_PRIVATE_DENY_FCB to match the S4 code).
Rev. the VFS interface to version 28.

Jeremy.
2010-03-05 15:13:37 -08:00
Andrew Tridgell
5c716146e8 examples: add bind9 patches for TSIG-GSS support
We will point at these from the Samba4 HOWTO
2010-02-17 19:43:32 +11:00
Christian Ambach
e1a1468dd7 update samba schema for IBM Directory Server
this increases the sambapasswordhistory field length to 64 and
fixes a warning about a wrong booleanmatch setting

Signed-off-by: Christian Ambach <christian.ambach@de.ibm.com>
2010-02-03 14:49:05 +01:00
Karolin Seeger
fe01e0e1a5 examples: Fix the build of the example VFS modules.
Karolin
2009-12-07 10:15:49 +01:00
Günther Deschner
a8d9c64e0f adssearch: dump some more nttime timestamps.
Guenther
2009-10-28 12:37:39 +01:00
Kai Blin
3703890596 AD-Bench: A first go at an Active Directory benchmark. 2009-10-07 15:45:46 +02:00
Günther Deschner
cd82d4ba56 s3: add perfcount idl and generated files.
Guenther
2009-10-01 12:19:43 +02:00
Jeremy Allison
8762254c7e Fix the opaque sample module for the new VFS interface.
Jeremy.
2009-09-25 22:19:27 -07:00
Jeremy Allison
2f1835eb8c Update the advice for the new VFS system.
Jeremy.
2009-09-25 22:02:18 -07:00
Jeremy Allison
2d13513796 Remove unused static fn.
Jeremy.
2009-09-25 21:43:13 -07:00
Jeremy Allison
a77b5d2a97 Rewrite vfs_transparent example for the new VFS changes.
Jeremy.
2009-09-25 21:39:52 -07:00
Jeremy Allison
0959ae9276 Fix vfs module sample for new interface.
Jeremy.
2009-09-25 20:51:50 -07:00
Michael Adam
d106e728fb examples/LDAP: remove sambaAccountPolicy from the IBM-DS schema.
Michael
2009-09-14 14:51:21 +02:00
Björn Jacke
7748d3098a s3:examples:ldap: allow substing search on more attributes in nds schema file 2009-09-09 20:09:12 +02:00
Björn Jacke
adca9f681c s3:examples:ldap: fix some OIDs in various schema files 2009-09-09 19:14:28 +02:00
Günther Deschner
8a5cc1317a s3-ldap: Fix Bug #5879. Update LDAP schema for Netscape DS 5.
Patch from TAKEDA Yasuma <yasuma@osstech.co.jp>.

Guenther
2009-08-06 17:19:44 +02:00
Jelmer Vernooij
27087e6a87 VFS examples: Update copy of config.{guess,sub}. 2009-07-18 20:04:11 +02:00
Günther Deschner
2260cdbb53 s3-ldapsam: bring Fedora DS LDAP schema in line with OpenLDAP schema.
Guenther
2009-07-16 03:05:45 +02:00
Tim Prouty
3cb0e521e1 s3: Plumb smb_filename through SMB_VFS_NTIMES 2009-07-06 15:38:42 -07:00
Tim Prouty
258952aa85 s3: Plumb smb_filename through SMB_VFS_UNLINK 2009-07-06 15:38:36 -07:00
Tim Prouty
5a09ba460c s3: Plumb smb_filename through SMB_VFS_RENAME 2009-07-06 15:38:29 -07:00
Günther Deschner
ebf0af0bc7 s3-examples: make get_next_oid exectuable.
Guenther
2009-06-25 11:04:05 +02:00
Tim Prouty
e129384d7c s3: Plumb smb_filename through SMB_VFS_STAT and SMB_VFS_LSTAT
This patch introduces two new temporary helper functions
vfs_stat_smb_fname and vfs_lstat_smb_fname.  They basically allowed me
to call the new smb_filename version of stat, while avoiding plumbing
it through callers that are still too inconvenient.  As the conversion
moves along, I will be able to remove callers of this, with the goal
being to remove all callers.

There was also a bug in create_synthetic_smb_fname_split (also a
temporary utility function) that caused it to incorrectly handle
filenames with ':'s in them when in posix mode.  This is now fixed.
2009-06-24 21:15:25 -07:00
Andrew Tridgell
4c23a95565 added some basic documentation for the idmap script option 2009-06-19 13:58:28 +10:00
Andrew Tridgell
e5a15e6589 added a sample script for the "idmap script" option 2009-06-19 13:58:28 +10:00
Andrew Kroeger
71515ba190 s4: Call va_end() after all va_start()/va_copy() calls.
This corrects the issues reaised in bug #6129, and some others that were not
originally identified.  It also accounts for some code that was in the original
bug report but appears to have since been made common between S3 and S4.

Thanks to Erik Hovland <erik@hovland.org> for the original bug report.
2009-06-18 13:49:25 +10:00
Tim Prouty
4e3656b8d1 s3: Change SMB_VFS_OPEN to take an smb_filename struct
This was a little messy because of all of the vfs modules I had to
touch.  Most of them were pretty straight forward, but the streams
modules required a little attention to handle smb_filename.  Since the
use of smb_filename enables the vfs modules to access the raw,
over-the-wire stream, a little bit of the handling that was being done
by split_ntfs_stream_name has now been shifted into the individual
stream modules.  It may be a little more code, but overall it gives
more flexibility to the streams modules, while also allowing correct
stream handling.
2009-06-17 20:11:53 -07:00
Björn Jacke
9b5d905ebe examples:s2→s3-ldif-convert-script: fix objectclass recognition
objectclasses are case insensitive. we used to convert only LDAP objects with
the typical UpperLower case for sambaAccount and sambaGroupMapping and ignored
any other case writings
2009-06-12 18:46:46 +02:00
Günther Deschner
381f88f081 s3-examples: fix usage for eventlog example script.
Guenther
2009-06-08 19:56:50 +02:00
Günther Deschner
6fe012ff78 s3-examples: make sure to match correct key name in adssearch.
Guenther
2009-04-15 22:49:57 +02:00