1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
Commit Graph

938 Commits

Author SHA1 Message Date
Alexander Bokovoy
d55980ccad s3-pdb: filter out more symbols only used in ldapsam internals 2012-09-12 08:49:32 +02:00
Alexander Bokovoy
d709748070 s3-passdb: update abi_match and ignore more statically linked functions
Autobuild-User(master): Alexander Bokovoy <ab@samba.org>
Autobuild-Date(master): Mon Sep 10 16:14:50 CEST 2012 on sn-devel-104
2012-09-10 16:14:50 +02:00
Michael Adam
eabe4c8fc4 s3:vfs_default: add basic support for durable handle request and reconnect
We only grant durable handles for CIFS/SMB2 only access,
that means "kernel oplocks", "kernel share modes" and "posix locking"
need to be set to "no".

For now we also don't grant durable handles if delete on close
is active on the handle.

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
Pair-Programmed-With: Volker Lendecke <vl@samba.org>
2012-09-08 19:48:20 +02:00
Alexander Bokovoy
b317f75ea6 s3-smbldap: make smbldap public library and maintain its ABI
Autobuild-User(master): Alexander Bokovoy <ab@samba.org>
Autobuild-Date(master): Fri Sep  7 14:14:30 CEST 2012 on sn-devel-104
2012-09-07 14:14:30 +02:00
Alexander Bokovoy
a43774a257 s3-waf: avoid exporting init symbols from statically linked modules
WAF builds with and without AD DC affect list of statically linked
modules that are added into libpdb. This makes impossible to have
ABI for libpdb that does not depend on configured features.

By making init functions from statically linked modules to have local
scope in shared libraries, we avoid unwarranted ABI changes.

Additionally, pdb_samba_dsdb imports IDMAP subsystem of source4/ as
it is not a shared library. Making its symbols private as well.

Finally, in order to have the filtering of symbols work, libpdb
has to be public library.
2012-09-07 12:31:42 +02:00
Björn Jacke
05f9829ab5 waf: add new quota header checks and sysquota_4B source file
Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Sun Sep  2 23:21:22 CEST 2012 on sn-devel-104
2012-09-02 23:21:22 +02:00
Volker Lendecke
fbebd7530e s3-libsmb: Add a python wrapper
Please note that this is not finished and only for internal use.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-08-16 21:10:32 +02:00
Gregor Beck
31980cf5cb s3:utils: remove standalone cclean tool
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2012-08-16 06:57:08 +10:00
Gregor Beck
1c2bae062d s3:net add command "connections cleanup"
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2012-08-16 06:56:51 +10:00
Andrew Bartlett
0705391ed0 s3-smbd: Move smb_acl_t declaration to smb_acl.idl
This will allow us to marshall this into and from an NDR blob on disk, which will
allow us to fake up ACL support during make test, and to test the NT ACL emulation
using python bindings via the VFS.

Andrew Bartlett
2012-08-15 11:44:44 +10:00
Björn Jacke
13f8674a15 build: rename security → samba-security
there is a libsecurity on OSF1 which clasheѕ with our security lib. see bug #9023.

Signed-off-by: Stefan Metzmacher <metze@samba.org>

Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Fri Aug 10 14:22:21 CEST 2012 on sn-devel-104
2012-08-10 14:22:20 +02:00
Andrew Bartlett
b7b4879350 s3-torture: Extend pdbtest to also run an authentication unit-test
This tests both the builtin auth_sam against passdb directly and the
configured auth module.

Andrew Bartlett
2012-08-08 08:03:21 +02:00
Rusty Russell
d65bded0c2 source3/loadparm.c: Move string_set/string_free inside.
The only user, so make them static inside loadparm.c

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2012-08-07 23:20:05 +10:00
Andrew Bartlett
55a0d6606c s3-pysmbd: Add set_nt_acl() function based on parts of vfstest
This will allow us to set the full NT ACL on a file, using the VFS
layer, during provision of the AD DC.

Andrew Bartlett
2012-08-02 11:35:19 +02:00
Jeremy Allison
b336b8ed58 Remove source3/lib/pidfile.c
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri Jul 20 03:57:20 CEST 2012 on sn-devel-104
2012-07-20 03:57:20 +02:00
Volker Lendecke
3da86cc23f s3: Add tevent_wait_send/recv
To me it seems that we might have this functionality already somewere... I
just can't find it. Metze, do you have an idea?

Signed-off-by: Jeremy Allison <jra@samba.org>
2012-07-18 15:54:20 -07:00
Volker Lendecke
c4efaabbd9 s3: Move the aio_pthread read/write functionality to vfs_default
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-07-18 15:46:29 -07:00
Volker Lendecke
d44ccdd437 libasys
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-07-18 13:47:48 -07:00
Stefan Metzmacher
f7762e2730 s3:smbd: add smbXsrv_open* infrastructure
Pair-Programmed-With: Michael Adam <obnox@samba.org>

