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

1332 Commits

Author SHA1 Message Date
Günther Deschner
8f65326e99 Build libnetapi shared and static if possible.
Guenther
(This used to be commit 11e90dcbf5)
2007-12-21 15:29:10 +01:00
Günther Deschner
749f699f87 Build fixes for libnetapi.
Guenther
(This used to be commit 07d33557b9)
2007-12-21 15:29:10 +01:00
Günther Deschner
5799dcdfed Add _wkssvc_NetrJoinDomain2() server.
Guenther
(This used to be commit 9b0423e7d9)
2007-12-21 15:29:10 +01:00
Günther Deschner
5bf7319ac4 Add libnet_Join().
Heavily based on existing code in net_ads_join().

Guenther
(This used to be commit fb6315b68b)
2007-12-21 15:29:10 +01:00
Günther Deschner
1b5c1ae742 Very quick conversion of net_conf functions into the libnet_conf layer.
Certainly needs cleanup later.

Guenther
(This used to be commit 2b41ac926d)
2007-12-21 15:29:09 +01:00
Günther Deschner
8edf48bbf7 For the fun of it, build netapi.so|.a.
Guenther
(This used to be commit 8cbc6bdede)
2007-12-21 15:29:09 +01:00
Volker Lendecke
cd893dd365 Today is not my day...
dmapi.c certainly did compile now...
(This used to be commit 93f3a1172a)
2007-12-19 16:30:36 +01:00
Volker Lendecke
f427d4ce65 Add a in-memory cache
This is a more general API that caches data with a LRU scheme. See
include/cache.h. No comments yet, I'm still working on it. But Jeremy has given
me a hint in one of his checkins that he would like to make use of this now.

