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

1650 Commits

Author SHA1 Message Date
Stefan Metzmacher
3dde0cbb76 s3:smbd: move all globals and static variables in globals.[ch]
The goal is to move all this variables into a big context structure.

metze
2009-01-08 12:22:21 +01:00
Günther Deschner
b0f7137883 s3-srvsvc: remove all init_srvsvc* functions.
Guenther
2009-01-06 16:02:12 +01:00
Jeremy Allison
1f8b6238dd Attempt to fix crash seen with new CUPS async printcap loading code.
Jeremy.
2009-01-05 13:47:34 -08:00
Stefan Metzmacher
321d875af9 s3: build lib/tevent staticly into samba3
metze
2009-01-05 15:07:36 +01:00
Volker Lendecke
1b328d9820 Add a quick test of wb_trans_send/recv 2009-01-04 16:42:40 +01:00
Volker Lendecke
d933362cb7 Move winbindd/winbindd_reqtrans.c to lib/wb_reqtrans.c 2009-01-04 16:42:40 +01:00
Steven Danneman
8f84d42f72 Make sharesec utility part of the default binary install. 2008-12-28 17:45:21 -08:00
Günther Deschner
43d0a4813b s3-ntsvcs: remove last traces of hand-marshalled NTSVCS.
Guenther
2008-12-17 23:52:42 +01:00
Volker Lendecke
09e6dfb8e8 net lua
This adds a lua command line interpreter with some sample code how to build
your own data types based on our internal data types.

Not meant as the final word, but as a playground for experiments for people.
Might be removed later when we find this turns out to be too awkward.
2008-12-17 12:57:19 +01:00
Volker Lendecke
5659f18b86 Compile liblua 2008-12-17 12:57:18 +01:00
Jelmer Vernooij
e0016b8833 Remove ndrdump - it's available in merged build mode as bin/ndrdump4 and uses the exact same object files there. 2008-12-16 19:08:36 +01:00
Jelmer Vernooij
b5a0c4cefe Share object files for gen_ndr. 2008-12-16 18:56:21 +01:00
Jelmer Vernooij
5317dd50c0 Add new script for building IDL files in librpc/idl, generating both
Samba 3 and Samba 4 output.
2008-12-16 16:32:18 +01:00
Jelmer Vernooij
46e3e84f1a Fix path to ndr_notify.c. 2008-12-16 16:02:05 +01:00
Jelmer Vernooij
ca7e4ce97a Move shared gen_ndr files to librpc/gen_ndr in the root.
At the moment these files are used just by Samba 3, but the next step
will be using them from Samba 4 as well.
2008-12-16 15:59:06 +01:00
Jelmer Vernooij
b2a01ef5dd Consider shared IDL files and Samba3-specific IDL files separately, allow overriding output directory. 2008-12-16 15:42:47 +01:00
Jelmer Vernooij
a7109b183b Merge branch 'master' of ssh://git.samba.org/data/git/samba 2008-12-16 15:36:53 +01:00
Jelmer Vernooij
0f04beff33 Rename dom_sid.idl -> server_id.idl (since it no longer actually contains the dom_sid). No longer include it from security.idl. 2008-12-16 15:36:18 +01:00
Kai Blin
6821d898d7 nsswitch: Move source3 files to top level dir.
Don't move source4 files yet to not confuse git's rename tracking too much.
2008-12-16 13:02:45 +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
Volker Lendecke
2bd8a6e21e Add infrastructure to transfer winbindd_request/response asynchronously 2008-12-08 22:09:33 +01:00
Steven Danneman
85b8cccab0 Add support for OneFS ACLs
Add to the OneFS VFS module, support for NTFS ACLs through the calls:

SMB_VFS_FGET_NT_ACL()
SMB_VFS_GET_NT_ACL()
SMB_VFS_FSET_NT_ACL()

Also create several new onefs specific smb.conf parameters in onefs.h
2008-12-02 20:35:45 -08:00
Tim Prouty
239f815e30 Add OneFS VFS module skeleton.
Also set configure to autodetect OneFS OS and build this VFS module.
2008-12-02 20:35:45 -08:00
Kai Blin
671d68d573 ctags: Ignore source3/includes/proto.h for tags. 2008-11-23 22:21:31 +01:00
Michael Adam
71c782c72a s3-build: do not auto-genereate ndr tables but use checked-in tables.
This removes the build-dependency on perl that was introduced in
commit e0905c3090.

The tables can now be re-built with "make ndr-tables".
This is also called by make samba3-idl to ensure that the tables
are updated after idl changes.

This hopefully fixes the build on some build farm hosts (e.g. gwen).

Michael
2008-11-23 01:16:20 +01:00
Michael Adam
84e37eb5f5 s3 build: don't specify ZLIB_LIBS (i.e. "-lz") in object collections.
This causes make to fail on at least HP-UX and MacOS X with message
"no rule to make target -lz" or similar, when these object collections
are specified in dependencies.