metze
2012-06-29 19:11:04 +02:00
Rusty Russell
f3862b9171 ccan: we're subsystems, not a library.
Don't expose a libccan.so; it would produce clashes if someone else
does the same thing.  Unfortunately, if we just change it from a
SAMBA_LIBRARY to a SAMBA_SUBSYSTEM, it doesn't create a static library
as we'd like, but links all the object files in.  This means we get
many duplicates (eg. everyone gets a copy of tally, even though only
ntdb wants it).

So, the solution is twofold:
1) Make the ccan modules separate.
2) Make the ccan modules SAMBA_SUBSYSTEMs not SAMBA_LIBRARYs so we don't
   build shared libraries which we can't share.
3) Make the places which uses ccan explicit.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

Autobuild-User(master): Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date(master): Fri Jun 29 06:22:44 CEST 2012 on sn-devel-104
2012-06-29 06:22:44 +02:00
Stefan Metzmacher
a38d6914af s3:wscript: use LOCKING subsystem for smbtorture3
metze
2012-06-28 10:08:02 +02:00
Gregor Beck
c4be17f804 s3: add a tool "cclean" to cleanup orphaned entries from connections.tdb
Signed-off-by: Michael Adam <obnox@samba.org>
2012-06-27 08:18:18 +02:00
Stefan Metzmacher
c36bd677f3 s3:smbd: add smbXsrv_tcon infrastructure
Pair-Programmed-With: Michael Adam <obnox@samba.org>

metze
2012-06-25 20:55:06 +02:00
Stefan Metzmacher
85f8c14f30 s3:smbd: add smbXsrv_session infrastructure
Pair-Programmed-With: Michael Adam <obnox@samba.org>

metze
2012-06-25 20:55:06 +02:00
Stefan Metzmacher
130436f2fc s3:smbd: add smbXsrv_version_* infrastructure
metze
2012-06-25 20:55:05 +02:00
Stefan Metzmacher
47ddfe2e59 s3:librpc: add smbXsrv.idl
metze
2012-06-25 20:55:05 +02:00
David Disseldorp
ac7b60a17b s3-rpcclient: add fsrvp commands
fss_create_expose connects to an FSRVP server and negotiates the
creation and exposure of a share shadow-copy.
shadow-copies of multiple shares can be requested with a single
fss_create_expose request.

ddiss@plati:~> bin/rpcclient -k -U 'LURCH\administrator%password' \
                             ncacn_np:lutze[sign]
rpcclient $> fss_create_expose backup ro hyper
381884f2-b578-45ea-b8d2-cf82491f4011: shadow-copy set created
...
share hyper@{B6137E21-9CBB-4547-A21D-E7AD40D0874B} exposed as a snapshot
of \\lutze\hyper

fss_delete removes the shadow-copy share:
rpcclient $> fss_delete hyper 381884f2-b578-45ea-b8d2-cf82491f4011 \
                        b6137e21-9cbb-4547-a21d-e7ad40d0874

Shadow-copies can be created read-write or read-only.
Experimenting with Windows Server "8" beta, a recovery complete call is
required after creating a read-write (ATTR_AUTO_RECOVERY) shadow copy.
Otherwise subsequent creation requests fail with
FSRVP_E_SHADOW_COPY_SET_IN_PROGRESS.
2012-06-08 13:34:31 +02:00
Michael Adam
15d567265e build: rename build targets smbclient -> smbclient4 and smbclient3 -> smbclient
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Thu May 31 06:36:55 CEST 2012 on sn-devel-104
2012-05-31 06:36:55 +02:00
Michael Adam
52e1bba861 build: rename build targets nmblookup -> nmblookup4 and nmblookup3 -> nmblookup 2012-05-31 04:46:06 +02:00
Michael Adam
3d504b8a63 s3:build: fix some spacing in wscript_build 2012-05-31 04:46:05 +02:00
Andrew Bartlett
dde4d6fce9 lib/param: Put common FN_ macros into param_functions.c
This will in turn make it possible to put the actual parameter
definitions in common.

Andrew Bartlett
2012-05-30 04:15:12 +02:00
Andrew Bartlett
c691ada709 build: Provide .pc file for libsmbsharemodes
This is not the exact same file as the autoconf build, because of
the differnet processing semantics.

Andrew Bartlett
2012-05-30 04:15:11 +02:00
Andrew Bartlett
3ef62345ab build: Provide .pc file for libnetapi
This is not the exact same file as the autoconf build, because of
the differnet processing semantics.

Andrew Bartlett
2012-05-30 04:15:11 +02:00
Luk Claes
93ed99d6ff s3:libsmb: get rid of clisigning routines
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-28 14:49:51 +02:00
Volker Lendecke
68d03f2ef5 s3: Test whether get_share_mode_lock cleans up stale processes
Signed-off-by: Jeremy Allison <jra@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-25 09:19:39 -07:00
Alexander Bokovoy
2ddf89a2bc Introduce system MIT krb5 build with --with-system-mitkrb5 option.
System MIT krb5 build also enabled by specifying --without-ad-dc

When --with-system-mitkrb5 (or --withou-ad-dc) option is passed to top level
configure in WAF build we are trying to detect and use system-wide MIT krb5
libraries. As result, Samba 4 DC functionality will be disabled due to the fact
that it is currently impossible to implement embedded KDC server with MIT krb5.

