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

49851 Commits

Author SHA1 Message Date
Günther Deschner
138283c7c1 s3-libnet: fix DEBUG statement in libnet_keytab.
Guenther
2008-12-11 15:21:54 +01:00
Jeremy Allison
d7d525bc9d Make the LookupRid access check match LookupName until
we know the correct bits to use here.
Jeremy.
2008-12-10 17:03:53 -08:00
Jeremy Allison
c4c6e1e463 Fix usrmgr opening a user object as non-root.
Jeremy.
2008-12-10 15:29:14 -08:00
Volker Lendecke
1c6a87604f Fix the build
Crap, too many trees and no instant, infinitely fast rebuild

Signed-off-by: Michael Adam <obnox@samba.org>
2008-12-11 00:00:50 +01:00
Volker Lendecke
57a9380f7b Also search for -lgpfs which is available as GPL in GPFS PTF8
(cherry picked from commit 3c93c96fd0)

Signed-off-by: Michael Adam <obnox@samba.org>
2008-12-10 23:58:25 +01:00
Volker Lendecke
110bb22449 Make use of smbd_gpfs_get_realfilename_path in unix_convert
(cherry picked from commit b37684ffce)

Signed-off-by: Michael Adam <obnox@samba.org>
2008-12-10 23:57:23 +01:00
Volker Lendecke
de8bb17255 Fix nonempty blank lines in vfs_gpfs.c
Signed-off-by: Michael Adam <obnox@samba.org>
2008-12-10 23:56:17 +01:00
Volker Lendecke
8e0cce5b38 s3:modules/gpfs: Fix nonempty blank lines 2008-12-10 23:33:02 +01:00
Michael Adam
f4f477f432 packaging(RHEL-CTDB): explicitly build the gpfs module
to prevent potetential problems on PTF8 systems where there
is no valid autodetecting configure check yet.

Michael
(cherry picked from commit 37039d345e9a25654bef038f2b8bb4b891cfa6f0)

Signed-off-by: Michael Adam <obnox@samba.org>
2008-12-10 23:28:55 +01:00
Michael Adam
e0a0b0a0cb packaging(RHEL-CTDB): adapt configure.rpm to changes to the spec file
Michael
(cherry picked from commit d249a9ca2a1761f20655cbcfe39fbc942547974d)

Signed-off-by: Michael Adam <obnox@samba.org>
2008-12-10 23:27:57 +01:00
Andreas Schneider
94c44fcb6b Move the doxygen comments of wbclient to the header file.
So that a developer who wants to use the wbclient api can read
the documentation in the header file.

Signed-off-by: Andreas Schneider <anschneider@suse.de>
Signed-off-by: Michael Adam <obnox@samba.org>
2008-12-10 23:23:36 +01:00
Volker Lendecke
7c2bdead9e Revert "Fix some merge omissions for GPFS"
This reverts commit a0efc4cffb.

This one should have been done with careful cherry-picks, sorry.

Volker
2008-12-10 23:14:46 +01:00
Volker Lendecke
8d64182659 Revert "Fix nonempty blank lines in vfs_gpfs.c"
This reverts commit a4b52118d4.
2008-12-10 23:14:16 +01:00
Volker Lendecke
1896ccb247 Revert "Make use of smbd_gpfs_get_realfilename_path in unix_convert"
This reverts commit b37684ffce.
2008-12-10 23:14:01 +01:00
Volker Lendecke
0114cb52ca Revert "Also search for -lgpfs which is available as GPL in GPFS PTF8"
This reverts commit 3c93c96fd0.
2008-12-10 23:13:48 +01:00
Volker Lendecke
7ad9676864 Revert "Fix the build"
This reverts commit c044b09572.
2008-12-10 23:13:34 +01:00
Volker Lendecke
c044b09572 Fix the build
Crap, too many trees and no instant, infinitely fast rebuild
2008-12-10 19:02:11 +01:00
Volker Lendecke
3c93c96fd0 Also search for -lgpfs which is available as GPL in GPFS PTF8 2008-12-10 18:30:28 +01:00
Volker Lendecke
b37684ffce Make use of smbd_gpfs_get_realfilename_path in unix_convert 2008-12-10 18:30:23 +01:00
Volker Lendecke
a4b52118d4 Fix nonempty blank lines in vfs_gpfs.c 2008-12-10 18:28:43 +01:00
Volker Lendecke
a0efc4cffb Fix some merge omissions for GPFS 2008-12-10 18:27:10 +01:00
Volker Lendecke
21b9dec990 Pass the get_real_filename operation through the VFS
This is done to help file systems that can tell us about the real upper/lower
case combination given a case-insensitive file name. The sample I will soon
push is the gpfs module (recent gpfs has a get_real_filename function), others
might have a similar function to help alleviate the 1million files in a single
directory problem.