The idea is that we get rid of all our silly little caches and merge them all
into one cache that we can then very easily trim, for example even with a
smbcontrol message if someone decides memory is tight. The main user is the
stat cache, this patch also converts the getwd cache. More caches to come.
(This used to be commit 7a911b3571)
2007-12-18 09:56:04 +01:00
Rishi Srivatsavai
bf2c5e2bde Add smbclient support for basic mDNS browsing.
Patch from Rishi Srivatsavai (bugzilla #4150), with tallocification
and minor syle changes by me.
(This used to be commit db74b99d0e)
2007-12-17 22:09:09 -08:00
Volker Lendecke
7ec9ee0e05 Remove t_doschar.c
(This used to be commit b89f87242b)
2007-12-17 07:18:30 +01:00
Stefan Metzmacher
873f14ae40 winbindd: move domain child specific stuff into its own file
metze
(This used to be commit 075d315e0f)
2007-12-14 08:28:35 +01:00
Rishi Srivatsavai
12ac4c3119 Register the smb service with mDNS if mSDN is supported.
If mDNS is supported, attempt to register the first port we are
listening on for the _smb._tcp service. This provides more reliable
service discovery than NetBIOS browsing.
(This used to be commit 1e7241517d)
2007-12-13 20:56:29 -08:00
James Peach
fa8966690b Autoconf support for detecting DNS Service Discovery support.
Patch from Rishi Srivatsavai <rishisv@gmail.com>, with some
adaptations.
(This used to be commit 2dfe9525b9)
2007-12-12 19:55:20 -08:00
Günther Deschner
353dba47df When building nsswitch, make sure to also build smbcontrol.
Guenther
(This used to be commit 3954313d4e)
2007-12-11 15:26:09 +01:00
Kai Blin
5c1e5b30a5 vlp: Build vlp (virtual line printer) against current git on make
everything.
(This used to be commit 212ab58a3a)
2007-12-11 11:53:57 +01:00
Volker Lendecke
d5ab80054d dbwrap_rbt
This is meant as a replacement for the internal tdb. To me it seems a bit silly
that for in-memory structures we do our own memory management. With this rbt
based approach we can make use of the system-supplied malloc.
(This used to be commit 54e5d44046)
2007-12-10 16:06:32 +01:00
Volker Lendecke
8a8b146ead Make the Linux rbtrees compile within Samba
(This used to be commit c871fd802f)
2007-12-10 16:06:32 +01:00
Jeremy Allison
c281ff715b After conversations with Jerry, remove smbctool until it's
maintained. Now I don't have to fix the pstrings in it :-).
Jeremy.
(This used to be commit 9da4f40843)
2007-12-07 12:46:55 -08:00
Jeremy Allison
acf15ae730 Don't build rpctorture anymore - not maintained. Just remove.
Remove all vestiges of pstring (except for smbctool as noted
in previous commit).
Jeremy
(This used to be commit 4c32a22ac5)
2007-12-07 12:26:32 -08:00
Jeremy Allison
9e8180b983 Remove pstrings completely except for smbctool (what does this do ?).
Don't build this for now.
Jeremy.
(This used to be commit 46b67fd82c)
2007-12-07 12:02:44 -08:00
Jeremy Allison
761cd24982 Missed smbmnt popt.
Jeremy.
(This used to be commit da558a7bdb)
2007-12-06 18:51:10 -08:00
Jeremy Allison
9fdf2d0586 Get closer to building with smbmount. Move parameter line changes
into lib/util.c
Jeremy.
(This used to be commit 6ac5d81655)
2007-12-06 18:49:39 -08:00
Jeremy Allison
e67a6620a7 Add popt to binaries in makefile. Hack clitar to compile until I fix it.
Jeremy.
(This used to be commit 252ef28bb8)
2007-12-06 18:08:01 -08:00
Igor Mammedov
44a59c41cf * Adds support for cifs.spnego helper into configure and Makefile.in
* Added checks for spnego prereq keyutils.h and kerberos in configure.in

Signed-off-by: Igor Mammedov <niallain@gmail.com>
(This used to be commit f802db70b8)
2007-12-05 14:33:21 -05:00
Günther Deschner
9cc7b8e2a0 Reanimate rpcclient wkssvc command.
Guenther
(This used to be commit 1d615e3ac3)
2007-12-03 13:08:20 +01:00
Günther Deschner
a43e3f98ad Add "net dom" command suite to "net".
Guenther
(This used to be commit a41f9aef84)
2007-11-30 22:25:01 +01:00
Günther Deschner
a51e682a21 Add NetJoinDomain call.
Guenther
(This used to be commit 08a5a036ba)
2007-11-30 22:25:01 +01:00
Günther Deschner
4b9f336a62 Move param helper routines to one place.
Guenther
(This used to be commit 6bf2c8038c)
2007-11-30 22:25:01 +01:00
Volker Lendecke
1faeda8aab Do not link in SOCKET_WRAPPER_OBJ twice
(This used to be commit 99b3289aa4)
2007-11-22 16:00:13 +01:00
Gerald (Jerry) Carter
9d42000b7e Fix unresolved symbols in smbumount from addition of talloc_stackframe().
(This used to be commit 6b62b7dbab)
2007-11-21 10:27:01 -06:00
Stefan Metzmacher
84df457860 use samba4's librpc/ndr/uuid.c
metze
(This used to be commit c148e91fde)
2007-11-09 11:51:20 +01:00
Stefan Metzmacher
702d227433 make test: start winbindd
metze
(This used to be commit 8ad4287cca)
2007-11-09 09:53:03 +01:00
Stefan Metzmacher
cfec6c3083 make test: activate nss_wrapper for make test
metze
(This used to be commit 02cfd28362)
2007-11-09 09:53:02 +01:00
Stefan Metzmacher
8322aa6977 use nss_wrapper code in samba3 when --enable-nss-wrapper is given
metze
(This used to be commit 9682792962)
2007-11-09 09:52:58 +01:00
Michael Adam
7d899b5e7b Move some access check functions that are not posix-acl specific
to a new source file of their own.

Michael
(This used to be commit 9dd18bb534)
2007-11-06 19:32:10 +01:00
Gerald (Jerry) Carter
8132a7b98b Patch from Debian Samba package maintainers:
Patch 1 of 3:

- Patch 1 adds the new variables
- Patch 2 makes uses of them for files belonging to the "state" path
  and the "code pages" path
  This patch seemed more easily acceptable, which explains why we
  separated it from patch 3
- Patch 3 reassigns files to the "cache" path. Indeed all "debatable"
  changes have been moved to that one

The point is adding:

- a path for non discardable state data: basically all TDB files
  that may need to be backed up
- a path for shared data: mostly codepage stuff
- a path for cache data to host files such as
  browse.dat, printers.tbd, <printer>.tdb

All these are currently mixed in "libdir" (${prefix}/lib/samba by default).
The patch keeps these new paths to point to ${prefix}/lib/samba by default
and does therefore not change the software behaviour.  Used alone, it just
adds unused variables...so it can safely be used in sources without any
behaviour change and no impact on Samba developers work.
(This used to be commit b7d2fadbef)
2007-11-01 13:00:10 -04:00
Jeremy Allison
488b59cfac Add in the recvfile entry to the VFS layer with a default
implementation. Needed for the zero-copy write code.
Jeremy.
(This used to be commit bfbdb6324c)
2007-10-29 17:16:13 -07:00
Volker Lendecke
a97b33baad Two patches
Hi!

Can you check and push them?

Thanks,

Volker

From b488af5905e2dee12a1a72a3b40801ae5c26f24f Mon Sep 17 00:00:00 2001
From: Volker Lendecke <vl@sernet.de>
Date: Sat, 27 Oct 2007 14:20:09 +0200
Subject: [PATCH] Fix some warnings and errors
(This used to be commit e17d3e10e8)
2007-10-27 12:50:36 -07:00
Andrew Tridgell
e5830c1365 added a syncops VFS module for filesystems which do not guarantee meta-data operations are immediately committed to disk in stable form. Essential for clustered Samba setups
(This used to be commit 8b19cb17b9)
2007-10-23 20:43:27 +10:00
Stefan Metzmacher
6ded271f77 r25570: move code of the locator child into its own file
metze
(This used to be commit 56640908a6)
2007-10-22 08:46:10 +02:00
Stefan Metzmacher
1e9e1b6fca r25568: move idmap related functions into their own file.
the final goal is to have 3 child dispatch tables
'domain', 'idmap' and 'locator' instead of one.

metze
(cherry picked from commit 97c63f1b95)
(This used to be commit a1c354866c)
2007-10-22 08:46:10 +02:00
Stefan Metzmacher
0bb74d2f8c remove unused print_test.c code
metze
(This used to be commit 9e5ad21e67)
2007-10-13 15:09:24 +02:00
Jelmer Vernooij
98075c5542 Merge branch 'v3-2-stable' into my_branch
(This used to be commit 754671b8be)
2007-10-12 19:41:01 +02:00
Jelmer Vernooij
20d1141ed8 Fix valgrind window title.
(This used to be commit 4ac867f558)
2007-10-12 18:42:45 +02:00
Guenther Deschner
6b441e9e74 Rename krb5 locator plugin to "winbind_krb5_locator".
Guenther
(This used to be commit 6ae4066bbb)
2007-10-11 15:12:12 +02:00
Gerald (Jerry) Carter
e5a951325a [GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.
(This used to be commit 5c6c8e1fe9)
2007-10-10 15:34:30 -05:00
Stefan Metzmacher
971cc997de r25570: move code of the locator child into its own file
metze
(This used to be commit 2dbc168e54)
2007-10-10 12:31:15 -05:00
Stefan Metzmacher
2f6fbb1c53 r25568: move idmap related functions into their own file.
the final goal is to have 3 child dispatch tables
'domain', 'idmap' and 'locator' instead of one.

metze
(This used to be commit 97c63f1b95)
2007-10-10 12:31:14 -05:00
Stefan Metzmacher
5c5acae0ee r25470: use --immediate like in samba4 to get more usefull output
metze
(This used to be commit f5b089370a)
2007-10-10 12:31:06 -05:00
James Peach
f3cf737ff0 r25432: Merge module linking changes from SAMBA_3_2 to SAMBA_3_2_0 to reduce
spurious tree differences.
(This used to be commit ee1eba2855)
2007-10-10 12:31:05 -05:00
Jelmer Vernooij
679ef7b6ba r25415: Merge the 3.2-perltest branch that switches Samba 3.2 to use Samba 4's selftest code. See the mailing list for details.
(This used to be commit bdc831ddb3)
2007-10-10 12:31:03 -05:00
Jeremy Allison
58a9621904 r25406: Make the Linux nss client code thread-safe.
Fix originally inspired from code from boyang <yyyeer.bo@gmail.com>.
Jeremy.
(This used to be commit cc19c0ace4)
2007-10-10 12:31:03 -05:00
Stefan Metzmacher
28aa4bff8d r25154: move winbindd code into winbindd/
metze
(This used to be commit 3ac7566ae1)
2007-10-10 12:30:46 -05:00
Jeremy Allison
132ee3990a r25009: Large patch discussed with Volker. Move unix_convert to a talloc-based
interface. More development will come on top of this. Remove the
"mangled map" parameter.
Jeremy.
(This used to be commit dee8beba7a)
2007-10-10 12:30:32 -05:00
Michael Adam
3edc4c6f66 r24955: Reformat some object lists in Makefile.in to minimize the diff.
(This used to be commit 5d94c3dab2)
2007-10-10 12:30:30 -05:00
Günther Deschner
56736616d8 r24841: The locator has no dependencies to ldap libs anymore. Also fix the build.
Guenther
(This used to be commit ce7c816083)
2007-10-10 12:30:27 -05:00
Günther Deschner
55b59eb80b r24833: Move locator to nsswitch (does not belong to libads anymore).
Guenther
(This used to be commit af90c6949c)
2007-10-10 12:30:26 -05:00
Volker Lendecke
929e1d9920 r24809: Consolidate the use of temporary talloc contexts.
This adds the two functions talloc_stackframe() and talloc_tos().

 * When a new talloc stackframe is allocated with talloc_stackframe(), then
 * the TALLOC_CTX returned with talloc_tos() is reset to that new
 * frame. Whenever that stack frame is TALLOC_FREE()'ed, then the reverse
 * happens: The previous talloc_tos() is restored.
 *
 * This API is designed to be robust in the sense that if someone forgets to
 * TALLOC_FREE() a stackframe, then the next outer one correctly cleans up and
 * resets the talloc_tos().

The original motivation for this patch was to get rid of the
sid_string_static & friends buffers. Explicitly passing talloc context
everywhere clutters code too much for my taste, so an implicit
talloc_tos() is introduced here. Many of these static buffers are
replaced by a single static pointer.

The intended use would thus be that low-level functions can rather
freely push stuff to talloc_tos, the upper layers clean up by freeing
the stackframe. The more of these stackframes are used and correctly
freed the more exact the memory cleanup happens.

This patch removes the main_loop_talloc_ctx, tmp_talloc_ctx and
lp_talloc_ctx (did I forget any?)

So, never do a

tmp_ctx = talloc_init("foo");

anymore, instead, use

tmp_ctx = talloc_stackframe()

:-)

Volker
(This used to be commit 6585ea2cb7)
2007-10-10 12:30:24 -05:00
Günther Deschner
b2a1a4a0fe r24806: Fix the build, sorry...
Guenther
(This used to be commit cd1fccaf8f)
2007-10-10 12:30:23 -05:00
Günther Deschner
3e4c094e61 r24805: When we can build the locator, build it.
Guenther
(This used to be commit 91d10fe159)
2007-10-10 12:30:23 -05:00
Gerald Carter
babab94fb9 r24788: Cleanup some linking msgs and remove references to libmsrpc
in SAMBA_3_2_0
(This used to be commit ba05dc013f)
2007-10-10 12:30:21 -05:00
Günther Deschner
49e92d0d56 r24748: Remove all dependencies to samba internals and convert the krb5 locator plugin
into a tiny winbindd DsGetDcName client. This still does not solve the case of
using the locator from within winbindd itself but at least gencache.tdb and
others are no longer corrupted.

Guenther
(This used to be commit 908e7963b8)
2007-10-10 12:30:17 -05:00
Gerald Carter
51514b5d63 r24745: Merge Simo's shared lib build fix from svn r22842 that was lost
somehow.  Don't include the PIE_FLAGS when building shared libs.
(This used to be commit 22f2f1e033)
2007-10-10 12:30:17 -05:00
Günther Deschner
84bce05e71 r24742: Add experimental DsGetDcName() call (will be used by krb5 locator for fine
grained KDC DNS queries).

Guenther
(This used to be commit 3263cd680f)
2007-10-10 12:30:16 -05:00
Günther Deschner
36a85969f9 r24416: Some more minor edits for libgpo, mostly reformatting and moving of functions.
Guenther
(This used to be commit 3e240672b4)
2007-10-10 12:29:43 -05:00
Stefan Metzmacher
d68145a509 r24302: add a module that overloads the file_id_create VFS function
and alters the device id depending on the configured algorithm.

The algorithm is configured via "fileid:algorithm":
- "fsname" (default) uses a uint64 hash over the mount point
- "fsid" uses the fsid returned from statfs()

This is needed for "clustering = yes" on some clusterfilesystems

metze
(This used to be commit 30f9171cca)
2007-10-10 12:29:25 -05:00
Volker Lendecke
1bbb6e5a0b r24007: Attempt to fix the build on host "gwen". The Makefile ended up with an
empty line.
(This used to be commit d05f7aefdf)
2007-10-10 12:28:55 -05:00
Günther Deschner
8ba1569eef r23976: Move authdata.o to LIBADS_SERVER_OBJ.
Guenther
(This used to be commit 3544d19d54)
2007-10-10 12:28:51 -05:00
Günther Deschner
db4099884a r23921: Remove GPO_SID_TOKEN struct and use nt_user_token instead, that already has
S-1-5-11 in the token.

Guenther
(This used to be commit 83c734690a)
2007-10-10 12:28:42 -05:00
Stefan Metzmacher
57dd25cccb r23893: add dummy callbacks for LDAP SASL wrapping,
they're not used yet...

metze
(This used to be commit a3b97cdce7)
2007-10-10 12:28:39 -05:00
Günther Deschner
bdb7c621e6 r23840: Fix the build.
Guenther
(This used to be commit 07bce67121)
2007-10-10 12:28:33 -05:00
Gerald Carter
866e39ad25 r23694: Make sure that when builddir != srcdir, we can still find the exports
files and library-versions file.

Also move the "-o $@" from the individual targets and into the SHLD_DSO
command.
(This used to be commit c85311b3a8)
2007-10-10 12:23:46 -05:00
Gerald Carter
3a246ac46b r23689: Squashed commit of the following:
commit 0d4bbd197198a94bf4e29e0ccd175a40a60097f3
Author: Gerald (Jerry) Carter <jerry@samba.org>
Date:   Mon Jul 2 20:08:19 2007 -0500

    Introduce GNU ld linker export-script for hiding non-public symbols
    in shared libraries.

    Based on initial patch from Julien Cristau <jcristau@debian.org>
    and suggestions from James Peach <jpeach@samba.org>.  Currently
    the libsmbsharemodes libraries still exports *.  Signed off on
    my Derrell as well.
(This used to be commit c42cf731b4)
2007-10-10 12:23:46 -05:00
Volker Lendecke
ef8706acd1 r23662: According to simo, check_dos_char is needed
(This used to be commit c195eccefe)
2007-10-10 12:23:43 -05:00
Volker Lendecke
971b640e0c r23660: Anybody know what check_dos_char() was used for? It wasn't called at
all, so it's gone. With it 8k bss went away.
(This used to be commit 7e9a4c39a5)
2007-10-10 12:23:43 -05:00
Günther Deschner
47bd42ab1c r23607: Add legacy support for Services for Unix (SFU) 2.0.
Guenther
(This used to be commit 11b390309b)
2007-10-10 12:23:35 -05:00
James Peach
c7749c8f93 r23541: Linking the LSA pipe module only once is probably enough.
(This used to be commit 1d941961e0)
2007-10-10 12:23:27 -05:00
Michael Adam
aa4110e6f2 r23509: This activates the global options from the registry in loadparm.
The global options are stored as values in the subkey "global"
of the SMBCONF registry key.

The activation is accomplished in smb.conf though a new special
semantic of the "include" parameter: "include = registry" triggers
the processing of the registry global options exactly at the
position of the include statement. Options read from the registry
take the same precedence as parameters loaded from a file via
include. Need to reload the registry globals is detected by
watching the tdb sequence number.

Registry shares are automatically activated when the registry
globals are processed.

So a "registry only" configuration can be realized by an
smb.conf that looks as follows:

================================
[global]
include = registry
================================

The global options and registry shares can be conveniently
edited with the "net conf" utility.

Caveat:

A possible pitfall consists in using "include = registry"
together with the "lock directory" directive in the registry.
This problem will be addressed in the next time.

Note on the code:

Processing of the registry options is accomplished by a function
process_registry_globals() in loadparm.c The current version is
only an interim solution: It is handcoded instead of using the
infrastructure of reg_api.c. The reason for this is that using
reg_api still has too large linker dependencies, bloating virtually
all targets by PASSDB_OBJ, SMBLDAP_OBJ, GROUPDB_OBJ and LDB stuff.
A version of process_registry_globals that uses reg_api is
included but commented out. The goal is to eventually refactor
and restructure the registry code so that one can use the reg_api
to access only the registry tdb and not link all the dynamic
backends with all their linking implications.
(This used to be commit 24b0cbcb37)
2007-10-10 12:23:23 -05:00
Michael Adam
fd3dbb4a48 r23495: Replace literal occurrences of libsmb/errormap.o by $(ERRORMAP_OBJ).
(This used to be commit 2041c35a30)
2007-10-10 12:23:21 -05:00
Michael Adam
6c674deb97 r23494: Synchronize some occurrences of BINARY_PREREQS and bin/.dummy.
Further reduce the diff between 3_0 and 3_0_26 by some reformatting
and rearrangements.

Michael
(This used to be commit 02685358d1)
2007-10-10 12:23:21 -05:00
Michael Adam
6090601c8b r23485: This checkin consists mostly of refactorings in preparation of the
activation of global registry options in loadparm.c, mainly to
extract functionality from net_conf.c to be made availabel elsewhere
and to minimize linker dependencies.

In detail:

* move functions registry_push/pull_value from lib/util_reg.c to new file
  lib/util_reg_api.c

* create a fake user token consisting of builtin administrators sid and
  se_disk_operators privilege by hand instead of using get_root_nt_token()
  to minimize linker deps for bin/net.

  + new function registry_create_admin_token() in new lib/util_reg_smbconf.c
  + move dup_nt_token from auth/token_util.c to new file lib/util_nttoken.c
  + adapt net_conf.c and Makefile.in accordingly.

* split lib/profiles.c into two parts: new file lib/profiles_basic.c
  takes all the low level mask manipulation and format conversion functions
  (se_priv, privset, luid). the privs array is completely hidden from
  profiles.c by adding some access-functions. some mask-functions are not
  static anymore.

  Generally, SID- and LUID-related stuff that has more dependencies
  is kept in lib/profiles.c

* Move initialization of regdb from net_conf.c into a function
  registry_init_regdb() in lib/util_reg_smbconf.c.

Michael
(This used to be commit efd3e2bfb7)
2007-10-10 12:23:21 -05:00
James Peach
6e631e5fb5 r23478: Change the handling of the developer CFLAGS so that they are always
emited to the Makefile in the DEVELOPER_CFLAGS variable. This makes
it easy to turn developer mode on and off without waiting for
configure to run. The developer flags are only added to CFLAGS for
the --enable-developer and --enable-krb5developer cases.
(This used to be commit 4b392a76eb)
2007-10-10 12:23:20 -05:00
Volker Lendecke
de565785f5 r23410: Merge the core of the cluster code.
I'm 100% certain I've forgotten to merge something, but the main code
should be in. It's mainly in dbwrap_ctdb.c, ctdbd_conn.c and
messages_ctdbd.c.

There should be no changes to the non-cluster case, it does survive make
test on my laptop.

It survives some very basic tests with ctdbd enables, I did not do the
full test suite for clusters yet.

Phew...

Volker
(This used to be commit 15553d6327)
2007-10-10 12:23:14 -05:00
James Peach
a3d1d85a19 r23352: Don't generate stamp-h. AFAICT it is never used.
(This used to be commit d47d1a44e7)
2007-10-10 12:23:09 -05:00
Andrew Tridgell
248a82c0f2 r23323: merged ldb changes from 3.0.26
(This used to be commit 7c9a5c2a3f)
2007-10-10 12:23:06 -05:00
Gerald Carter
c48b95d497 r23321: remove unused variable (due to mad merge from Centeris patches)
(This used to be commit 1b68302e34)
2007-10-10 12:23:06 -05:00
Michael Adam
706dfe6dca r23317: Fix the build: r23315 was a little overeager in removing the
INIPARSER_OBJ from the bin/net target altogether. I re-add it
in the guise of @BUILD_INIPARSER@ (to NET_OBJ). This also
eliminates the need to have @BUILD_INIPARSER@ in the deps for
the bin/net target.
Same procedure for the pam_winbindd module.

Michael
(This used to be commit 114a80dd2e)
2007-10-10 12:23:06 -05:00
Stefan Metzmacher
5ddcf95651 r23315: - don't use the builtin and -liniparser together in bin/net
- unify handling on @BUILD_INIPARSER@

btw: nsswitch/pam_winbind.c doesn't compile anymore on SuSE 10.2!
     I think we should build pam modules by default to notice things
     like this in the build-farm...

metze
(This used to be commit 1f30ac2905)
2007-10-10 12:23:05 -05:00
Stefan Metzmacher
82e4680b2d r23314: For some systems it's needed to inject replace.h into
the iniparser source code, I do it in a way we can still have
a unmodified copy of iniparser in source/iniparser/
and have the wrapper stuff in source/iniparser_build/.

If the build-farm is happy with this I'll merge it to 3_0_26
tomorrow...

metze
(This used to be commit 43d390d186)
2007-10-10 12:23:05 -05:00
James Peach
aded048160 r23295: Apply proto_exists and bin/.dummy dependencies consistently for all
binaries.  Fix vfs_zfsacl build rule in SAMBA_3_0.
(This used to be commit 07fa76c6c7)
2007-10-10 12:23:03 -05:00
Gerald Carter
97a164ba96 r23274: merge CloseEventlog() pidl conversion from 3.0.26 && fix a few init call renames for svcctl in the previous commit
(This used to be commit ebcae48ec1)
2007-10-10 12:23:02 -05:00
Gerald Carter
d99f4f004c r23271: merge service control pidl change for CloseServiceHandle() from SAMBA_3_0_26
(This used to be commit 0b1bc3521f)
2007-10-10 12:23:01 -05:00
Gerald Carter
4eab22b893 r23242: BUG 4671: Fix Makefile syntax error when SMBMOUNT_PROGS is not defined
(This used to be commit 592e73dc31)
2007-10-10 12:22:58 -05:00
Volker Lendecke
6426d8b4a0 r23224: Move map_nt_error_from_unix to lib/errmap_unix.c. This function is
useful even in binaries that don't link in libsmb
(This used to be commit 52545d1192)
2007-10-10 12:22:56 -05:00
Volker Lendecke
e8156439f2 r23183: Check in a change made by Tridge:
This replaces the internal explicit dev/ino file id representation by a
"struct file_id". This is necessary as cluster file systems and NFS
don't necessarily assign the same device number to the shared file
system. With this structure in place we can now easily add different
schemes to map a file to a unique 64-bit device node.

Jeremy, you might note that I did not change the external interface of
smb_share_modes.c.

Volker
(This used to be commit 9b10dbbd5d)
2007-10-10 12:22:52 -05:00
Lars Müller
a32d8a3909 r23156: Install the smb_share_modes.h header file.
(This used to be commit e03a67ebc6)
2007-10-10 12:22:50 -05:00
Lars Müller
7ee1937dad r23155: Rename INSTALLPERMS to INSTALLPERMS_BIN to differenciate clearer from
INSTALLPERMS_DATA.
(This used to be commit 7a9ea106ff)
2007-10-10 12:22:50 -05:00
Lars Müller
15caaaa8c2 r23154: Add INSTALLPERMS_DATA set to 0644 to install the header files with this
permission set instead of 0755.
(This used to be commit 1db52993ed)
2007-10-10 12:22:49 -05:00
Günther Deschner
825c4ceffe r23121: Fix Bug #2727 and let pam_smbpass at least link and dlopen correctly again.
Thanks to Bartlomiej Solarz-Niesluchowski <Bartlomiej.Solarz-Niesluchowski@wit.edu.pl>.

Guenther
(This used to be commit ba956ab8e4)
2007-10-10 12:22:47 -05:00
Volker Lendecke
f260b45d64 r23117: Factor out local messaging.
This removes message_block / message_unblock. I've talked to Jeremy and
Günther, giving them my reasons why I believe they have no effect.
Neither could come up with a counter-argument, so they go :-)
(This used to be commit a925e0991f)
2007-10-10 12:22:47 -05:00
Volker Lendecke
ff0ac5b0e7 r23112: Trim down the message.c API slightly: The messages_pending_for_pid is now
replaced by MSG_FLAG_LOWPRIORITY or'ed into the msg_type. To enable this,
changed the msg_type definitions to hexadecimal.

