Jelmer Vernooij
6a689c23e8
Rename smbd -> samba.
...
This reverts commit 05ea5e23cf
.
Conflicts:
source4/smbd/server.c
2008-09-24 03:16:15 +02:00
Simo Sorce
508527890a
Merge ldb_search() and ldb_search_exp_fmt() into a simgle function.
...
The previous ldb_search() interface made it way too easy to leak results,
and being able to use a printf-like expression turns to be really useful.
2008-09-23 18:17:46 -04:00
Günther Deschner
a1a92688ba
s4-nbt: use ../libcli/nbt
...
Guenther
2008-09-23 09:37:24 +02:00
Günther Deschner
13a3971438
s4-nbt: use private_data instead of private.
...
Guenther
2008-09-23 09:37:24 +02:00
Jelmer Vernooij
05ea5e23cf
Revert "Rename smbd -> samba."
...
This reverts commit 0e9008be35
.
2008-09-21 21:32:40 +02:00
Jelmer Vernooij
0e9008be35
Rename smbd -> samba.
2008-09-21 21:26:40 +02:00
Stefan Metzmacher
69964a24d7
nbt_server/wins: don't force wins_ldb as shared_module
...
metze
(This used to be commit 861b79c91f
)
2008-06-30 09:25:31 +02:00
Andrew Bartlett
6f55742b4c
Rework samdb handling for 'netlogon' packets.
...
Don't reopen the samdb for every netlogon packet, and use the
system_session(), as we must access data not available to anonymous.
Perhaps we should consider a 'authenticated but not system' token, if
we want more control on this.
Andrew Bartlett
(This used to be commit d10c9b71ea
)
2008-06-30 12:22:50 +10:00
Stefan Metzmacher
be46118091
nbt_server/wins: add forward declaration for struct event_context
...
metze
(This used to be commit 5ff4ffd162
)
2008-06-27 09:46:24 +02:00
Andrew Bartlett
f67156fc92
Extend the 'netlogon' CLDAP and NBT implementation.
...
This now handles checking if the user exists, including validating the
ACB mask on the user.
This would be a nasty security hole, if Kerberos did not already
expose this information anonymously...
Andrew Bartlett
(This used to be commit 441b286c00
)
2008-05-21 12:37:36 +10:00
Andrew Bartlett
fdec7fdaf5
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
...
(This used to be commit 7594f79db6
)
2008-05-21 12:13:45 +10:00
Andrew Bartlett
58375fdff0
Further tests show NTLOGON and NETLOGON to be identical.
...
I can't tell the difference between the NTLOGON and NETLOGON behaviour
on these pipes, and this 'exception' turned out to be alignment
dependent, not pipe dependent.
Andrew Bartlett
(This used to be commit bf1b99aff2
)
2008-05-21 10:18:21 +10:00
Andrew Bartlett
52f0af3990
Fix irpc GetDC requests.
...
We would return NT_STATUS_NO_LOGON_SERVERS in all cases, which was
less than helpful.
Andrew Bartlett
(This used to be commit 5dfa316b36
)
2008-05-20 15:28:26 +10:00
Andrew Bartlett
acba9bc702
Fix number of arguments to IRPC getdc callback.
...
Andrew Bartlett
(This used to be commit 8753ced2f4
)
2008-05-20 14:52:57 +10:00
Andrew Bartlett
aa90730e0c
Revert addition of 'mailslot' parameter.
...
It turns out that the mailslot name (and a useful private prointer) is
provided in the struct dgram_mailslot_handler.
Andrew Bartlett
(This used to be commit e17804b885
)
2008-05-20 11:54:50 +10:00
Andrew Bartlett
343fea32cc
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
...
Fix config.mk due to changing syntax.
Conflicts:
source/libcli/config.mk
source/nbt_server/config.mk
(This used to be commit 6a1c76f29f
)
2008-05-20 08:03:35 +10:00
Jelmer Vernooij
4c70cda986
Fix a couple (well, little more than that..) of typos.
...
(This used to be commit a6b5211994
)
2008-05-18 23:02:47 +02:00
Jelmer Vernooij
4c8756f147
Create prototype headers from Makefile directory, without smb_build in the middle.
...
(This used to be commit f4a77b96f9
)
2008-05-18 22:30:08 +02:00
Jelmer Vernooij
03643aec88
Use variables for source directory in a couple more places.
...
(This used to be commit c41bd3005f
)
2008-05-18 19:54:27 +02:00
Andrew Bartlett
fd0d47b746
Handle netbios domains in the CLDAP server too.
...
This commit also fixes a number of issues found by the NBT-DGRAM and
LDAP-CLDAP tests.
Andrew Bartlett
(This used to be commit 8f99a4b94e
)
2008-05-17 20:53:29 +10:00
Andrew Bartlett
4f557d7954
Show that the NTLOGON and NETLOGON mailslots are *very* similar.
...
Rework the mailslot infrustructure to cope, passing down the mailslot
name so that we can implement both in the same callback function.
Andrew Bartlett
(This used to be commit 89fdd77891
)
2008-05-17 13:24:29 +10:00
Andrew Bartlett
b0f3441516
Make the IRPC GetDC request use SAM_LOGON packets.
...
This also moves the request to the new netlogon structures.
Andrew Bartlett
(This used to be commit 7ed4ba8d1a
)
2008-05-17 12:43:42 +10:00
Jelmer Vernooij
cc9c4aaa8d
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake3
...
Conflicts:
source/Makefile
source/auth/config.mk
source/auth/gensec/config.mk
source/build/m4/public.m4
source/build/make/python.mk
source/build/make/rules.mk
source/build/smb_build/header.pm
source/build/smb_build/main.pl
source/build/smb_build/makefile.pm
source/dsdb/config.mk
source/dsdb/samdb/ldb_modules/config.mk
source/kdc/config.mk
source/lib/events/config.mk
source/lib/events/events.c
source/lib/ldb/config.mk
source/lib/nss_wrapper/config.mk
source/lib/policy/config.mk
source/lib/util/config.mk
source/libcli/smb2/config.mk
source/libnet/config.mk
source/librpc/config.mk
source/nbt_server/config.mk
source/ntptr/ntptr_base.c
source/ntvfs/posix/config.mk
source/ntvfs/sysdep/config.mk
source/param/config.mk
source/rpc_server/config.mk
source/rpc_server/service_rpc.c
source/scripting/ejs/config.mk
source/scripting/python/config.mk
source/smb_server/config.mk
source/smbd/server.c
source/torture/config.mk
source/torture/smb2/config.mk
source/wrepl_server/config.mk
(This used to be commit 13bbd42068
)
2008-04-25 10:04:20 +01:00
Jelmer Vernooij
21fc767378
Specify event_context to ldb_wrap_connect explicitly.
...
(This used to be commit b4e1ae07a2
)
2008-04-17 12:23:44 +02:00
Jelmer Vernooij
e9017ba418
Use _OBJ_FILES variables in a couple more places.
...
(This used to be commit 92856d5054
)
2008-04-14 17:22:58 +02:00
Jelmer Vernooij
b5d84a74d1
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake3
...
Conflicts:
source/auth/credentials/config.mk
source/auth/gensec/config.mk
source/build/smb_build/makefile.pm
source/heimdal_build/config.mk
source/lib/events/config.mk
source/lib/nss_wrapper/config.mk
source/lib/policy/config.mk
source/lib/registry/config.mk
source/lib/socket_wrapper/config.mk
source/lib/tdb/config.mk
source/lib/tls/config.mk
source/lib/util/config.mk
source/libcli/config.mk
source/libcli/ldap/config.mk
source/libnet/config.mk
source/librpc/config.mk
source/param/config.mk
source/rpc_server/config.mk
source/scripting/ejs/config.mk
source/smbd/process_model.mk
(This used to be commit 760378e029
)
2008-04-08 03:45:06 +02:00
Jelmer Vernooij
f41b9a9dde
Rename libsamba-config to libsamba-hostconfig.
...
(This used to be commit c46b7e90e3
)
2008-04-01 15:08:30 +02:00
Jelmer Vernooij
fb6fdfce37
Fix the build.
...
(This used to be commit f2e4974471
)
2008-03-08 17:02:40 +01:00
Jelmer Vernooij
b29d47edcf
Move object file lists to the Makefile.
...
(This used to be commit a7e6d2a183
)
2008-03-03 18:25:28 +01:00
Jelmer Vernooij
c8011b5d09
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake3
...
Conflicts:
source/scripting/python/config.mk
(This used to be commit 0ac0ea660a
)
2008-02-29 12:45:46 +01:00
Jelmer Vernooij
b5bd663690
Fix use of realpath, fix init functions for ldb.
...
(This used to be commit ca510136d2
)
2008-02-25 20:40:37 +01:00
Jelmer Vernooij
c38c2765d1
Remove yet more uses of global_loadparm.
...
(This used to be commit e01c1e87c0
)
2008-02-21 17:17:37 +01:00
Jelmer Vernooij
5f9abf527a
Remove more global_loadparm uses.
...
(This used to be commit 4d6fd9381f
)
2008-02-21 16:18:23 +01:00
Jelmer Vernooij
39a817d310
Fix use of some modules (needed _PUBLIC_).
...
(This used to be commit ce332130ea
)
2008-02-20 04:33:43 +01:00
Jelmer Vernooij
16109a40c0
Use struct-based rather than function-based initialization for ldb modules everywhere.
...
(This used to be commit 85c96a3258
)
2008-02-20 01:54:32 +01:00
Andrew Bartlett
0f8eeb81ec
Remove useless layer of indirection, where every service called
...
task_service_init() manually. Now this is called from service.c for
all services.
Andrew Bartlett
(This used to be commit 9c9a4731ca
)
2008-02-04 21:58:29 +11:00
Andrew Bartlett
23d681caf9
Rework service init functions to pass down service name. This is
...
needed to change prefork behaviour based on what service is being
started.
Andrew Bartlett and David Disseldorp
(This used to be commit 0d830580e3
)
2008-02-04 17:48:51 +11:00
Jelmer Vernooij
df408d056e
r26672: Janitorial: Remove uses of global_loadparm.
...
(This used to be commit 18cd08623e
)
2008-01-05 13:06:03 -06:00
Jelmer Vernooij
2da3464080
r26670: Janitorial: Remove global_loadparm uses.
...
(This used to be commit 13cc6ca1d3
)
2008-01-05 09:42:02 -06:00
Jelmer Vernooij
71e2cafe96
r26483: Merge ldb module dependency fixes, fix auth python module.
...
(This used to be commit 85eeecf997
)
2007-12-21 05:50:41 +01:00
Jelmer Vernooij
aa32619c5c
r26426: Remove uses of global_loadparm.
...
(This used to be commit e1d177c8c1
)
2007-12-21 05:49:52 +01:00
Jelmer Vernooij
4b0199a549
r26409: Pass smb ports along.
...
(This used to be commit 2833f320de
)
2007-12-21 05:49:42 +01:00
Jelmer Vernooij
33582dffcc
r26408: Remove use of global_loadparm.
...
(This used to be commit f933b43621
)
2007-12-21 05:49:39 +01:00
Jelmer Vernooij
70f1f33af8
r26402: Require a talloc context in libnetif.
...
(This used to be commit a35e51871b
)
2007-12-21 05:49:33 +01:00
Jelmer Vernooij
6f2252dace
r26401: Don't cache interfaces context in libnetif.
...
(This used to be commit 9f975417cc
)
2007-12-21 05:49:32 +01:00
Jelmer Vernooij
274d07ddff
r26381: Move global_loadparm higher up the call stack.
...
(This used to be commit 9922967674
)
2007-12-21 05:49:16 +01:00
Jelmer Vernooij
b65738c251
r26359: Build .so version of wins ldb module.
...
(This used to be commit b7bcc49c9a
)
2007-12-21 05:49:03 +01:00
Jelmer Vernooij
c5bf20c5fe
r26325: Remove use of global_loadparm in netif.
...
(This used to be commit e452cb2859
)
2007-12-21 05:48:37 +01:00
Jelmer Vernooij
2f5ca872a8
r26313: Fix more uses of static loadparm.
...
(This used to be commit 6fd0d9d3b7
)
2007-12-21 05:48:25 +01:00
Jelmer Vernooij
d378cf4c15
r26310: Remove more uses of global_loadparm.
...
(This used to be commit 9d806da113
)
2007-12-21 05:48:22 +01:00
Jelmer Vernooij
b84be078c1
r26309: Move specification of port higher up the all stack.
...
(This used to be commit 7de55cde7c
)
2007-12-21 05:48:21 +01:00
Jelmer Vernooij
c9f0011bc5
r26265: Use task-provided loadparm context in nbt and rpc servers.
...
(This used to be commit 75cb7676fd
)
2007-12-21 05:47:39 +01:00
Jelmer Vernooij
ecea5ce245
r26260: Store loadparm context in gensec context.
...
(This used to be commit b9e3a4862e
)
2007-12-21 05:47:34 +01:00
Jelmer Vernooij
291ddf4336
r26237: Add loadparm context to the server service interface.
...
(This used to be commit 1386c5c925
)
2007-12-21 05:47:15 +01:00
Jelmer Vernooij
f4a1083cf9
r26227: Make loadparm_context part of a server task, move loadparm_contexts further up the call stack.
...
(This used to be commit 0721a07aad
)
2007-12-21 05:47:04 +01:00
Jelmer Vernooij
ca0b72a1fd
r26003: Split up DB_WRAP, as first step in an attempt to sanitize dependencies.
...
(This used to be commit 56dfcb4f2f
)
2007-12-21 05:45:40 +01:00
Jelmer Vernooij
b09047b78e
r25624: Remove ipv4_addr hack. Only causes 4 extra includes of system/network.h because we stripped down includes.
...
(This used to be commit 262c1c23a6
)
2007-12-21 05:43:00 +01:00
Jelmer Vernooij
cac2379a2f
r25546: Convert to standard bool type.
...
(This used to be commit ac83dbf199
)
2007-10-10 15:07:52 -05:00
Jelmer Vernooij
2f3551ca7c
r25446: Merge some changes I made on the way home from SFO:
...
2007-09-29 More higher-level passing around of lp_ctx.
2007-09-29 Fix warning.
2007-09-29 Pass loadparm contexts on a higher level.
2007-09-29 Avoid using global loadparm context.
(This used to be commit 3468952e77
)
2007-10-10 15:07:34 -05:00
Jelmer Vernooij
60a1046c5c
r25430: Add the loadparm context to all parametric options.
...
(This used to be commit fd697d77c9
)
2007-10-10 15:07:31 -05:00
Jelmer Vernooij
37d53832a4
r25398: Parse loadparm context to all lp_*() functions.
...
(This used to be commit 3fcc960839
)
2007-10-10 15:07:25 -05:00
Jelmer Vernooij
966f35a6c8
r25363: Move service code to separate module.
...
(This used to be commit 77570e2fb5
)
2007-10-10 15:07:18 -05:00
Jeremy Allison
9a012df08e
r25175: Change to talloc_asprintf_append_buffer().
...
Jeremy.
(This used to be commit 0844dbf597
)
2007-10-10 15:06:46 -05:00
Jelmer Vernooij
98b57d5eb6
r25035: Fix some more warnings, use service pointer rather than service number in more places.
...
(This used to be commit df9cebcb97
)
2007-10-10 15:05:43 -05:00
Jelmer Vernooij
ffeee68e4b
r25026: Move param/param.h out of includes.h
...
(This used to be commit abe8349f9b
)
2007-10-10 15:05:38 -05:00
Jelmer Vernooij
959915a8cb
r25001: Fix more C++ and other warnings, fix some of the indentation with ts=4 lines that I accidently added earlier.
...
(This used to be commit 0bcb21ed74
)
2007-10-10 15:05:28 -05:00
Jelmer Vernooij
61ffa08f4c
r24712: No longer expose the 'BOOL' data type in any interfaces.
...
(This used to be commit 1ce32673d9
)
2007-10-10 15:02:54 -05:00
Andrew Bartlett
58d9f6ed9d
r24246: Avoid the annoying 'probable memory leak in ldb' messages, by fixing
...
some issues in the NBT server (this was a false positive, but easily
worked around) and DRSUAPI server.
We should take care not to use the ldb_context as a talloc pool, and
to always ensure that any results from ldb_search() are moved off that
pool with talloc_steal or talloc_free().
To work around the issue in provision, for which I can find no fault
(other than a lot of work being done in provision), I've moved the
detector trigger to 400 additional blocks.
This fixes Bug #4810 by <mwallnoefer@yahoo.de>
Andrew Bartlett
(This used to be commit 42bcf85620
)
2007-10-10 15:01:29 -05:00
Andrew Tridgell
0479a2f1cb
r23792: convert Samba4 to GPLv3
...
There are still a few tidyups of old FSF addresses to come (in both s3
and s4). More commits soon.
(This used to be commit fcf38a38ac
)
2007-10-10 14:59:12 -05:00
Jelmer Vernooij
cc26fe9b74
r22762: Some ldb_map changes:
...
* Change license to LGPL, so it can be used by non-Samba users of
LDB (cleared with Martin as well).
* Include ldb_map in standalone build.
* Move ldb_map to its own directory
(This used to be commit a90202abca
)
2007-10-10 14:52:15 -05:00
Stefan Metzmacher
35ffca8932
r22403: this dependencies should be private
...
metze
(This used to be commit c3cc03ffb2
)
2007-10-10 14:51:14 -05:00
Stefan Metzmacher
1f2b94b7b7
r21317: this happens very often when you have multihomed nodes
...
and isn't an error.
metze
(This used to be commit 6f5e084a7b
)
2007-10-10 14:48:09 -05:00
Stefan Metzmacher
18732ba952
r21086: add some notes
...
metze
(This used to be commit dfbdb95841
)
2007-10-10 14:44:29 -05:00
Stefan Metzmacher
3d409a43f4
r21085: implement something like the parameter
...
HKEY_LOCAL_MACHINE\System\CurrentControlset\Services\WINS\Parameters\Randomize1CList
nbtd:wins_randomize1Clist=yes
nbtd:wins_randomize1Clist_mask=255.255.0.0
metze
(This used to be commit eee635ab4d
)
2007-10-10 14:44:28 -05:00
Stefan Metzmacher
6c138c8a58
r21059: add an option to implement what windows wins server confgure via
...
HKEY_LOCAL_MACHINE\System\CurrentControlset\Services\WINS\Parameters\Prepend1BTo1CQueries
nbtd:wins_prepend1Bto1Cqueries=no will turn it off
metze
(This used to be commit 5362eede6b
)
2007-10-10 14:44:26 -05:00
Andrew Bartlett
d471e52d23
r20149: Remove the smb.conf distinction between PDC and BDC. Now the correct
...
way to setup a Samba4 DC is to set 'server role = domain controller'.
We use the fSMORoleOwner attribute in the base DN to determine the PDC.
This patch is quite large, as I have corrected a number of places that
assumed taht we are always the PDC, or that used the smb.conf
lp_server_role() to determine that.
Also included is a warning fix in the SAMR code, where the IDL has
seperated a couple of types for group display enumeration.
We also now use the ldb database to determine if we should run the
global catalog service.
In the near future, I will complete the DRSUAPI
DsGetDomainControllerInfo server-side on the same basis.
Andrew Bartlett
(This used to be commit 67d8365e83
)
2007-10-10 14:29:15 -05:00
Simo Sorce
a9e31b33b5
r19832: better prototypes for the linearization functions:
...
- ldb_dn_get_linearized
returns a const string
- ldb_dn_alloc_linearized
allocs astring with the linearized dn
(This used to be commit 3929c086d5
)
2007-10-10 14:28:22 -05:00
Simo Sorce
4889eb9f7a
r19831: Big ldb_dn optimization and interfaces enhancement patch
...
This patch changes a lot of the code in ldb_dn.c, and also
removes and add a number of manipulation functions around.
The aim is to avoid validating a dn if not necessary as the
validation code is necessarily slow. This is mainly to speed up
internal operations where input is not user generated and so we
can assume the DNs need no validation. The code is designed to
keep the data as a string if possible.
The code is not yet 100% perfect, but pass all the tests so far.
A memleak is certainly present, I'll work on that next.
Simo.
(This used to be commit a580c871d3
)
2007-10-10 14:28:22 -05:00
Stefan Metzmacher
65a50f46c8
r19699: - use better names for the site strings
...
- use the client_site when creating the server object
metze
(This used to be commit b02d0e1be3
)
2007-10-10 14:28:12 -05:00
Simo Sorce
b7774527fa
r19531: Make struct ldb_dn opaque and local to ldb_dn.c
...
(This used to be commit 889fb983ba
)
2007-10-10 14:24:44 -05:00
Simo Sorce
7f833458ca
r19489: Change ldb_msg_add_value and ldb_msg_add_empty to take a foruth argument.
...
This is a pointer to an element pointer. If it is not null it will be
filled with the pointer of the manipulated element.
Will avoid double searches on the elements list in some cases.
(This used to be commit 0fa5d4bc22
)
2007-10-10 14:24:38 -05:00
Simo Sorce
59b66744f7
r19299: Fix possible memleaks
...
(This used to be commit 6fad80bb09
)
2007-10-10 14:21:04 -05:00
Andrew Bartlett
f1ed6d2c9b
r19262: Don't DEBUG() an unitialised variable
...
(This used to be commit 548c682fe5
)
2007-10-10 14:20:59 -05:00
Stefan Metzmacher
eb06c35f12
r19092: active replica records cannot expire!
...
we handle that in the scavenging code, but were missing that
in the wins server name query code...
metze
(This used to be commit 7fb8dd3ab7
)
2007-10-10 14:20:34 -05:00
Andrew Bartlett
d21cb7e2d2
r18434: Fix typo...
...
(This used to be commit 4f235b88aa
)
2007-10-10 14:18:28 -05:00
Andrew Bartlett
7d2a820157
r18433: Make sure to search below the partitions baseDN for the netbios name.
...
I think we should have a helper function for this search, we do it too
often...
Andrew Bartlett
(This used to be commit 09327baa0d
)
2007-10-10 14:18:28 -05:00
Jelmer Vernooij
0329d755a7
r17930: Merge noinclude branch:
...
* Move dlinklist.h, smb.h to subsystem-specific directories
* Clean up ads.h and move what is left of it to dsdb/
(only place where it's used)
(This used to be commit f7afa1cb77
)
2007-10-10 14:16:54 -05:00
Andrew Tridgell
b21b119cbc
r17824: add a wrapper for the common partitions_basedn calculation
...
(This used to be commit 09007b0907
)
2007-10-10 14:16:45 -05:00
Stefan Metzmacher
1713b43c1a
r17792: io.out.winsserver is a const char *,
...
and iname->winserver = talloc_steal(iname, io.out.winsserver)
generated a warning, so I changed iname->winsserver to also
be a const char *.
then a talloc_free(iname->winsserver) would generate a warning,
but we can steal it into the tmp_ctx without a warning
and that gets free'ed a few lines later.
metze
(This used to be commit fdef17f81e
)
2007-10-10 14:16:43 -05:00
Andrew Bartlett
0148cfae31
r17634: Kill off another case where we used dnsDomain, and point it again at
...
dnsRoot.
Fix to read the nETBIOSName from the correct result.
Andrew Bartlett
(This used to be commit dc37c48724
)
2007-10-10 14:16:18 -05:00
Stefan Metzmacher
a2eca9174c
r17586: merge lib/netif into lib/socket and use -lnsl -lsocket on the
...
configure check for the interfaces.
should fix the build on some old sun boxes
metze
(This used to be commit f20e251bfd
)
2007-10-10 14:15:39 -05:00
Simo Sorce
a23b63a8e5
r17516: Change helper function names to make more clear what they are meant to do
...
(This used to be commit ad75cf8695
)
2007-10-10 14:15:31 -05:00
Simo Sorce
faed817506
r17514: Simplify the way to set ldb errors and add another
...
helper function to set them.
(This used to be commit 260868bae5
)
2007-10-10 14:15:31 -05:00
Andrew Bartlett
3b87db5062
r16239: Search for the domain in the correct partition, so this will work with
...
LDAP backends.
Andrew Bartlett
(This used to be commit 270a77bfff
)
2007-10-10 14:09:08 -05:00
Stefan Metzmacher
9796f75568
r15956: fix warnings
...
metze
(This used to be commit e874a09966
)
2007-10-10 14:08:44 -05:00
Simo Sorce
2d19dca9c8
r15944: rename LDB_ASYNC_ADD -> LDB_ADD, LDB_ASYNC_MODIFY -> LDB_MODIFY, etc...
...
(This used to be commit 55d97ef88f
)
2007-10-10 14:08:43 -05:00
Simo Sorce
0c7b82e5f6
r15942: Remove the sync internal ldb calls altogether.
...
This means that some modules have been disabled as well as they
have not been ported to the async interface
One of them is the ugly objectclass module.
I hope that the change in samldb module will make the MMC happy
without the need of this crappy module, we need proper handling
in a decent schema module.
proxy and ldb_map have also been disabled
ldb_sqlite3 need to be ported as well (currenlty just broken).
(This used to be commit 51083de795
)
2007-10-10 14:08:43 -05:00
Simo Sorce
3a4d7eb2c0
r15927: Optimize ldb module traverse while keeping the API intact.
...
I was sick of jumping inot each module for each request,
even the ones not handle by that module.
(This used to be commit 7d65105e88
)
2007-10-10 14:08:41 -05:00
Jelmer Vernooij
806c5c9621
r15371: Revert some of my previous patch as it was breaking the plain build
...
(This used to be commit fac9871122
)
2007-10-10 14:05:28 -05:00
Jelmer Vernooij
47bf79eac5
r15370: Fix more dependencies for shared libs
...
(This used to be commit 9a518661fb
)
2007-10-10 14:05:27 -05:00
Jelmer Vernooij
b00c236906
r15301: Use static libraries internally. This required a few hacks in the build
...
system - these should be removed later on.
(This used to be commit 0654739166
)
2007-10-10 14:05:07 -05:00
Jelmer Vernooij
69b51f702a
r15207: Introduce PRIVATE_DEPENDENCIES and PUBLIC_DEPENDENCIES as replacement
...
for REQUIRED_SUBSYSTEMS.
(This used to be commit adc8a019b6
)
2007-10-10 14:04:18 -05:00
Stefan Metzmacher
767685e9fd
r14709: allways use the unicast socket of the interface, when reply to DGRAM
...
requests...
this fixes a bug where I thought windows would try KRB5 via broadcast...
metze
(This used to be commit 0e7b224294
)
2007-10-10 13:59:11 -05:00
Jelmer Vernooij
bb1909e15e
r14592: Add support for loading shared modules to LDB.
...
(This used to be commit f10fae23f0
)
2007-10-10 13:58:58 -05:00
Jelmer Vernooij
9565c70898
r14567: Make some more functions public.
...
(This used to be commit 8e84e6cb6b
)
2007-10-10 13:58:48 -05:00
Jelmer Vernooij
8528016978
r14464: Don't include ndr_BASENAME.h files unless strictly required, instead
...
try to include just the BASENAME.h files (containing only structs)
(This used to be commit 3dd477ca51
)
2007-10-10 13:57:27 -05:00
Simo Sorce
753bf8fb99
r14459: Make this async compatible
...
(This used to be commit a71d762acf
)
2007-10-10 13:57:27 -05:00
Jelmer Vernooij
e3f2414cf9
r14380: Reduce the size of structs.h
...
(This used to be commit 1a16a6f1df
)
2007-10-10 13:57:16 -05:00
Stefan Metzmacher
651ca6553e
r14079: I just found the setproctitle library from alt linux:-)
...
- add set_title hook to the process models
- use setproctitle library in process_model standard if available
- the the title for the task servers and on connections
metze
(This used to be commit 526f20bbec
)
2007-10-10 13:56:49 -05:00
Stefan Metzmacher
60823d1878
r14078: move ldb_global_init() to the main smbd code,
...
to fix the process_model standard
metze
(This used to be commit a465126e15
)
2007-10-10 13:56:49 -05:00
Jelmer Vernooij
ceb6e9717b
r13960: Generate makefile rules for installing/removing shared modules.
...
(This used to be commit 2c74698032
)
2007-10-10 13:52:32 -05:00
Stefan Metzmacher
c9e5d884fc
r13941: fix the build
...
metze
(This used to be commit d9da948b0f
)
2007-10-10 13:52:29 -05:00
Stefan Metzmacher
0cbc447101
r13933: fix dependency and make it possible to build as shared_library
...
metze
(This used to be commit 159a98a28a
)
2007-10-10 13:52:28 -05:00
Jelmer Vernooij
9bd7dd9121
r13926: More header splitups.
...
(This used to be commit 930daa9f41
)
2007-10-10 13:52:26 -05:00
Jelmer Vernooij
4ac2be9958
r13924: Split more prototypes out of include/proto.h + initial work on header
...
file dependencies
(This used to be commit 1228358767
)
2007-10-10 13:52:24 -05:00
Stefan Metzmacher
de3867e712
r13807: print out the netbios name the packet is for
...
metze
(This used to be commit e73cc5060c
)
2007-10-10 13:52:12 -05:00
Jelmer Vernooij
26af14c39b
r13786: [merge] Add registration functions for LDB modules
...
Applications that use LDB modules will now have to run ldb_global_init()
before they can use LDB.
The next step will be adding support for loading LDB modules from .so
files. This will also allow us to use one LDB without difference between the
standalone and the Samba-specific build
(This used to be commit 52a2356505
)
2007-10-10 13:52:11 -05:00
Simo Sorce
d590dea10b
r13615: Make ldb_set_errstring get ldb instead of module as parameter.
...
The module was just used to get to the ldb so it was meningless.
Also add LDB_WAIT_ONCE e relative code in ldb_ildap.c
(This used to be commit d5b467b7c1
)
2007-10-10 13:51:59 -05:00
Andrew Tridgell
048704a7e5
r13505: allow servers to bind to non-broadcast interfaces. Servers now
...
specifically ask for iface_n_bcast() and have to check if it returns
NULL, in which case it is a non-broadcast interface
(This used to be commit d004e250b6
)
2007-10-10 13:51:56 -05:00
Stefan Metzmacher
d3fd4c466f
r13117: the caller may reference the winsdb_addr struct,
...
and as a winsdb_record has a short lifetime, it's no problem
to not free unused addresses directly
metze
(This used to be commit 2a7e22c117
)
2007-10-10 13:51:27 -05:00
Stefan Metzmacher
8311b9e9e7
r13116: make sure we don't add more than 25 addresses to a record,
...
and don't return more than 25 in a name query reply
we now also order the addresses from the newest owned address
to the oldest replica address
metze
(This used to be commit 602ec0f1c6
)
2007-10-10 13:51:27 -05:00
Stefan Metzmacher
5304f34132
r13115: call the wins hook script on modifications of the wins.ldb
...
tridge: can you please look at the /* TODO: close file handles */
btw I'm not interessted in any result from the script...
metze
(This used to be commit 93409faddf
)
2007-10-10 13:51:27 -05:00
Stefan Metzmacher
dd5afc5a77
r13087: don't store timestamps for static records
...
(only a per record timestamp when it's not active)
metze
(This used to be commit aba54b8708
)
2007-10-10 13:51:23 -05:00
Stefan Metzmacher
f25ad21617
r13060: - return only active addresses in name query responses
...
- replicate only active addresses
metze
(This used to be commit 6325abd95c
)
2007-10-10 13:51:20 -05:00
Stefan Metzmacher
eead6d310b
r13007: let our winsclient code register multihomed records with
...
our winsserver and don't defend our local name against
our own register packets...
this won gave quite confusing logmessages...
metze
(This used to be commit 31ce24d7b1
)
2007-10-10 13:51:17 -05:00
Stefan Metzmacher
c63937a1c0
r13006: always debug the unicast and broadcast address
...
metze
(This used to be commit f7481a4c8c
)
2007-10-10 13:51:17 -05:00
Stefan Metzmacher
ba4df97eb9
r13005: - use nbtd:max_refresh_time=12345 also for name refresh with a wins server
...
metze
(This used to be commit 5e3639edaf
)
2007-10-10 13:51:17 -05:00
Stefan Metzmacher
044c570ea9
r12958: don't bind to '255.255.255.255'
...
fix bug #3411
metze
(This used to be commit 2cb587c779
)
2007-10-10 13:51:12 -05:00
Stefan Metzmacher
b71075e836
r12934: do somemore debugging of the received browse packets,
...
(so I may learn about the protocol, while watching the debug output)
metze
(This used to be commit 40d7033a14
)
2007-10-10 13:51:11 -05:00
Stefan Metzmacher
cd9752d61f
r12909: add an ldb module for the wins.ldb,
...
it currently doesn't do much, but it's later
prevent adding corrupted records via ldbedit,
and will take care of the versionID counter
metze
(This used to be commit a6f279bc43
)
2007-10-10 13:51:02 -05:00
Stefan Metzmacher
4c117a001f
r12906: return the correct nb_flags
...
metze
(This used to be commit c52436108d
)
2007-10-10 13:51:01 -05:00
Stefan Metzmacher
c4a5381154
r12898: prepare the 'wins hook' feature, but we only debug out a 'TODO: run script ...'
...
metze
(This used to be commit d28c8ce66d
)
2007-10-10 13:51:00 -05:00
Stefan Metzmacher
f3ef8fc691
r12897: make it possible to use nosync transaction to speed things up,
...
(just for testing)
metze
(This used to be commit 677c1aa466
)
2007-10-10 13:51:00 -05:00
Andrew Bartlett
f55ea8bb3d
r12804: This patch reworks the Samba4 sockets layer to use a socket_address
...
structure that is more generic than just 'IP/port'.
It now passes make test, and has been reviewed and updated by
metze. (Thankyou *very* much).
This passes 'make test' as well as kerberos use (not currently in the
testsuite).
The original purpose of this patch was to have Samba able to pass a
socket address stucture from the BSD layer into the kerberos routines
and back again. It also removes nbt_peer_addr, which was being used
for a similar purpose.
It is a large change, but worthwhile I feel.
Andrew Bartlett
(This used to be commit 88198c4881
)
2007-10-10 13:49:57 -05:00
Stefan Metzmacher
d93e1b018e
r12779: allow static tomstones
...
metze
(This used to be commit 966872646e
)
2007-10-10 13:49:54 -05:00
Stefan Metzmacher
da8151ae9f
r12755: check the return value of ldb_timestring(), as this fails,
...
when gmtime() fails...
metze
(This used to be commit 523746f271
)
2007-10-10 13:49:50 -05:00
Stefan Metzmacher
a417674925
r12700: fix name release of replica records, we need to become the owner and allocate a new versionID
...
so that it gets replicated to the old owning wins server directly
metze
(This used to be commit 72198f00ea
)
2007-10-10 13:49:41 -05:00
Stefan Metzmacher
6d16a217d3
r12673: create functions for get_maxVersion(), set_maxVersion() and get_seqnumber()
...
at the winsdb layer. the ones in wrepl_server/ will be removed later.
metze
(This used to be commit 22cdbc75df
)
2007-10-10 13:49:36 -05:00
Stefan Metzmacher
c4d0b5729a
r12648: implement the dns proxy feature
...
metze
(This used to be commit b07b201c86
)
2007-10-10 13:49:34 -05:00
Stefan Metzmacher
24c54281a9
r12647: make use of the str_list_add function
...
metze
(This used to be commit e47873a1a3
)
2007-10-10 13:49:34 -05:00
Stefan Metzmacher
706ef631f7
r12644: prepare the dns proxy feature for the wins server
...
metze
(This used to be commit 48842cd9ab
)
2007-10-10 13:49:34 -05:00
Stefan Metzmacher
5a26b2d72b
r12619: make sure we don't return more than 25 addresses, as w2k3 crashes in that case
...
I still need to make sure we didn't write such records to our database...
metze
(This used to be commit d0dc0ffa31
)
2007-10-10 13:49:05 -05:00
Stefan Metzmacher
905c3ff8e1
r12618: use our primary interface address or the "winsdb:local_owner" -address
...
as winsOwner: attrbute for owned records
metze
(This used to be commit 37dece8304
)
2007-10-10 13:49:05 -05:00
Stefan Metzmacher
0391b1cb3a
r12617: create a winsdb_handle and pass that arround,
...
so we later can hang the local owner address, on this handle too
metze
(This used to be commit 49ba4cc111
)
2007-10-10 13:49:05 -05:00
Stefan Metzmacher
bb8a5a2a1e
r12609: - add some comments to a change that went in in the last 'fix the build' commit
...
- we need to reply to name queries with the recursion desired bit set,
to pass the multi homed challenge, when registering our interfaces
with a wins server
metze
(This used to be commit 9dfbce5f34
)
2007-10-10 13:49:04 -05:00
Jelmer Vernooij
d4de4c2d21
r12608: Remove some unused #include lines.
...
(This used to be commit 70e7449318
)
2007-10-10 13:49:03 -05:00
Stefan Metzmacher
ab8cd4470c
r12607: fix the build
...
metze
(This used to be commit 5cc955bf54
)
2007-10-10 13:49:03 -05:00
Stefan Metzmacher
805f5d861f
r12606: - fix multihomed registrations
...
always remove the addresses which are no longer valid
- use the wins_challenge_send/recv calls which are also used by the replication
challenge
metze
(This used to be commit 037b5d9f36
)
2007-10-10 13:49:03 -05:00
Stefan Metzmacher
70a15ba4df
r12580: return the first 0x1B address as first address to 0x1C queries
...
metze
(This used to be commit 669009579d
)
2007-10-10 13:48:56 -05:00
Stefan Metzmacher
2842acf5e3
r12578: - w2k3 allows entries with 127.0.0.1 as address, so we should do
...
to make it possible to add a static record for localhost or so...
- we already make sure we don't register 127.0.0.1 with our wins server,
so the check for loopback in the non-wins name queries is enough
metze
(This used to be commit f68a883daf
)
2007-10-10 13:48:56 -05:00