Jeremy, please comment!

Thanks,

Volker
2008-12-10 18:05:26 +01:00
Volker Lendecke
31543640e6 Change get_real_filename() to unix syscall conventions, make it non-static
It sets errno, so it might as well return 0/-1.
2008-12-10 17:45:43 +01:00
Volker Lendecke
c7521b25e9 Apply some const 2008-12-10 17:45:43 +01:00
Volker Lendecke
6bb2fff0c1 Rename "scan_directory" to "get_real_filename" 2008-12-10 17:45:43 +01:00
Günther Deschner
9ea4b5aac2 s4-smbtorture: skip ServerGetTrustInfo for samba4.
Guenther
2008-12-10 12:47:05 +01:00
Günther Deschner
b431406357 s3-netlogon: fix netlogon server build.
Guenther
2008-12-10 11:58:28 +01:00
Günther Deschner
e580420490 s3-build: re-run make samba3-idl.
Guenther
2008-12-10 11:58:28 +01:00
Günther Deschner
c4a5788e82 s4-smbtorture: add simple netr_ServerGetTrustInfo test.
Guenther
2008-12-10 11:58:28 +01:00
Günther Deschner
9fa4dfc4ea s4-netlogon: fix the build of netlogon server.
Guenther
2008-12-10 11:58:28 +01:00
Günther Deschner
5903206bab netlogon: fill in netr_ServerGetTrustInfo IDL.
Guenther
2008-12-10 11:58:27 +01:00
Andrew Bartlett
cbe6e2a776 Add AD schema from Microsoft's WSPP documentation.
This schema is *NOT* licenced under a standard Free Software licence,
but does provide us the freedoms we need to use the schema, and the
requirement to distribute as 'part of an implemenation' is similar to
common Free font licences that are accepted by major linux distributions.

Andrew Bartlett
2008-12-10 17:54:06 +11:00
Tim Prouty
7b9f6dda13 s3: [3/3]: Fix a delete on close divergence from windows and the associated torture test
This third patch cleans up by removing all of the code that is made
obsolete by the first patch.  It should cause no functional changes.
2008-12-09 18:06:49 -08:00
Tim Prouty
4a9b092eb4 s4: [2/3] Fix a delete on close divergence from windows and the associated torture test
This second patch fixes the deltest17 BASE-DELETE torture test to pass
against win2k3/win2k8/winXPsp2
2008-12-09 18:02:31 -08:00
Tim Prouty
a5651848b2 s3: [1/3] Fix a delete on close divergence from windows and the associated torture test
smbtorture4's BASE-DELETE:deltest17 was failing against win2k8,
win2k3, and winXPsp2 but passing against samba.

deltest17 does the following:

1. open file -> file is created
2. closes file
3. open file with DOC -> fnum1
4. check that DOC is not reported as being set from fnum1
5. opens file again Read Only -> fnum2
6. check that DOC is not reported as being set from either file handle
7. close fnum1 (the file handle that requested DOC to be set)
8. check if DOC is reported as being set from fnum2
 * This is where windows and samba begin to diverge.  Windows
   reports that the DOC bit is set, while samba reports that it is not set.
9. close fnum2 (the last remaining open handle for the file)
10.See if the file has been deleted.
 * On samba the file still exists.  On windows the file was deleted.

The way open_file_ntcreate is written now, if an open has the DOC bit
set on the wire, DOC (fsp->initial_delete_on_close) is not set unless:
a. the open creates the file, or b. there is an open file handle with
a share_entry in the struct lck that has the
SHARE_MODE_ALLOW_INITIAL_DELETE_ON_CLOSE bit set (let's call it
SM_AIDOC).

My understanding of SM_AIDOC is that it was added to differentiate
between DOC being set on an open that creates a file vs an open that
opens an existing.  As described in step 8/10 above, it appears that
windows does not make this differentiation.