Michael
2008-11-22 23:28:45 +01:00
Bo Yang
a8722a190b i18n/l10n pam_winbind
Signed-off-by: Günther Deschner <gd@samba.org>
2008-11-13 12:43:58 +01:00
Tim Prouty
e6f8fd9945 s3: Add support for make test to use a share dir outside of the prefix dir
Some systems need to have the tdbs (and other files required for samba
to run) on a different filesystem than the share directory that samba
is exporting.

This patch:
- Adds an optional "shrdir" argument to selftest.sh
  - If shrdir is specified it will be used, otherwise the default
    will be used: "<prefix>/tmp"
- Adds a new configure option: --with-selftest-shrdir
- Plumbs shrdir through Makefile.in and configure.in
2008-11-11 19:06:50 -08:00
Jelmer Vernooij
634c87dd77 Merge branch 'master' of ssh://git.samba.org/data/git/samba 2008-11-11 17:11:57 +01:00
Jeremy Allison
8076e50fad Added vfs_acl_tdb.c module to do ACLs completely in userspace. Passes all of RAW-ACLS except for the last test which uses a non-POSIX chown. More testing/documentation to follow.
Jeremy.
2008-11-10 17:57:22 -08:00
Günther Deschner
8f23dff45e s3-samr: remove old samr.idl file.
Guenther
2008-11-10 21:46:31 +01:00
Michael Adam
951cf45ee7 [s3]build: prevent make errors for picky makes when $(EXTRA_ALL_TARGETS) is empty
picky make implementations don't like lines with only tabs in rules or dependencie

Michael
2008-11-10 17:00:22 +01:00
Michael Adam
4c391c94f4 [s3]build: build cifs.upcall at build time instead of at install time.
This is to prevent problems with packaging scripts that pass CFLAGS
to make but not to make install...

Based on a patch for v3-2 by Martin Schwenke <martin@meltin.net>.

Michael
2008-11-10 17:00:04 +01:00
Stefan Metzmacher
0d25517723 s3: security.idl: split of dom_sid stuff into dom_sid.idl
And use the toplevel ndr_sec_helper.c

metze
2008-11-08 08:02:26 +01:00
Stefan Metzmacher
e9b8dd561f s3: build ndr_named_pipe_auth.c
metze
2008-11-06 21:39:15 +01:00
Jeff Layton
32695912dd mount.cifs: use lock/unlock_mtab scheme from util-linux-ng mount prog
The util-linux-ng sources have a good, but rather complex scheme for
locking the mtab before updating it. Mount helpers need to follow the
same scheme. Advisory locking only works if everyone is using the same
locking scheme.

Copy the routines we need from util-linux-ng into a separate source file
and then have mount.cifs and umount.cifs link in this object.

The long term goal is to have these routines in a separate helper
library (libmount). Mount helpers can then dynamically link in that lib.
Until that happens, this should serve as a suitable stopgap solution.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
2008-11-06 15:07:07 -05:00
Günther Deschner
c353c53692 netlogon: add 8bit varients of netr_SamDatabaseID8Bit and netr_DeltaEnum.
Guenther
2008-11-06 18:50:12 +01:00
Jelmer Vernooij
8f763308bc Add *test4 rules to merged build Makefile, to allow running the Samba 4 tests against Samba 4. (doesn't work yet). 2008-11-02 16:38:27 +01:00
Jelmer Vernooij
7ec720af71 Use shared doserr.c. 2008-11-01 17:28:16 +01:00
Günther Deschner
7f8bc6a2d9 errors: share dcerpc error function.
Guenther
2008-10-31 12:42:09 +01:00
Günther Deschner
767202e668 srvsvc: share srvsvc idl between s3 and s4.
Guenther
2008-10-31 02:44:35 +01:00
Günther Deschner
8be9cefd98 netlogon: merge netlogon.idl between s3 and s4.
Guenther
2008-10-29 08:57:53 +01:00
Günther Deschner
d04131c8ec idl: share lsa.idl between s3 and s4.
Guenther
2008-10-27 19:33:23 +01:00
Michael Adam
151dfd9dd1 [s3]build: fix bug #5765 - fix installlibs on solaris by using portable "test -r"
instead of test -e, which /bin/sh on solaris does not know.

Michael
2008-10-27 13:51:47 +01:00
Michael Adam
1c6aa01e1f [s3]build: fix bug #5677 - fix test_{shlibs,nss_modules,pam_modules} on Solaris
and other systems where sh does not support "export FOO=bar"
by separating setting and exporting the variable.

Thanks to Yasuma Takeda <yasuma@osstech.co.jp> for the patch.

Michael
2008-10-27 13:02:35 +01:00
Volker Lendecke
5616480514 Fix "make etags" -- the args list gets really long for s4 with the prefix 2008-10-25 13:33:21 +02:00
Jelmer Vernooij
fe36fe8c3e Use common net utility code (address and sockaddr manipulation). 2008-10-23 20:41:15 +02:00
Jelmer Vernooij
81fabeff2d Use libutil genrand. 2008-10-23 18:46:35 +02:00
Jelmer Vernooij
cf659fa4fe Import talloc_stack into util library. 2008-10-23 17:27:30 +02:00
Günther Deschner
d9f1fff5b3 s3: use shared asn1 code.
Guenther
2008-10-22 21:37:36 +02:00