This way we could theoretically add the MSG_FLAG_NODUPLICATES again, but I
would rather not do this, because that one is racy and can't be guaranteed at
all.
(This used to be commit 3f5eb8a960)
2007-10-10 12:22:47 -05:00
James Peach
4b04b843af r23097: Add a new configure option to disable building SWAT (it is still built by
default).
(This used to be commit 910d498a0e)
2007-10-10 12:22:45 -05:00
Volker Lendecke
ac3f08ddbe r23055: Rewrite messages.c to use auto-generated marshalling in the tdb. I'm
doing this because for the clustering the marshalling is needed in more
than one place, so I wanted a decent routine to marshall a message_rec
struct which was not there before.

Tridge, this seems about the same speed as it used to be before, the
librpc/ndr overhead in my tests was under the noise.

Volker
(This used to be commit eaefd00563)
2007-10-10 12:22:17 -05:00
James Peach
c0d467462f r22879: Tidy the build rules for targets that need the installation paths.
(This used to be commit c16ad8d58c)
2007-10-10 12:22:05 -05:00
Jeremy Allison
338d2462d4 r22872: Add vfs_zfsacl module from Jiri Sasek <Jiri.Sasek@Sun.COM>.
Jeremy.
(This used to be commit bd80db71e7)
2007-10-10 12:22:04 -05:00
Lars Müller
642eb91261 r22870: Don't create shared objects of nss and tdb modules.
(This used to be commit 1c06148010)
2007-10-10 12:22:04 -05:00
Lars Müller
811d1f7abf r22869: Add bin/{ldap,nss,tdb}.@SHLIBEXT@ rules.
Not tested for SAMBA_3_0 as I didn't get autogen.sh or autoreconf to
build a configure.
(This used to be commit 6f19e5853d)
2007-10-10 12:22:04 -05:00
James Peach
2a5d612f34 r22820: Move FAM libraries from smbd to vfs_fam_notify. Should fix bugzilla #4426.
(This used to be commit 9d9950a6d1)
2007-10-10 12:22:00 -05:00
Günther Deschner
4c48a3d30c r22802: Add dummy gpo_apply_security_filtering() call.
Guenther
(This used to be commit 61982d8422)
2007-10-10 12:21:59 -05:00
Volker Lendecke
4c185a6077 r22775: For the cluster code I've developed a wrapper around tdb to put different
database backends in place dynamically.