To resolve this issue there are three patches.  This first patch is a
simple proof of concept change that is sufficient to fix the bug.  It
removes the differentiation in open_file_ntcreate, and updates
deltest17 to allow it to pass against win2k3/xp.  This makes
open_file_ntcreate more closely match the semantics in open_directory
and rename_internals_fsp.  This change also does not break any other
tests in BASE-DELETE or "make test".  Specifically test deltest20b
which verifies the CIFSFS rename DOC semantics still passes :).
2008-12-09 18:02:31 -08:00
Matthias Dieter Wallnöfer
6e4cc12604 s4-samr: Fix Bug #5946. userparameters handling in torture test.
Signed-off-by: Günther Deschner <gd@samba.org>
2008-12-10 00:07:25 +01:00
Matthias Dieter Wallnöfer
91bfd5f201 s4-samr: Fix Bug #5946. userparameters handling in samr server.
Signed-off-by: Günther Deschner <gd@samba.org>
2008-12-10 00:07:25 +01:00
Tim Prouty
e0711ffa52 s3: Add the OneFS SMB_VFS_CREATE_FILE implementation
This is the first pass at extending the onefs vfs module to support
the CIFS-specific enhancements available on OneFS.  Most of this patch
is massaging the sama open path to work with ifs_createfile.

ifs_createfile is a CIFS-specific syscall for opening/files and
directories.  It adds support for:
- Full in-kernel access checks using a windows access_mask
- Cluster-coherent share mode locks
- Cluster-coherent oplocks
- Streams
- Setting security descriptors at create time
- Setting dos_attributes at create time

This patch does not implement the samba side of the streams support or
oplocks support.  Tests that expect oplocks to be granted or streams
to be supported will fail.  This will be remedied in upcoming patches.
2008-12-09 14:51:48 -08:00
Tim Prouty
51e7f79b3b s3: Add onefs_open.c with code copied verbatim from smbd/open.c
This is an intermediate step that makes it much easier to see how the
OneFS SMB_VFS_CREATE_FILE implementation diverges from stock samba.
The goal is that more common code can be refactored into utility
functions.
2008-12-09 14:51:48 -08:00
Tim Prouty
b3c785f22e s3: Call fd_close from close_directory
Some implementations of SMB_VFS_CREATE_FILE implementations actually
keep an fd open for directories just as files.  In this case it is
necessary to call fd_close when closing directories.  This is safe
because fd_close is a no-op when fd == -1, which is true for directory
opens originating from open.c (the default SMB_VFS_CREATE_FILE
implementation).
2008-12-09 14:51:48 -08:00
Tim Prouty
2053f77b3c s3: Refactor calculating path from relative_fid into a separate function 2008-12-09 14:51:48 -08:00
Tim Prouty
6153f622af s3: Refactor getting sec_info from a security_descriptor into separate function 2008-12-09 14:51:48 -08:00
Tim Prouty
d5d9d3dc0e s3: Make a few open utility functions non-static
This allows vfs modules that implement SMB_VFS_CREATE_FILE to access
some of the useful utility functions.
2008-12-09 14:51:47 -08:00
SATOH Fumiyasu
f62e0d6c96 Fix bug #5688 LPQ process is orphaned if socket address parameter is invalid 2008-12-09 14:26:22 -08:00
Günther Deschner
9203954428 s3-ldapsam: Fix Bug 5957: do not abort rename process on valid rename script.
Guenther
(cherry picked from commit 26139344fd)
(cherry picked from commit 866efa63a2)
2008-12-09 17:41:26 +01:00
Stefan Metzmacher
3508a66fcd s4:rpc_server: don't keep half finished dcesrv_connection_contexts
metze
2008-12-09 17:05:48 +01:00
Günther Deschner
c8b0196c95 s3-libnet: fix build warning (missing prototype).
Guenther
2008-12-09 15:07:47 +01:00
Stefan Metzmacher
03dba698a0 s4:rpc_server: initialize rpc server module also for the named pipe case
This fixes bug #5878.

metze
2008-12-09 13:59:02 +01:00
Günther Deschner
8608fd87b0 s3-samr: a level 18 password set needs to set the pwdlastset as well.
Guenther
2008-12-09 13:20:36 +01:00
Günther Deschner
89e57a8fad s3-srvsvc: fix build warning.
Guenther
2008-12-09 12:41:00 +01:00