Thus, --with-system-mitkrb5/--without-ad-dc build will only produce
  * Samba 4 client libraries and their Python bindings
  * Samba 3 server (smbd, nmbd, winbindd from source3/)
  * Samba 3 client libraries

In addition, Samba 4 DC server-specific tests will not be compiled into smbtorture.
This in particular affects spoolss_win, spoolss_notify, and remote_pac rpc tests.
2012-05-23 17:51:50 +03:00
Alexander Bokovoy
2d9a0d8d0c s3-passdb: add unixid_from_uid/unixid_from_gid/unixid_from_both API
struct unixid is defined in idmap.idl and therefore to use it one
would need generated headers from librpc/gen_ndr. Not all of these
files are installed and available as public headers. Also, they
pull in some support headers which requires them to be available
via specific locations like <librpc/gen_ndr/*> or <libcli/util>.

Instead of pulling the headers to get structure and enum definitions,
introduce three simple helpers to fill in 'struct unixid' based on
the type of id. This is sufficient for PASSDB users and does not
require exposing generated headers or code.
2012-05-23 17:51:50 +03:00
Simo Sorce
c54fe86a63 s4-resolve: Remove dependency on libroken
Use available native samba resolver functions
2012-05-23 17:51:49 +03:00
Simo Sorce
34a65739d3 Move source3/libads/dns.c to lib/addns 2012-05-23 17:51:48 +03:00
Volker Lendecke
f5ca3f11e4 s3: Revert the serverid changes, they need more work
Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Fri May 18 13:12:14 CEST 2012 on sn-devel-104
2012-05-18 13:12:14 +02:00
Jeremy Allison
dc3ace63d4 Fix the waf build with the new "cleans up stale processes" test.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri May 18 00:20:36 CEST 2012 on sn-devel-104
2012-05-18 00:20:36 +02:00
Stefan Metzmacher
70be41c772 s3:onefs: remove all onefs related code as it not maintained anymore
See https://lists.samba.org/archive/samba-technical/2012-May/083631.html
for the discussion.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed May 16 11:23:05 CEST 2012 on sn-devel-104
2012-05-16 11:23:04 +02:00
Björn Baumbach
5f494c424c libcli/smb: move smb2cli_ioctl.c from source3 to the toplevel
Signed-off-by: Stefan Metzmacher <metze@samba.org>

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue May 15 20:17:01 CEST 2012 on sn-devel-104
2012-05-15 20:17:01 +02:00
Björn Baumbach
c16e263d0e libcli/smb: move smb2cli_query_directory.c from source3 to the toplevel
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-15 18:26:00 +02:00
Björn Baumbach
b2d9c02665 libcli/smb: move smb2cli_query_info.c from source3 to the toplevel
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-15 18:26:00 +02:00
Björn Baumbach
22b76de2ff libcli/smb: move smb2cli_set_info.c from source3 to the toplevel
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-15 18:26:00 +02:00
Björn Baumbach
1d7c6bfd7a libcli/smb: move smb2cli_flush.c from source3 to the toplevel
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-15 18:26:00 +02:00
Björn Baumbach
f50fc00306 libcli/smb: move smb2cli_write.c from source3 to the toplevel
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-15 18:26:00 +02:00
Björn Baumbach
269000b1b3 libcli/smb: move smb2cli_read.c from source3 to the toplevel
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-15 18:26:00 +02:00
Stefan Metzmacher
4022edc906 libcli/smb: move smb2cli_close.c from source3 to the toplevel
metze
2012-05-15 18:25:59 +02:00
Stefan Metzmacher
2674d0c458 libcli/smb: move smb2cli_create.c from source3 to the toplevel
metze
2012-05-15 18:25:59 +02:00
Stefan Metzmacher
aca64f642d libcli/smb: move smb2cli_logoff_* from source3 to the top level
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon May 14 17:02:46 CEST 2012 on sn-devel-104
2012-05-14 17:02:46 +02:00
Michael Adam
e945511aae move the dbwrap library to the top level
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Mon May 14 04:04:55 CEST 2012 on sn-devel-104
2012-05-14 04:04:55 +02:00
Günther Deschner
5f05eacd27 allow to use system iniparser library.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed May  9 17:38:33 CEST 2012 on sn-devel-104
2012-05-09 17:38:33 +02:00
Andrew Bartlett
859aa43f73 s3-python: Add python bindings for posix ACL layer
This will allow us to check that posix ACLs work in the s4 provision, and avoid
--use-s3fs if they do not.

Andrew Bartlett
2012-05-08 04:51:59 +02:00
Stefan Metzmacher
9dc31c484a s3:libsmb: add smb2cli_set_info*
metze
2012-05-06 14:50:39 +02:00
Stefan Metzmacher
db39372a11 s3:libsmb: add smb2cli_query_info*
metze
2012-05-06 14:50:39 +02:00
Jelmer Vernooij
d3b4c2c771 UTIL_TDB: lowercase name.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Thu May  3 20:18:22 CEST 2012 on sn-devel-104
2012-05-03 20:18:22 +02:00
Christian Ambach
55870b0bf9 s3:torture: add idmap_tdb_common test code 2012-05-01 09:32:11 +02:00
Stefan Metzmacher
8422ab2609 s3:libsmb: add smb2cli_ioctl*
metze
2012-04-27 08:31:38 +02:00
Andreas Schneider
5b636e5249 s3-waf: Cleanup smbregistry. 2012-04-25 14:16:48 +02:00
Alexander Bokovoy
594e316181 lib/replace: split out GSSAPI from lib/replace/system/kerberos.h into lib/replace/system/gssapi.h
With waf build include directories are defined by dependencies specified to subsystems.
Without proper dependency <gssapi/gssapi.h> cannot be found for embedded Heimdal builds
when there are no system-wide gssapi/gssapi.h available.

Split out GSSAPI header includes in a separate replacement header and use that explicitly
where needed.

Autobuild-User: Alexander Bokovoy <ab@samba.org>
Autobuild-Date: Wed Apr 25 00:18:33 CEST 2012 on sn-devel-104
2012-04-25 00:18:32 +02:00
Simo Sorce
08c733d75f Make krb5 wrapper library common so they can be used all over 2012-04-23 19:20:38 -04:00
Volker Lendecke
99fa29ae09 s3-dbwrap: Add dbwrap_record_watch_send/recv
With this API you can asynchronously wait for a record to be modified
2012-04-19 22:24:18 +02:00
Andrew Bartlett
351c78fc67 s3-xattr_tdb: make xattr_tdb a private library, for use outside vfs_xattr_tdb 2012-04-18 12:05:00 +10:00
Andrew Bartlett
ea5a9b21fb s3-build: move file_id.c into samba3-util and create a private header 2012-04-18 12:05:00 +10:00
Andrew Bartlett
19fb796960 dbwrap: Add dbwrap_tdb to private dbwrap library
Andrew Bartlett
2012-04-18 12:05:00 +10:00
Andrew Bartlett
ee695de1b4 s3-build: Add missing samba3-util dep to tdb-wrap3 2012-04-18 12:05:00 +10:00
Andrew Bartlett
99caee5eef build: Remove more of the s3 special cases in waf: only pidfile.c needs -DCONFIGFILE 2012-04-18 12:04:59 +10:00
Andreas Schneider
e3ffb31554 s3-waf: Add possibility to build with system libsmbclient. 2012-04-17 16:17:35 +02:00
Andreas Schneider
c09c288f7c s3-waf: Fix client/smbclient dependencies. 2012-04-17 16:17:35 +02:00
Volker Lendecke
8ed7ff483c s3: Add smbstatus -N to output the notify db
Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Tue Apr 17 11:54:35 CEST 2012 on sn-devel-104
2012-04-17 11:54:35 +02:00
Volker Lendecke
ae691cd9cc s3: Add two notify benchmark tests 2012-04-17 10:21:02 +02:00
Volker Lendecke
74baae782f s3: Add msg_channel
This is a tevent_based variant of messaging_register
2012-04-17 10:21:01 +02:00
Volker Lendecke
48a485b639 s3: Add a second ctdb connect library
The existing one is not async at all.
2012-04-17 10:21:01 +02:00
Volker Lendecke
bd9178506e s3: Add dbwrap_cache
This is a caching layer for the notify database and potentially for the brlock
database. It caches the parse_record operation as long as the underlying seqnum
does not change.
2012-04-17 10:21:00 +02:00
Volker Lendecke
1e1b6f79b3 s3: Add infrastructure for background jobs 2012-04-17 10:21:00 +02:00
Andrew Bartlett
e715460898 s3-libads: Remove ads_verify_ticket() as it is now unused
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-04-03 17:47:32 +02:00
Andrew Bartlett
c7d29e8cda build: Reduce deps of ntlm_auth
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-04-03 17:47:32 +02:00
Jelmer Vernooij
5ba8adadd3 s3-waf: Use samba3-util library instead of lots of tiny libs.
The smaller libraries are currently all trivial in size and don't have
any dependencies other than samba-util.

Having lots of small private libraries is a pain for packaging,
and there isn't much advantage in this.
2012-03-24 16:42:47 +01:00
Andrew Bartlett
04593da301 build: param must require cups to get the cups headers path in -I 2012-03-15 09:29:02 +11:00
Jelmer Vernooij
26d68c3c28 samba3util: Add ccan to dependency list now that str_checksum() uses a ccan function.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Wed Mar 14 17:55:51 CET 2012 on sn-devel-104
2012-03-14 17:55:50 +01:00
Volker Lendecke
c9870a62f5 s3: Add a new set of andx chain handling routines
This is in preparation of getting rid of chain_reply.
2012-03-10 15:34:11 +01:00
Volker Lendecke
c5c67cacd9 s3: Add a test that makes a chained open break an oplock
Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Wed Feb 29 01:13:03 CET 2012 on sn-devel-104
2012-02-29 01:13:01 +01:00
Matthias Dieter Wallnöfer
0c733221cf s3:wscript_build - fix TDB dependency for source3/lib/util.c
https://bugzilla.samba.org/show_bug.cgi?id=8708

Signed-off-by: Andrew Tridgell <tridge@samba.org>

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Thu Feb 23 01:43:04 CET 2012 on sn-devel-104
2012-02-23 01:43:04 +01:00
Andrew Bartlett
2b511f0e92 s3-librpc: Use gensec_spnego for DCE/RPC authentication
This ensures that we use the same SPNEGO code on session setup and on
DCE/RPC binds, and simplfies the calling code as spnego is no longer
a special case in cli_pipe.c

A special case wrapper function remains to avoid changing the
application layer callers in this patch.

Andrew Bartlett

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-02-16 15:18:42 +01:00
Matthieu Patou
474c02acac s3-waf: add dependency on talloc or it won't build if talloc.h is not in the default include path
The problem occurs only if talloc, tdb and ldb are used as system
libraries and talloc is not installed in a default.

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Fri Feb 10 23:27:29 CET 2012 on sn-devel-104
2012-02-10 23:27:29 +01:00
Andreas Schneider
d03ef6ad91 s3-waf: Link against tdb_compat instead of tdb. 2012-02-07 11:11:47 +01:00
Andreas Schneider
3101d9bc2d s3-libsmb: Remove dead gssapi code.
Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Wed Feb  1 23:29:44 CET 2012 on sn-devel-104
2012-02-01 23:29:44 +01:00
Andreas Schneider
8080dbad78 s3-lib: Fix util_cmdline which doesn't use popt.
This creates its own header file for util_cmdline so it doesn't need to
link against popt.
This should fix linking on FreeBSD.
2012-02-01 21:54:21 +01:00
Jelmer Vernooij
b7d5d01c35 s3/wscript: Fix dependency on gssapi, necessary when there is no system Kerberos.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Wed Feb  1 02:43:11 CET 2012 on sn-devel-104
2012-02-01 02:43:11 +01:00
Simo Sorce
e6c39a292c s3-pdb: Break SECRETS3 dependency on PDB.
This is causing circular depdnendcies that bring libpdb in all code and this is
BAD.

This change 'protects' the sid and guid of the domain by adding a special key
that makes them effectively read only.

Limit this temporarily to the samba 4 build, once it gets some good testing the
samba4 ifdefs can be dropped.

fix pdb dependencies

Signed-off-by: Andreas Schneider <asn@samba.org>
2012-01-27 18:11:10 +01:00
Andreas Schneider
2dd696a5df s3-waf: Create a subsystem for SERVER_MUTEX.
Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Fri Jan 27 12:55:01 CET 2012 on sn-devel-104
2012-01-27 12:55:01 +01:00
Andreas Schneider
022c560cea s3-waf: Add missing dependency of ntlmssp to wbclient. 2012-01-27 11:20:26 +01:00
Amitay Isaacs
5bdadd1501 build: Add missing dependencies on popt
This fixes compilation issues on freebsd where system popt is installed
under /usr/local.

Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Fri Jan 27 08:33:52 CET 2012 on sn-devel-104
2012-01-27 08:33:52 +01:00
Andrew Bartlett
e203b28777 s3-build: Remove FIXME, bigballofmud is no more 2012-01-26 07:06:06 +01:00
Andreas Schneider
67126ed08c s3-waf: Reduce dependencies of winbindd.
Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Wed Jan 25 13:31:19 CET 2012 on sn-devel-104
2012-01-25 13:31:19 +01:00
Andreas Schneider
c85e60bd6a s3-waf: Reduce dependencies of smbd_base. 2012-01-25 11:58:30 +01:00
Andreas Schneider
6d06a310f3 s3-waf: Fix cups dependency in PRINTING. 2012-01-25 11:58:30 +01:00
Andreas Schneider
0dcc51ef80 s3-waf: Add missing dependency to LIBNET. 2012-01-25 11:58:30 +01:00
Andreas Schneider
c4b05ec6e7 s3-waf: Reduce libsmbclient dependencies. 2012-01-25 11:58:29 +01:00
Andreas Schneider
1a4e4f0871 s3-waf: Reduce libnetapi dependencies. 2012-01-25 11:58:29 +01:00
Andreas Schneider
63c7118ae0 s3-waf: Link vlp only against needed subsystems. 2012-01-25 11:58:29 +01:00
Andreas Schneider
2fa6c5e038 s3-waf: Link split_tokens only against needed subsystems. 2012-01-25 11:58:29 +01:00
Andreas Schneider
5b8a22ec95 s3-waf: Link dbwrap_torture only against needed subsystems. 2012-01-25 11:58:29 +01:00
Andreas Schneider
9f917c08e5 s3-waf: Link dbwrap_tool only against needed subsystems. 2012-01-25 11:58:29 +01:00
Andreas Schneider
de1836f586 s3-waf: Link test_lp_load only against needed subsystems. 2012-01-25 11:58:29 +01:00
Andreas Schneider
b295da29b1 s3-waf: Link rpc_open_tcp only against needed subsystems. 2012-01-25 11:58:29 +01:00
Andreas Schneider
27630134ac s3-waf: Link ntlm_auth only against needed subsystems. 2012-01-25 11:58:29 +01:00
Andreas Schneider
1ffc082100 s3-waf: Link versiontest only against needed subsystems. 2012-01-25 11:58:29 +01:00
Andreas Schneider
dc4924b0a0 s3-waf: Link smbfilter only against needed subsystems. 2012-01-25 11:58:29 +01:00
Andreas Schneider
e0da5c955f s3-waf: Link locktest2 only against needed subsystems. 2012-01-25 11:58:29 +01:00
Andreas Schneider
273401733a s3-waf: Link vfstest only against needed subsystems. 2012-01-25 11:58:29 +01:00
Andreas Schneider
9eaeb6ceed s3-waf: Link pdbtest only against needed subsystems. 2012-01-25 11:58:29 +01:00
Andreas Schneider
8438fba08a s3-waf: Link locktest only against needed subsystems. 2012-01-25 11:58:29 +01:00
Andreas Schneider
bbb91314a2 s3-waf: Link sharesec only against needed subsystems. 2012-01-25 11:58:29 +01:00
Andreas Schneider
89c514ab37 s3-waf: Link eventlogadm only against needed subsystems. 2012-01-25 11:58:29 +01:00
Andreas Schneider
ab51d6660e s3-waf: Link smbcquotas only against needed subsystems. 2012-01-25 11:58:29 +01:00
Andreas Schneider
07cc5abb01 s3-waf: Link smbcacls only against needed subsystems. 2012-01-25 11:58:28 +01:00
Andreas Schneider
61c53ebbc1 s3-waf: Link msgtest only against needed subsystems. 2012-01-25 11:58:28 +01:00
Andreas Schneider
7d10eb7430 s3-waf: Link maketest only against needed subsystems. 2012-01-25 11:58:28 +01:00
Andreas Schneider
1fb2ef78c4 s3-waf: Link smbconftort only against needed subsystems. 2012-01-25 11:58:28 +01:00
Andreas Schneider
74d24fa08f s3-waf: Link nmblookup only against needed subsystems. 2012-01-25 11:58:28 +01:00
Andreas Schneider
e9b64f0ac0 s3-waf: Link nmblookup only against needed subsystems. 2012-01-25 11:58:28 +01:00
Andreas Schneider
1fa80f0f29 s3-waf: Link smbget only against needed subsystems. 2012-01-25 11:58:28 +01:00
Andreas Schneider
6f6fb03180 s3-waf: Link pdbedit only against needed subsystems. 2012-01-25 11:58:28 +01:00
Andreas Schneider
dd1b548152 s3-waf: Link smbpasswd only against needed subsystems. 2012-01-25 11:58:28 +01:00
Andreas Schneider
ff8a1f7384 s3-waf: Link smbtree only against needed subsystems. 2012-01-25 11:58:28 +01:00
Andreas Schneider
a07b711bc5 s3-waf: Link smbstatus only against needed subsystems. 2012-01-25 11:58:28 +01:00
Andreas Schneider
05864b08cc s3-waf: Link smbstatus only against needed subsystems. 2012-01-25 11:58:28 +01:00
Andreas Schneider
47da01a487 s3-waf: Link smbta-util only against needed subsystems. 2012-01-25 11:58:28 +01:00
Andreas Schneider
cd035436df s3-waf: Link testparm only against needed subsystems. 2012-01-25 11:58:28 +01:00
Andreas Schneider
3e4e84a8ff s3-waf: Link smbspool only against needed subsystems. 2012-01-25 11:58:28 +01:00
Andreas Schneider
0871a1b212 s3-waf: Link profiles only against needed subsystems. 2012-01-25 11:58:28 +01:00
Andreas Schneider
1d6841decd s3-waf: Link net only against needed subsystems. 2012-01-25 11:58:28 +01:00
Andreas Schneider
84e2a6e632 s3-waf: Link smbclient only against needed subsystems. 2012-01-25 11:58:28 +01:00
Andreas Schneider
2d667bac3f s3-waf: Link rpcclient only against needed subsystems. 2012-01-25 11:58:28 +01:00
Andreas Schneider
17000133f8 s3-waf: Link swat only against needed subsystems. 2012-01-25 11:58:28 +01:00
Andreas Schneider
dd91f0be88 s3-waf: Add missing dependencies to PASSCHANGE. 2012-01-25 11:58:28 +01:00
Andreas Schneider
feab59eb1a s3-waf: Add missing dependencies to LOCKING. 2012-01-25 11:58:27 +01:00
Andreas Schneider
2edf42a8db s3-waf: Link winbindd only against needed subsystems. 2012-01-25 11:58:27 +01:00
Andreas Schneider
005d370a8a s3-waf: Link nmbd only against needed subsystems. 2012-01-25 11:58:27 +01:00
Andreas Schneider
9b71a80316 s3-waf: Link libcli_lsa3 only against needed subsystems. 2012-01-25 11:58:27 +01:00
Andreas Schneider
f83efa73aa s3-waf: Link errors3 only against needed subsystems. 2012-01-25 11:58:27 +01:00
Andreas Schneider
7b9716d20d s3-waf: Link tdb-wrap3 only against needed subsystems. 2012-01-25 11:58:27 +01:00
Andreas Schneider
3ee8b7ac54 s3-waf: Link trusts_util only against needed subsystems. 2012-01-25 11:58:27 +01:00
Andreas Schneider
abc0f11350 s3-waf: Remove dead subsystem LIBNBT. 2012-01-25 11:58:27 +01:00
Andreas Schneider
9321db0c74 s3-waf: Link LIBNET_DSSYNC only against needed subsystems. 2012-01-25 11:58:27 +01:00
Andreas Schneider
0f4031e52f s3-waf: Link LIBNET only against needed subsystems. 2012-01-25 11:58:27 +01:00
Andreas Schneider
72e3252902 s3-waf: Link smbd_base only against needed subsystems. 2012-01-25 11:58:27 +01:00
Andreas Schneider
2efb390ab1 s3-waf: Link libsmb only against needed subsystems. 2012-01-25 11:58:27 +01:00
Andreas Schneider
b1d5dc9195 s3-waf: Link LIBNTLMSSP only against needed subsystems. 2012-01-25 11:58:27 +01:00
Andreas Schneider
a445051449 s3-waf: Remove LIBSMB_ERR completely. 2012-01-25 11:58:27 +01:00
Andreas Schneider
00aa8ef7ff s3-waf: Link samba3core against needed subsystems. 2012-01-25 11:58:27 +01:00
Andreas Schneider
f6c3eab2a6 s3-waf: Don't link param_service against USER_UTIL twice. 2012-01-25 11:58:27 +01:00
Andreas Schneider
6822baa292 s3-waf: Link param only against needed subsystems. 2012-01-25 11:58:27 +01:00
Andreas Schneider
f77680de22 s3-waf: Add missing depcendencies to smbconf. 2012-01-25 11:58:27 +01:00
Andreas Schneider
b111375b4c s3-waf: Remove unneeded PARAM_UTIL dependency. 2012-01-25 11:58:26 +01:00
Andreas Schneider
823d32dabd s3-waf: Replace LIBMSRPC_GEN just with ndr-standard.
There is no need to link against dssetup and spoolss.
2012-01-25 11:58:26 +01:00
Andreas Schneider
8b72c6bfaa s3-waf: Link nss_wins only against needed subsystems. 2012-01-25 11:58:26 +01:00
Andreas Schneider
37e8286a8b s3-waf: Link smbclient only against needed subsystems. 2012-01-25 11:58:26 +01:00
Andreas Schneider
7945deb238 s3-waf: Link netapi only against needed subsystems. 2012-01-25 11:58:26 +01:00
Andreas Schneider
390734acca lib: Remove dead mszip code.
RIP, long live zlib.
2012-01-25 11:58:26 +01:00
Andrew Bartlett
1b6356298c s3-libsmb Use the gse_krb5 gensec module as client
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-01-18 16:23:22 +01:00
Andrew Bartlett
60e1aa701c s3-build: Rework object lists to allow gse gensec module
This also allows the spnego_parse_krb5_wrap() function to be shared.

Andrew Bartlett

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-01-18 16:23:22 +01:00
Günther Deschner
e75c436fe6 s3-passdb: trying to decouple passdb and secrets a little.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Jan 18 14:46:18 CET 2012 on sn-devel-104
2012-01-18 14:46:18 +01:00
Günther Deschner
91c04ea04f s3-waf: fix compile of pdb_ldap as shared module by moving ldap schema helpers to libpdb.so
These helpers are used in other parts of Samba as well (like in idmap and in the
net provision code).

Guenther
2012-01-13 09:29:07 +01:00
Volker Lendecke
6f9442a705 s3: Move the share_mode_lock handling to its own file
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-01-12 23:59:22 +01:00
Andreas Schneider
ad6d8a526e s3-waf: link SECRETS3 only against samba3util. 2012-01-12 15:55:46 +01:00
Andreas Schneider
9bafbf9994 s3-waf: Create a smaller samba3util subsystem. 2012-01-12 15:55:46 +01:00
Andrew Bartlett
138121c516 s3-libsmb: split out auth_generic client functions into auth_generic.c
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-01-11 09:04:56 +01:00
Günther Deschner
aa3fcbbd75 s3-waf: rpcclient does not need libads.so.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Jan  9 12:06:06 CET 2012 on sn-devel-104
2012-01-09 12:06:05 +01:00
Volker Lendecke
0d0141893e s3: Add a test excercising the share mode cleanup routine 2012-01-05 13:09:36 +01:00
Stefan Metzmacher
cbb67e9e2e s3:smbd: remove unused sconn_server_id()
metze
2011-12-16 13:19:33 +01:00
Stefan Metzmacher
715933a3d3 s3:smbd: split ID_CACHE_* message handling into parent and child parts
metze
2011-12-15 08:16:31 +01:00
Andrew Bartlett
c9d929af8b s4-lsarpc handle more info levels in SetInfoTrustedDomain calls
This uses the very helpful conversion functions written for the s3 lsa server
and places these in common.

Andrew Bartlett
2011-12-12 12:57:07 +01:00
Jelmer Vernooij
05bc4de083 Revert making public of the samba-module library.
This library was tiny - containing just two public functions than were
themselves trivial. The amount of overhead this causes isn't really worth the
benefits of sharing the code with other projects like OpenChange. In addition, this code
isn't really generically useful anyway, as it can only load from the module path
set for Samba at configure time.

Adding a new library was breaking the API/ABI anyway, so OpenChange had to be
updated to cope with the new situation one way or another. I've added a simpler
(compatible) routine for loading modules to OpenChange, which is less than 100 lines of code.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Dec  3 08:36:33 CET 2011 on sn-devel-104
2011-12-03 08:36:30 +01:00
Gregor Beck
789aa9aab2 s3:registry: do not use regdb functions during db upgrade
It is importante to not use the database backend implementation
in the upgrade. Otherwise this would only work as long as this
is the newset version. In future versions of the registry, this
(then) intermediate upgrade step would change in behaviour and not
work as expected any more.

Signed-off-by: Michael Adam <obnox@samba.org>
2011-12-03 03:48:31 +01:00
Jeremy Allison
ecd0e86928 Update the waf build system to link with the new PIDL locking code.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Dec  3 00:14:54 CET 2011 on sn-devel-104
2011-12-03 00:14:54 +01:00
Volker Lendecke
1c46fb5c3e s3: Use autogenerated open_files.idl 2011-12-02 22:43:05 +01:00
Stefan Metzmacher
f60b768df4 s3:smb2cli: remove unused smb2cli_negprot()
metze
2011-11-24 19:02:32 +01:00
Stefan Metzmacher
349977e1a0 s3:smb2cli: replace smb2cli_base.c code with the more generic smbXcli_base.c code
metze
2011-11-24 19:02:30 +01:00
Günther Deschner
ad728b25eb s3-waf: remove version from libpdb.so for now.
Guenther
2011-11-21 12:55:04 +01:00
Andrew Bartlett
9524e2fce1 param: calculate server role from security, and security from server role
This allows smb.conf files from either the samba3 or samba4 tradition
to come to the same value of server role, using the information in the
smb.conf file.

This is important so that tools like 'net getlocalsid' work against a
Samba4 AD installation (yes, users have tried this).

Andrew Bartlett

Pair-Programmed-With: Amitay Isaacs <amitay@samba.org>
2011-11-17 00:34:08 +01:00
Günther Deschner
693781db89 s3-waf: create a smbldap.so library.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Nov 16 14:03:05 CET 2011 on sn-devel-104
2011-11-16 14:03:05 +01:00
Günther Deschner
28f8ccbe8b s3: move smbldap_util to pdb_ldap_util.
Guenther
2011-11-16 12:26:26 +01:00
Günther Deschner
6e67073900 waf: convert NDR_NBT into shared library.
Guenther
2011-11-03 18:35:09 +01:00
Günther Deschner
72879f491f nbt: merge in LIBCLI_NDR_NETLOGON helper into NDR_NBT.
Guenther
2011-11-03 18:35:08 +01:00
Günther Deschner
e426f37b64 librpc: only let NDR_NBT depend on NDR_NBT_BUF.
Guenther
2011-11-03 18:35:08 +01:00
Günther Deschner
1c72d3b513 s3-waf: convert libcli_netlogon3 into a private library.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Nov  2 18:34:55 CET 2011 on sn-devel-104
2011-11-02 18:34:54 +01:00
Günther Deschner
54f7667f49 s3-waf: move trusts_util.c code into a private library.
Guenther
2011-11-02 16:59:32 +01:00
Günther Deschner
973e047a94 s3-waf: convert libnet_keytab into a private library.
Guenther
2011-11-02 16:59:32 +01:00
Günther Deschner
1926114358 s3-waf: fix libgpo.so library name.
Guenther
2011-11-02 16:59:32 +01:00
Andrew Bartlett
87354c9a6d lib/util Split samba-modules library into public and private parts
This will allow OpenChange to get at the symbols it needs, without
exposing any more of this as a public API than we must.

Andrew Bartlett
2011-10-28 13:10:28 +02:00
Andrew Bartlett
f31fd31b71 s3-torture run t_strappend tests as LOCAL-sprintf_append 2011-10-28 13:10:28 +02:00
Andreas Schneider
32fb9017ea s3-waf: Don't link uid_wrapper more than once.
The uid_wrapper is linked in globally by default if enabled.
2011-10-27 13:32:02 +02:00
Andrew Bartlett
50e7a8767f torture: Remove unused smbiconv
smbiconv is not used in any test script, and has only had changes
since being introduced by Jelmer to keep it building.

It is also not installed on the system. I have also checked with
Jelmer, who approved the removal.

Andrew Bartlett

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-10-25 17:58:33 +02:00
Stefan Metzmacher
1fa7300037 libcli/smb: move smb_signing.[ch] to the toplevel
metze
2011-10-25 01:47:21 +02:00
Stefan Metzmacher
7ebd4337ac libcli/smb: move source3/libsmb/read_smb.* to the toplevel
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Oct 24 10:18:06 CEST 2011 on sn-devel-104
2011-10-24 10:18:06 +02:00
Stefan Metzmacher
75d146d3ed libcli/smb: move smb_seal.c to the toplevel
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Oct 21 10:22:39 CEST 2011 on sn-devel-104
2011-10-21 10:22:39 +02:00