The main abstractions are db_context and db_record, it should be mainly
self-describing, see include/dbwrap.h.  You open the db just as you would open
a tdb, this time with db_open(). If you want to fetch a record, just do the
db->fetch() call, if you want to do operations on it, you need to get it with
fetch_locked().

I added dbwrap_file.c (not heavily tested lately) as an example for what can
be done with that abstraction, uses a file per key. So if anybody is willing
to shape that up, we might have a chance on reiserfs again.... :-)

This abstraction works fine for brlock.tdb, locking.tdb, connections.tdb and
sessionid.tdb. It should work fine for the others as well, I just did not yet
get around to convert them.

If nobody loudly screams NO, then I will import the code that uses this soon.

Volker
(This used to be commit e9d7484ca2)
2007-10-10 12:21:56 -05:00
Volker Lendecke
4aa44f7475 r22761: This introduces lib/conn_tdb.c with two main functions: connections_traverse
and connections_forall. This centralizes all the routines that did individual
tdb_open("connections.tdb") and direct tdb_traverse.

Volker
(This used to be commit e43e94cda1)
2007-10-10 12:21:55 -05:00
Volker Lendecke
b1e866c3b7 r22745: Add local groups to the --required-membership-sid test. This needs
merging to 3_0_26 once Michael's net conf changes have been merged. It
depends on token_utils.c.
(This used to be commit a99ab3a2ed)
2007-10-10 12:21:54 -05:00
Jelmer Vernooij
811d0279c1 r22578: Remove python build directory and generated smbadduser.
Patch originally by the Debian packaging team for Samba.
(This used to be commit f46492a4db)
2007-10-10 12:19:46 -05:00
James Peach
3dff331a1d r22507: Wrap the method of obtaining sockets to listen on.
(This used to be commit e027322b76)
2007-10-10 12:19:40 -05:00
James Peach
c620832983 r22495: Create wrapper to hide the details of obtaining a set of sockets
to listen on.
(This used to be commit 29a16b2acb)
2007-10-10 12:19:39 -05:00
James Peach
821bf2bd72 r22441: Add automatic dependency tracking. The dependency generation is
toolchain independent, but since there's no portable method for
doing makefile includes, we can actually use the dependencies with
GNU make. It's easy to add this for other makes, but I don't have
any to test.

This also moves as much m4 as possible into the m4 directory where
no-one has to look at it. AFAICT, there's no way to hide depcomp
in there too, which is unfortunate.
(This used to be commit aa14900f82)
2007-10-10 12:19:34 -05:00
James Peach
44f5211c17 r22418: Support running under launchd. We abstract the method of obtaining
sockets to listen on a little, because in the launchd case these
are provided for us. We also add an idle timeout so that a daemon
can exit after a period of inactivity.
(This used to be commit fc8589a337)
2007-10-10 12:19:33 -05:00
James Peach
41824de773 r22416: Remove precompiled headers on clean.
(This used to be commit 250028ef03)
2007-10-10 12:19:33 -05:00
James Peach
772ffe76fe r22413: Simplify the build rules for plugin modules. Add support for per-platform
exports files. Fix the shared library build pf pdb_ldap.
(This used to be commit b04dee02d1)
2007-10-10 12:19:32 -05:00
Gerald Carter
8a210af339 r22321: BUG 4509: Makefile fix linking the sfu.so and rfc2307.so
plugins in $libdir/nss_info to idmap/ad.so
(This used to be commit 086316d62e)
2007-10-10 12:19:26 -05:00
Stefan Metzmacher
97079ab953 r22315: move tdbback.c content into tdbbackup.c
and make the functions static.

also use libreplace headers in tdbbackup.c

metze
(This used to be commit 1ca12b1c9e)
2007-10-10 12:19:26 -05:00
Stefan Metzmacher
cacb371dbd r22304: remove unused stuff completely to fix the build, sorry
metze
(This used to be commit 4d53100e3c)
2007-10-10 12:19:25 -05:00
Stefan Metzmacher
5064a6c973 r22302: fix the build when no shared-library support is detected
metze
(This used to be commit 9ad4098910)
2007-10-10 12:19:25 -05:00
Stefan Metzmacher
4a245a1580 r22249: move tdb code to lib/tdb/ as in samba4
metze
(This used to be commit c7def92a9c)
2007-10-10 12:19:22 -05:00
Stefan Metzmacher
2f1aafa2a7 r22221: merge from samba4:
- libreplace unsetenv() and strptime() replacements

metze
(This used to be commit 057c1c04d0)
2007-10-10 12:19:21 -05:00
Volker Lendecke
a40df6f92d r22135: Check in most of Michael Adam's net conf utility. A good share of this patch
is moving functions around to fix some linker dependencies for the registry.

Michael, I've renamed your auth_utils2.c to token_utils.c.

Thanks!

Volker
(This used to be commit 9de16f25c1)
2007-10-10 12:19:16 -05:00
Jeremy Allison
7ef93224ee r22106: Fix the module name - it's vfs_readahead not vfs_linux_readahead.
Jeremy.
(This used to be commit bc2b6e3f32)
2007-10-10 12:19:13 -05:00
Jeremy Allison
d946a78dde r22105: Added vfs_readahead module that appears to do wonderful things
for copying files from Samba when using Windows Vista Windows
explorer.... :-). By default if you add this I can go on my
vmware sessions from 7MB/sec to 12MB/sec (+1 extra MB/sec if
I turn sendfile on).
Jeremy.
(This used to be commit 97fdd67e83)
2007-10-10 12:19:13 -05:00
Lars Müller
ab8bbffd65 r22103: No code change. This is a spring time end of line clesnup checkin.
(This used to be commit 3ae99e5924)
2007-10-10 12:19:12 -05:00
Lars Müller
a6209ac56a r22102: Remove obsoleted SHLIBS_PROGS from {Makefile,configure}.in.
As NSS_MODULES is added to the all rule the resulting set of binaries
are the same.
(This used to be commit 3bebb5f4c1)
2007-10-10 12:19:12 -05:00
Lars Müller
0fea15acb3 r22099: Revert parts of revision 22056 as proto_exists is not required by
@WINBIND_NSS@, bin/pam_winbind.@SHLIBEXT@, and bin/pam_smbpass.@SHLIBEXT@.
(This used to be commit 641edac6ec)
2007-10-10 12:19:12 -05:00
Stefan Metzmacher
f5d3d29f72 r22067: - fix --with-fhs, where confdir is set to \${sysconfdir}
but sysconfdir wasn't defined in our Makefile
- add localstatedir for completeness

metze
(This used to be commit a70af6d457)
2007-10-10 12:19:09 -05:00
Günther Deschner
f1ab10b2ec r22058: Add test_nss_modules to check NSS modules for unresolved symbols.
Guenther
(This used to be commit 21d092f4f9)
2007-10-10 12:19:06 -05:00
Günther Deschner
21024aa589 r22056: Adding some missing proto_exists calls (for PAM and NSS modules)
Guenther
(This used to be commit 04705aa190)
2007-10-10 12:19:06 -05:00
Jelmer Vernooij
0389cad7c4 r22055: Port the endpoint mapper (and functions it requires) to Samba 3.
(This used to be commit ad98126187)
2007-10-10 12:19:06 -05:00
Volker Lendecke
b2c54ddbb2 r21964: Add tdbtorture target to main makefile -- Thanks to Karolin Seeger
(This used to be commit 6265b1ee96)
2007-10-10 12:18:53 -05:00
Jeremy Allison
8c395be5e5 r21922: Fixed the build by rather horrid means. I really need
to restructure libsmb/smb_signing.c so it isn't in
the base libs path but lives in libsmb instead (like
smb_seal.c does).
Jeremy.
(This used to be commit 1b828f051d)
2007-10-10 12:18:49 -05:00
Jeremy Allison
071db6fdbf r21897: Add in a basic raw NTLM encrypt request. Now
for testing.
Jeremy.
(This used to be commit 783a7b3085)
2007-10-10 12:18:46 -05:00
Jeremy Allison
296dcbac58 r21882: The server part of the code has to use an AUTH_NTLMSSP struct,
not just an NTLMSSP - grr. This complicates the re-use of
common client and server code but I think I've got it right.
Not turned on of valgrinded yet, but you can see it start
to take shape !
Jeremy.
(This used to be commit 60fc9c0aed)
2007-10-10 12:18:43 -05:00
Jeremy Allison
ecd496f066 r21865: Add in the stubs for SMB transport encryption. Will flesh
these out as I implement. Don't add to SAMBA_3_0_25, this
is experimental code.
NFSv4 you're now officially on notice... :-).
Jeremy.
(This used to be commit 5bfe638f21)
2007-10-10 12:18:40 -05:00
Günther Deschner
0e702698f9 r21822: Adding experimental krb5 lib locator plugin.
This is a starting point and may get changed. Basically we need follow the
exact same path to detect (K)DCs like other Samba tools/winbind do. In
particular with regard to the server affinity cache and the site-awarness for
DNS SRV lookups.

To compile just call "make bin/smb_krb5_locator.so", copy to
/usr/lib/plugin/krb5/ (Heimdal HEAD) or /usr/lib/krb5/plugins/libkrb5/ (MIT)
and you should immediately be able to kinit to your AD domain without having
your REALM with kdc or kpasswd directives defined in /etc/krb5.conf at all.

Tested with todays Heimdal HEAD and MIT krb5 1.5.

Guenther
(This used to be commit 34ae610bd5)
2007-10-10 12:18:36 -05:00
Lars Müller
668da636e3 r21804: Create a reference after proto_exits was called once. Else we link the
binaries again with each make.  Thx Volker to point my chesty at this.
(This used to be commit 0cb6634d94)
2007-10-10 12:18:35 -05:00
Volker Lendecke
b7d96fdc04 r21753: Enable building ndrdump with the builtin popt. Jelmer, please check!
(This used to be commit c1cfeb61a1)
2007-10-10 12:18:27 -05:00
Jelmer Vernooij
09ff57907a r21651: Add ndrdump to samba 3. This only works from external source at the
moment. To use, use something like:

./bin/ndrdump -l bin/smbd winreg winreg_EnumValue in <filename>

or to see what functions are available:

./bin/ndrdump -l bin/smbd winreg
(This used to be commit 0db258c600)
2007-10-10 12:18:21 -05:00
Gerald Carter
1e7ddfccd9 r21610: put libraries preceeding the @SONAMEFLAG@ variable as on AIX this ends up commenting out the remainder of the line and we have missing libraries in the link
(This used to be commit c4621de39b)
2007-10-10 12:18:17 -05:00
Jelmer Vernooij
2b5d317af1 r21565: Import ndrdump (doesn't compile yet, needs table support functions).
(This used to be commit 9a9b942167)
2007-10-10 12:18:14 -05:00
Lars Müller
2fb172f235 r21552: Ensure to check for proto_exists before linking any binary. No make
proto should be required before creating any binary from now on.

Remove proto_exists from the all, pam_smbpass, and pam_bindind rule.
(This used to be commit 95d2297974)
2007-10-10 12:18:12 -05:00
Gerald Carter
c9859479b4 r21453: use the tdb mapping file for groups by default for compatibility with the 3.0.25 tree (for now)
(This used to be commit 53ab0d1822)
2007-10-10 12:18:05 -05:00
Volker Lendecke
6b8fc040e5 r21109: Send notify_fam.c through the VFS. Lets see how the build farm likes this.
Volker
(This used to be commit e57a6d4d63)
2007-10-10 12:17:38 -05:00
Volker Lendecke
9974656d3b r21093: Remove the hash and dnotify backends. Disabling FAM for this checkin, I'm
working on that right now.

Volker
(This used to be commit 01c9fb1728)
2007-10-10 12:17:36 -05:00
Volker Lendecke
113e21f0a5 r21084: Make the Samba4 files compile in Samba3, not activated yet.
Volker
(This used to be commit c24854433a)
2007-10-10 12:17:34 -05:00
Volker Lendecke
9ee97d2f7d r21077: A step to minimize the diff later: This pulls in unmodified files from Samba4,
not compiled yet. This way the modifications become visible later.

ntvfs/common/notify.c -> smbd/notify_internal.c
ntvfs/sysdep/inotify.c -> smbd/notify_inotify.c

Naturally I had to disable notify again :-)

Volker
(This used to be commit cdb7d582b7)
2007-10-10 12:17:33 -05:00
Volker Lendecke
8bfa935161 r21074: Preparation for the import of samba4 notify: Add the file notify.idl and the
resulting marshalling/unmarshalling routines in gen_ndr/

Volker
(This used to be commit a2ea54c234)
2007-10-10 12:17:33 -05:00
Herb Lewis
d070271a15 r21007: move $(SOCKET_WRAPPER_OBJ) to OBJ definition instead of link line like
all other uses - merge from 3_0_24
(This used to be commit 99172f56c0)
2007-10-10 12:17:26 -05:00
Gerald Carter
b9b26be174 r20986: Commit the prototype of the nss_info plugin interface.
This allows a provider to supply the homedirectory, etc...
attributes for a user without requiring support in core
winbindd code.  The idmap_ad.c module has been modified
to provide the idmap 'ad' library as well as the rfc2307 and sfu
"winbind nss info" support.

The SID/id mapping is working in idmap_ad but the nss_info
still has a few quirks that I'm in the process of resolving.
(This used to be commit aaec0115e2)
2007-10-10 12:17:23 -05:00
Volker Lendecke
420e577004 r20932: This is the basic infrastructure for inotify support. This is far from being
complete, in particular the various mask bits are not correctly supported
yet. Checkin in now, I want to see how the build farm likes it.

Volker
(This used to be commit c9a5d011a9)
2007-10-10 12:17:21 -05:00
Günther Deschner
58efeafa7d r20828: Fix the build with libnscd.
Guenther
(This used to be commit 8284396faf)
2007-10-10 12:17:10 -05:00
Volker Lendecke
b906886e9e r20824: Send access to the trusted domain passwords through the pdb backend, so that
in the next step we can store them in LDAP to be replicated across DCs.

Thanks to Michael Adam <ma@sernet.de>

Volker
(This used to be commit 3c879745cf)
2007-10-10 12:17:10 -05:00
Lars Müller
99c1e8f262 r20664: Set the environment variable _before_ calling the shell.
(This used to be commit 9cecd62654)
2007-10-10 12:17:01 -05:00
Lars Müller
83a41eb3a7 r20663: Do not install smbmount man page if we didn't called configure
--with-smbmount.
(This used to be commit ee12348cf1)
2007-10-10 12:17:01 -05:00
Herb Lewis
2829b1db34 r20202: fix make clean
(This used to be commit 339c029521)
2007-10-10 12:16:31 -05:00
Herb Lewis
0decd48879 r20201: merge makefile changes from 3_0_24
(This used to be commit 3f8587fc6d)
2007-10-10 12:16:31 -05:00
Simo Sorce
4225f9a4bd r20116: Start merging in the work done to create the new idmap subsystem.
Simo.
(This used to be commit 50cd8bffee)
2007-10-10 12:16:25 -05:00
Jim McDonough
19ddef3dd9 r20089: Put gpfs acl function into vfs_gpfs module. Thanks to Gomati Mohanan
<gomati.mohanan@in.ibm.com>.

Also fix fields for sec_desc differences between 3.0 and 3.0.24 in
nfs4_acls.c.
(This used to be commit 3d6f387783)
2007-10-10 12:16:24 -05:00
Volker Lendecke
ecf90c495e r19991: Sorry for this 2000-liner...
The main thing here is a rewrite of srv_winreg_nt.c. The core functionality
has moved to registry/reg_api.c which is then usable by the rest of Samba as
well.

On that way it fixes creating keys with more than one element in the
path. This did not work before.

Two things that sneaked in (sorry :-) is the change of some routines from
NTSTATUS to WERROR the removed "parent" argument to regkey_open_internal.

Volker
(This used to be commit fea52801de)
2007-10-10 12:16:18 -05:00
Jeremy Allison
913222d76a r19974: Add freelist check for cache. Fix testing of entry
names (all except SEQNUM are *not* null terminated
strings).
Jeremy.
(This used to be commit bcb68260ba)
2007-10-10 12:16:16 -05:00
Volker Lendecke
575845ccbe r19963: Add 'registry shares = yes' and registry key security descriptors.
(This used to be commit 6cab254c49)
2007-10-10 12:16:16 -05:00
James Peach
3fda843ac1 r19962: Revert bogus change in r19961. In future I will check configure.in
as well as Makefile.in :(
(This used to be commit 5d000fed59)
2007-10-10 12:16:16 -05:00
James Peach
1b25dd38c7 r19961: Remove VARDIR. Nothing is ever installed into this, so there's no
need to create it.
(This used to be commit f440efd961)
2007-10-10 12:16:15 -05:00
Gerald Carter
53c6548fbc r19800: * Remove exmpty aix directory
* remove old, commented out commands from 'make clean'
(This used to be commit 4c96a387a2)
2007-10-10 12:15:56 -05:00
Gerald Carter
c2aae726ea r19762: libaddns/*[ch] code fixes donated by Centeris Corporation
(http://www.centeris.com/) under my copyright.

* Rework error reporting to use DNS_ERROR instead
  of int32
* Convert memory allocation to use talloc()
* Generalize the DNS request/response packet marshalling
* Fix the secure update requests
(This used to be commit c787983336)
2007-10-10 12:15:53 -05:00
Lars Müller
f5a1ec7407 r19748: Ensure to link against the required libraries.
(This used to be commit 85d8c73fbb)
2007-10-10 12:15:53 -05:00
Lars Müller
571aca9927 r19747: Ensure to link with the required objects.
(This used to be commit 8d50fb3f51)
2007-10-10 12:15:52 -05:00
Simo Sorce
cccf8f0633 r19691: Fix the build
(This used to be commit fd70972ad9)
2007-10-10 12:15:47 -05:00
Jim McDonough
4fe70bcee2 r19647: Add some GPFS support in a vfs mod. Also adds the kernel flock op to
the vfs layer, since gpfs supports it.  Thanks to Volker, Christian,
Mathias, Chetan, and Peter.
(This used to be commit 0620658890)
2007-10-10 12:15:43 -05:00
Jeremy Allison
27c4b072b0 r19533: Add a suffix to the program name if this is a process with a
non-default configuration file name.
Jeremy.
(This used to be commit e8bf421c01)
2007-10-10 12:15:41 -05:00
Jeremy Allison
b7bf248985 r19529: Added showacls togle. Previously was vendor-specific code.
Merging these in - should have been merged back before (will
be tidied up later).
Jeremy.
(This used to be commit 1e9284590f)
2007-10-10 12:15:41 -05:00
Gerald Carter
c101ce569d r19497: Thought I already fixes the etags target. Ignore .svn
and not CVS (since we don't use CVS anymore
(This used to be commit 782298cd03)
2007-10-10 12:15:40 -05:00
Andrew Tridgell
aa3ca346d8 r19429: moved tdb/common/tdbutil.c into lib/util_tdb.c
see discussion on samba-technical
(This used to be commit 1ad563286f)
2007-10-10 12:15:35 -05:00
Volker Lendecke
4980baf2e1 r19224: Add setting the rng_fault_state to the already converted pipes.
Convert the low-hanging fruit of the LSA server. This provides a sample how
the server calls can be converted one by one, see the "proxy_lsa_call"
function.

Volker
(This used to be commit 99e54a213a)
2007-10-10 12:15:23 -05:00
Stefan Metzmacher
63a0d4aa5b r19093: speed up the samba3 build from 8mins to 5mins:-)
we now don't compile mostly each .c file twice.

- we use PICFLAG for all object files
- PICFLAG defaults to PIE_CFLAGS and is then overwritten
  if the system supports shared libraries

as we currently always use -fPIE if available
(and at least on linux -fPIE produces the same code as -fPIC)
it doesn't change anything in the resulting code.

"high performance" binaries can be build with
"--disable-pie --disable-shared" if someone really needs to...

metze
(This used to be commit 6db1f57f45)
2007-10-10 12:15:11 -05:00
Stefan Metzmacher
6b80d173ed r19038: build libreplace testsuite as replacetort
and run it with make test

metze
(This used to be commit 9db9eb199f)
2007-10-10 12:15:04 -05:00
Stefan Metzmacher
c6b22621be r19015: we don't need talloc_* in proto.h
metze
(This used to be commit 685304e574)
2007-10-10 12:15:02 -05:00
Günther Deschner
824966fb3c r19002: Add a very simple synchronisation function to download the full GPO.
Guenther
(This used to be commit 02b75ff2a8)
2007-10-10 12:14:55 -05:00
Günther Deschner
3727503872 r18986: Add some more GPO download helper functions.
Guenther
(This used to be commit d2db3b6b46)
2007-10-10 12:14:53 -05:00
Günther Deschner
4db2fc3c89 r18985: Add parse_gpt_ini() to parse GPT.INI files using iniparser.
Guenther
(This used to be commit 46db28de48)
2007-10-10 12:14:53 -05:00
Günther Deschner
73f4ac012a r18982: Move the gpo related functions to "libgpo".
Guenther
(This used to be commit 1308a84271)
2007-10-10 12:14:53 -05:00
Stefan Metzmacher
8f4f93a201 r18973: we should always set LDFLAGS and DYNEXP depending on the host_os
but disable building of shared libs and modules whe enable_shared != yes

Also make it easier to track down the problem with lost LDFLAGS values
on AIX.

metze
(This used to be commit 3367e306e6)
2007-10-10 12:14:52 -05:00
Gerald Carter
bbaa0b178d r18919: * Get the new rpccli_winreg_XXXX() functions into the tree
There some broken functionality here that I'm still working on.
* remove unneeded parsing routines
(This used to be commit cbfe1a4b49)
2007-10-10 12:14:46 -05:00
Gerald Carter
2a04cff7a9 r18906: Fix 'make clean' to deal with new lib/ldb/ directory structure.
(This used to be commit 9b43d7c63a)
2007-10-10 12:14:45 -05:00
Gerald Carter
2cb15a9516 r18896: * Fix out of tree builds after libreplace merge
* Remove unused -D define in Makefile
(This used to be commit 3c9632bedc)
2007-10-10 12:14:43 -05:00
Stefan Metzmacher
75064ae95e r18895: AIX need to call pidl with --uint-enums as the compiler doesn't
like negative values in the generated code.

I'm not sure how we can solve that in samba3 as the generated code is commited

Maybe we need to alsways pass --uint-enums

metze
(This used to be commit 9468dcc5d5)
2007-10-10 12:14:43 -05:00
Andrew Tridgell
7c5f1f28db r18870: - enable the ldb ldap backend properly based on configure tests for
ldap

- use ldb_global_init() instead of the backend specific
  ldb_tdb_init().
(This used to be commit a6c53e5861)
2007-10-10 12:14:40 -05:00
Andrew Tridgell
78f2900a16 r18869: two build fixes for systems without ldap
the first is to not enable the ldap ldb backend just yet. This will
need configure tests to conditionally include. We should be able to
use the m4 files from lib/ldb/

The 2nd is to fix libads/gpo.o not to publicly prototype a function
that needs ldap.h
(This used to be commit 1cf17edc14)
2007-10-10 12:14:39 -05:00
Andrew Tridgell
8761f5dcc4 r18867: change the group mapping code to use ldb instead of tdb
See the discussion of this on the samba-technical list
(This used to be commit 4ad1436cea)
2007-10-10 12:14:39 -05:00
Günther Deschner
0d12a35e6b r18817: Enable the build of the gpo tool but do not make it available yet.
Guenther
(This used to be commit 927cda5d31)
2007-10-10 12:01:03 -05:00
Stefan Metzmacher
21931b1ca8 r18810: use a copy of samba4's talloc under lib/talloc/
to make mergeing easier.

metze
(This used to be commit d49ffbc19b)
2007-10-10 12:01:02 -05:00
Jelmer Vernooij
7ba2554d88 r18802: Use the pidl-generated code for the srvsvc interface, both client and server code.
This has had some basic testing. I'll do more during the next couple of days and hopefully also
make RPC-SRVSVC from Samba4 pass against it.
(This used to be commit ef10672399)
2007-10-10 12:00:59 -05:00
Stefan Metzmacher
927e5876ad r18797: fix the loading of pam_winbind.so and libnss_winbind.so
when building with socket wrapper

metze
(This used to be commit 6ad6aba102)
2007-10-10 12:00:58 -05:00
Gerald Carter
eab57a0a0f r18789: Replace the winreg server code with the libndr parsing code.
Many things work (OpenHKLM, etc...) but some still don't.
This shouldn't block anyone so I'm checking it in.
Will probably move to a bzr tree after this for
longer dev cycles between checkins.
(This used to be commit cf1404a0d7)
2007-10-10 12:00:57 -05:00
Gerald Carter
394c0e90c6 r18755: remove accidental commit
(This used to be commit 2e7e8c09e4)
2007-10-10 12:00:54 -05:00
Gerald Carter
05ba38f754 r18747: replace rpccli_lsa_close() with rpccli_lsa_Close()
(This used to be commit 50d74ce048)
2007-10-10 12:00:54 -05:00
Gerald Carter
b7d069097b r18739: * Get the wkssvc patch right this time.
* Remove the old wkssvc server, client, & parsing code.
* Update srv_wkssvc_nt.c with stubs for the remaining
  stubs
(This used to be commit 0cb79ee13f)
2007-10-10 12:00:53 -05:00
Gerald Carter
8126f91375 r18728: revert previous commit until I fix the wkssvc_nt.c changes
(This used to be commit 57d8519185)
2007-10-10 12:00:52 -05:00
Gerald Carter
9dda6cdf4c r18725: Replace out one wkssvc call (wkssrv_GetInfo()) with autogenerated
code.  Removed first rpc_parse/*.c file.  w00t!
(This used to be commit bb9b7a058d)
2007-10-10 12:00:52 -05:00
Gerald Carter
42c5b3b27b r18712: Forgot to remove cmd_reg.o from Makefile
(This used to be commit 9030c46e33)
2007-10-10 12:00:51 -05:00
Günther Deschner
a62f996c5a r18707: Fix the build when you have libnscd installed (which apparently no host
on the buildfarm has).

Guenther
(This used to be commit b0bb364df0)
2007-10-10 12:00:49 -05:00
Günther Deschner
a3e1f7e44d r18703: Fix the annoying effect that happens when nscd is running:
We usually do not get the results from user/group script modifications
immediately. A lot of users do add nscd restart/refresh commands into
their scripts to workaround that while we could flush the nscd caches
directly using libnscd.

Guenther
(This used to be commit 7db6ce295a)
2007-10-10 12:00:49 -05:00
Stefan Metzmacher
a1243ca999 r18698: this stuff isn't needed anymore
metze
(This used to be commit 31b83ff4bd)
2007-10-10 12:00:48 -05:00
Gerald Carter
6ef0edb38e r18666: checking in generated netlogon files
(This used to be commit ac5561103c)
2007-10-10 12:00:45 -05:00
Stefan Metzmacher
a03627afad r18662: print out the failing command for dynconfig.o too
metze
(This used to be commit f51a200f67)
2007-10-10 12:00:44 -05:00
Stefan Metzmacher
21d9351113 r18647: print out the failing cammand, this is very usefull for the build farm
metze
(This used to be commit ab58cd1056)
2007-10-10 11:52:18 -05:00
Stefan Metzmacher
8f153c6128 r18644: bring in libreplace in lib/replace
metze
(This used to be commit 596cbe73dd)
2007-10-10 11:52:03 -05:00
Stefan Metzmacher
47e6b7733a r18640: move to socket_wrapper to lib/socket_wrapper/
and sync it with samba4

metze
(This used to be commit 9c0e5b29f1)
2007-10-10 11:52:03 -05:00
Gerald Carter
738f168ecc r18623: starting on eventlog IDL
(This used to be commit 6cb7b6226d)
2007-10-10 11:52:01 -05:00
Gerald Carter
8dd826f500 r18618: * remove svn:externals
* 'make idl' now requires pidl in the current PATH
* regenerate winreg ndr files
(This used to be commit e936d39e00)
2007-10-10 11:52:00 -05:00
Stefan Metzmacher
1626d2926a r18606: - fix the detection of the working quota implementation
- we now define the set of samba related include path in one place
  so that we can't get it wrong in different places

metze
(This used to be commit 6bf0aad052)
2007-10-10 11:51:59 -05:00
Jeremy Allison
8155621d54 r18603: Add in the NFSv4 ACL mapping code from IBM.
Sorry for the delay :-).
Jeremy.
(This used to be commit a52fa21895)
2007-10-10 11:51:59 -05:00
Jelmer Vernooij
e5db7fee0f r18572: Use the autogenerated client and server for the echo interface and implement
some of the missing functions. RPC-ECHO now passes against Samba3.
(This used to be commit 9e9a053661)
2007-10-10 11:51:51 -05:00
Gerald Carter
c4013df0c1 r18560: * Add in the winreg and initshutdown IDL files
* rename PI_SHUTDOWN from include/smb.h to PI_INITSHUTDOWN
  for compatibility with pidl libndr output
(This used to be commit 23a8828613)
2007-10-10 11:51:50 -05:00
Jelmer Vernooij
71453ab90d r18526: Use generated server for unixinfo RPC interface.
(This used to be commit a5c0606d76)
2007-10-10 11:51:46 -05:00
Jelmer Vernooij
48e2a2bfb7 r18481: Use pidl-generated server side code for dfs.
(This used to be commit 3f337c104d)
2007-10-10 11:51:43 -05:00
Jelmer Vernooij
8be112a81b r18469: Use new pidl-generated DFS client code.
(This used to be commit e277fb067b)
2007-10-10 11:51:43 -05:00
Gerald Carter
85e4a7a5b3 r18394: get the lsa client code to link
(This used to be commit 96e412a04c)
2007-10-10 11:51:21 -05:00
Gerald Carter
415aa96f09 r18275: add auto generated dfs code
(This used to be commit edb7a3607e)
2007-10-10 11:51:19 -05:00
Gerald Carter
2b27c93a9a r18271: Big change:
* autogenerate lsa ndr code
* rename 'enum SID_NAME_USE' to 'enum lsa_SidType'
* merge a log more security descriptor functions from
  gen_ndr/ndr_security.c in SAMBA_4_0

The most embarassing thing is the "#define strlen_m strlen"
We need a real implementation in SAMBA_3_0 which I'll work on
after this code is in.
(This used to be commit 3da9f80c28)
2007-10-10 11:51:18 -05:00
Jelmer Vernooij
1779e3f104 r18233: Use the autogenerated cli_unixinfo rather than the old one.
(This used to be commit eec8b915d1)
2007-10-10 11:51:17 -05:00
Gerald Carter
82ed086618 r18193: Not quite to autogenerated NDR but closer thanks to Jelmer's
initial work.  I'm including the librpc/gen_ndr directory
in svn temporarily just to get some compile issues straightened
out.
(This used to be commit cf271aa433)
2007-10-10 11:51:08 -05:00
Jelmer Vernooij
995205fc60 r18188: merge 3.0-libndr branch
(This used to be commit 1115745cae)
2007-10-10 11:43:56 -05:00
Stefan Metzmacher
958576623f r18065: build talloctort as part of 'make torture'
metze
(This used to be commit 4c7f20c812)
2007-10-10 11:43:25 -05:00
Gerald Carter
f2b3143cf7 r17934: allow srcdir != builddir for 'make test'
(This used to be commit 70f2235549)
2007-10-10 11:39:00 -05:00
Volker Lendecke
4bbb995e8d r17854: Steal the LDAP in NTSTATUS trick from Samba4
Thanks to Michael Adam <ma@sernet.de>

Volker
(This used to be commit 91878f9b6f)
2007-10-10 11:38:54 -05:00
Jelmer Vernooij
fcf90b6dce r17817: Disable compilation of LIBNDR (it uses uint64_t).
(This used to be commit 4928d560b0)
2007-10-10 11:38:51 -05:00
Jelmer Vernooij
08b63552be r17810: Use datarootdir variable generated by newer autoconf versions. (fixes warning)
(This used to be commit 836f04134f)
2007-10-10 11:38:50 -05:00
Gerald Carter
66ef2f3810 r17801: bad merge ? No sure how the second half of the LIBNDR_OBJ value got cut...
(This used to be commit 3662f86f41)
2007-10-10 11:38:48 -05:00
Gerald Carter
5693e6c599 r17798: Beginnings of a standalone libaddns library released under
the LGPL.   Original code by Krishna Ganugapati <krishnag@centeris.com>.
Additional work by me.

It's still got some warts, but non-secure updates do
currently work.  There are at least four things left to
really clean up.

1. Change the memory management to use talloc() rather than
   malloc() and cleanup the leaks.
2. Fix the error code reporting (see initial changes to
   dnserr.h)
3. Fix the secure updates
4. Define a public interface in addns.h
5. Move the code in libads/dns.c into the libaddns/ directory
   (and under the LGPL).

A few notes:

* Enable the new code by compiling with --with-dnsupdate
* Also adds the command 'net ads dns register'
* Requires -luuid (included in the e2fsprogs-devel package).
* Has only been tested on Linux platforms so there may be portability
  issues.
(This used to be commit 36f04674ae)
2007-10-10 11:38:48 -05:00
Volker Lendecke
517efef9a1 r17622: Add a framework for a printing backend designed to support the build farm. If
we want to walk more printing code in the build farm I think doing that with a
customized printing backend is much easier than with a set of shell scripts.

Jerry, comments?

Volker
(This used to be commit 949cd6b992)
2007-10-10 11:38:44 -05:00
Jeremy Allison
b41e14abfd r17610: Added the ability for firefox to drive the winbindd
ntlm_auth module to allow it to use winbindd cached
credentials.The credentials are currently only stored
in a krb5 MIT environment - we need to add an option to
winbindd to allow passwords to be stored even in an NTLM-only
environment.
Patch from Robert O'Callahan, modified with some fixes
by me.
Jeremy.
(This used to be commit ae7cc298a1)
2007-10-10 11:38:43 -05:00
Volker Lendecke
986461b6be r17607: Adapt the Samba4 directory structure for tdb. Makes it easier to diff.
Let's see what it breaks. For me it works :-)

Volker
(This used to be commit 337be14b43)
2007-10-10 11:38:42 -05:00
Volker Lendecke
03e3cd1d5a r17554: Cleanup
(This used to be commit 761cbd52f0)
2007-10-10 11:38:38 -05:00
Volker Lendecke
21da07ba1f r17457: Add a test to do some operations on group mapping.
Volker
(This used to be commit 68db058fdf)
2007-10-10 11:38:35 -05:00
Volker Lendecke
ac9628de48 r17425: Add the multi-key wrapper. If it's necessary to add general blobs as keys,
this can trivially be added later.

Volker
(This used to be commit 6915adb978)
2007-10-10 11:38:33 -05:00
Jeremy Allison
d42a96b3ec r17367: Reverting the ab code. Note I'm not saying this
code is wrong or bad or anything, just that it
needs to be discussed & reviewed on the samba-technical
list before we add a platform-specific NFSv4 mapping.
That way lies a lot of future pain :-).
Jeremy.
(This used to be commit 330899ec30)
2007-10-10 11:38:29 -05:00
Alexander Bokovoy
fbd04d65c5 r17358: Re-add JFS2 NFS4 ACLs support, move readme for it into AIX-specific examples directory.
(This used to be commit c085355c32)
2007-10-10 11:38:28 -05:00
Alexander Bokovoy
16bf23d973 r17354: Revert -r 17353 per Volker request while gpfs compatibility layer code will be released.
(This used to be commit 5b1db01514)
2007-10-10 11:38:27 -05:00
Alexander Bokovoy
4cf5769331 r17353: Add support for JFS2 NFS4/AIXC and GPFS acls based on NFSv4 ACLs.
(This used to be commit 72312cb2e2)
2007-10-10 11:38:27 -05:00
Jelmer Vernooij
ffb9443c20 r17307: Add datarootdir setting (required for newer autoconfs)
(This used to be commit 86687b804a)
2007-10-10 11:38:24 -05:00
Alexander Bokovoy
528477effa r17198: Fix wins_nss dependencies
(This used to be commit c005049043)
2007-10-10 11:38:19 -05:00
Jim McDonough
ba72b0242e r17179: Merge the vl-posixacls tmp branch into mainline. It
modularizes our interface into the special posix API used on
the system. Without this patch the specific API flavor is
determined at compile time, something which severely limits
usability on systems with more than one file system. Our
first targets are AIX with its JFS and JFS2 APIs, at a later
stage also GPFS. But it's certainly not limited to IBM
stuff, this abstraction is also necessary for anything that
copes with NFSv4 ACLs. For this we will check in handling
very soon.

Major contributions can be found in the copyright notices as
well as the checkin log of the vl-posixacls branch. The
final merge to 3_0 post-3.0.23 was done by Peter Somogyi
<psomogyi@gamax.hu>
(This used to be commit ca0c73f281)
2007-10-10 11:38:17 -05:00
Gerald Carter
518c4877dd r17151: revert a few accidental commits to the Makefile
(This used to be commit 3fea233802)
2007-10-10 11:38:16 -05:00