1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00
Commit Graph

17225 Commits

Author SHA1 Message Date
Jelmer Vernooij
3994c42f19 Fix number of arguments for file_load() functions. 2008-10-12 19:46:38 +02:00
Jelmer Vernooij
9f2ed1e00f Share RPC binding string utility functions. 2008-10-12 19:05:46 +02:00
Jelmer Vernooij
edff62a31e Remove gencache in Samba 4 - it's unused and behind on the Samba 3
version.
2008-10-12 18:36:36 +02:00
Jelmer Vernooij
cbe4f1b4fa Move zlib to top-level root. 2008-10-12 18:29:36 +02:00
Jelmer Vernooij
45b340dd19 Remove unused json code. 2008-10-12 18:28:54 +02:00
Jelmer Vernooij
1b99d8fbb5 Use common util_file code. 2008-10-12 17:34:43 +02:00
Jelmer Vernooij
652f0e601d Move nmblookup to same location as the rest of the NBT client library. 2008-10-12 17:34:28 +02:00
Jelmer Vernooij
5c090e5cda Import Winbind NSS file for NetBSD in an attempt to fix the build on
NetBSD.
2008-10-12 04:54:16 +02:00
Jelmer Vernooij
0d99e58f27 Fix include paths for files that aren't compiled - breaks dependency
file generation.
2008-10-12 04:41:53 +02:00
Jelmer Vernooij
df8885f1c6 Fix installation source locations for ../lib/util headers. 2008-10-12 04:15:32 +02:00
Jelmer Vernooij
5237369ad8 Fix warning, prototype. 2008-10-12 02:59:30 +02:00
Jelmer Vernooij
d7371dae24 Add one-test testsuite for datablob. 2008-10-12 01:56:11 +02:00
Jelmer Vernooij
218f482fbf Use common strlist implementation in Samba 3 and Samba 4. 2008-10-12 00:56:56 +02:00
Jelmer Vernooij
75a36a9a54 Add some simple tests for lib/util/time.c 2008-10-11 23:25:35 +02:00
Jelmer Vernooij
06cdfb17b9 Support "make test-X" to run all tests that match regex X. 2008-10-11 22:22:29 +02:00
Jelmer Vernooij
2911b792ca Fix include, clean up .o files in ../lib and ../libcli
Conflicts:

	source4/Makefile
2008-10-11 21:33:55 +02:00
Jelmer Vernooij
5c44ed6954 Clean up properly. 2008-10-11 21:33:15 +02:00
Jelmer Vernooij
9565999755 Fix include paths to new location of libutil. 2008-10-11 21:31:42 +02:00
Jelmer Vernooij
caa4e42860 Move lib/util from source4 to top-level libutil.
Conflicts:

	source4/Makefile
2008-10-11 21:05:38 +02:00
Jelmer Vernooij
4604ca4302 Provide malloc_array() in Samba 4. 2008-10-11 21:03:12 +02:00
Jelmer Vernooij
2c4391e950 Provide the same set of helper functions for DEBUG in Samba 3 and Samba
4, even though the macros are still different.

This makes it possible to use object code compiled with one DEBUG()
macro from the other sourceX directory.
2008-10-11 20:44:19 +02:00
Jelmer Vernooij
63291018df Use const. 2008-10-10 15:00:35 +02:00
Tim Prouty
9b331df412 Add support for autogen to take a --version-file argument 2008-10-09 19:12:36 -07:00
Jelmer Vernooij
71ef7ae824 Remove duplicate copy of manual page. 2008-10-08 12:08:52 +02:00
Jelmer Vernooij
08223692c6 fix libclinbtsrcdir variable. 2008-10-08 12:03:45 +02:00
Jelmer Vernooij
6e493fc631 Add manpage for nmblookup, move nmblookup closer to nbt library. 2008-10-08 11:56:46 +02:00
Jelmer Vernooij
f8a02a1a80 Fix subunit files location after cherrypicks. 2008-10-08 03:33:38 +02:00
Jelmer Vernooij
f9facb5120 Move all subunit files to lib directory. 2008-10-08 02:22:39 +02:00
Jelmer Vernooij
99b2089752 Merge branch 'master' of ssh://git.samba.org/data/git/samba 2008-10-08 02:21:49 +02:00
Jelmer Vernooij
68837ff597 Fix syntax errors in minschema. 2008-10-08 02:20:14 +02:00
Jelmer Vernooij
3ecde315d3 Import tests for subunit python module. 2008-10-08 02:19:59 +02:00
Jelmer Vernooij
8da78b7325 Move subunit helper utility to specific subunit directory. 2008-10-08 02:19:59 +02:00
Jelmer Vernooij
c024fb7d57 Allow 'make testenv-dc', 'make testenv-member', etc. 2008-10-08 02:19:24 +02:00
Andrew Bartlett
e0a4d7f467 Set default trust kvno to -1 2008-10-06 14:28:27 -07:00
Andrew Bartlett
c3b28c7a81 Fix cross-realm authentication in Samba4's KDC. 2008-10-06 14:28:27 -07:00
Andrew Bartlett
6a5547742f Allow the PAC to be passed along during cross-realm authentication 2008-10-06 14:28:27 -07:00
Andrew Bartlett
912209ac84 Use the trust password version as kvno for trusts in Kerberos. 2008-10-06 14:28:26 -07:00
Andrew Bartlett
320d402180 Start implementing AD-style trusted domains in Samba4's NETLOGON server 2008-10-06 14:28:26 -07:00
Andrew Bartlett
1a29fd1cf5 Store trusted domain passwords in the LSA server 2008-10-06 14:28:26 -07:00
Andrew Bartlett
99d0eb4fb7 Make RPC-LSA test for enumeration conditions more strict 2008-10-06 14:28:25 -07:00
Andrew Bartlett
8e1c0470d7 Add in secure channel type used by AD trusts 2008-10-06 14:28:25 -07:00
Andrew Bartlett
8cdb3ebe27 Clarify use of manual parsers in trustInOutBlob (drsblobs.idl) 2008-10-06 14:28:25 -07:00
Andrew Bartlett
8256717c76 Implement 'type unknown' names in the CrackNames code.
This guesses the type by running each of the possible options.

Andrew Bartlett
2008-10-06 14:28:24 -07:00
Andrew Bartlett
c0240d7835 Remove compleatly bogus rename test in partitions module. 2008-10-06 14:16:30 -07:00
Andrew Bartlett
7d9f18609b Remove DESCRIPTION from generated schema lines.
This is not permitted in the AD aggregate schema, and more trouble
than it is worth in the OpenLDAP schema due to escaping issues.

Andrew Bartlett
2008-10-06 14:16:30 -07:00
Andrew Bartlett
c412a930ad Fix Domain Trust creation with Windows 2008 (and many other tools)
A dITConentRules attribute (unlike objectClasses) must not contain a
'SUP'.

The ADSI layer in Windows would download the whole schema, and
validate it.  Thanks to the team at Microsoft for very long debugging
session to find this.

Andrew Bartlett
2008-10-06 14:16:29 -07:00
Stefan Metzmacher
9e492b1ba2 s4:rpc_server: tell the gensec layer that we want to do header signing
Note: header signing is still off by default, as the gensec backends
      don't support it together with seal yet.

metze
2008-10-06 19:45:55 +02:00
Stefan Metzmacher
999b69d176 s4:gensec: pass down want_features to the spnego backend mech
metze
2008-10-06 19:21:44 +02:00
Volker Lendecke
1a228b442e smbd3 is unhappy if stderr is not open 2008-10-05 22:15:40 +02:00
Volker Lendecke
9542b2fe60 Re-enable build of smb_samba3.c after the rename smbd->samba 2008-10-05 16:59:09 +02:00
Andrew Tridgell
de5edb1d0c remove dependencies on my home domain
(in other words, don't do commits in airports)
2008-10-05 15:48:46 +11:00
Andrew Tridgell
fe67306fc6 removed some debug lines I left in the last commit 2008-10-05 08:17:16 +11:00
Andrew Tridgell
ba5ef49f83 updated the LSA and NETLOGON servers with fixes resulting from the AD
plugfest in Redmond
2008-10-03 17:52:59 -07:00
Andrew Tridgell
025ff92f59 expanded the netlogon test to better simulate the WSPP NRPC test that
we had some trouble with
2008-10-03 17:10:53 -07:00
Andrew Tridgell
23ec448f83 Merge commit 'master/master' 2008-10-03 12:23:00 -07:00
Andrew Tridgell
163fa1d25a fixed the partition module and the GC handling
- when multiple partitions are searched, consider the search a
   success if any of the partitions return success
 
 - only search the right subset of partitions, looking at the scope
   and basedn of the search

This fixes several errors with GC searches
2008-10-03 12:21:53 -07:00
Matthias Dieter Wallnöfer
63e908e4b4 Fix regressions in patchfile after last patch, several other minor fixes. 2008-10-03 14:29:47 +02:00
Andrew Tridgell
c5fdb82d32 fixed the sense of ldb base dn comparisons in two places, and use a
direct comparison instead of a sub-tree comparison in another

this fixes basedn searches on the global catalog port
2008-10-02 21:58:46 -07:00
Andrew Tridgell
bfb3bf6eb0 fixed a talloc error in the rpc handle desctructor - destructors
should not try to free the ptr they are given
2008-10-02 21:57:27 -07:00
Andrew Tridgell
89a67bb60c we need to listen on all interfaces in the CLDAP server as the windows
CDLAP client ignores replies from the wrong IP
2008-10-02 21:55:26 -07:00
Simo Sorce
b174765d54 Fix crash bugs in error paths: ac is not yet initialized here, and we don't
need to call ldb_module_done in the main module functions, we can directly
return an error. ldb_module_done() is for callbacks
2008-10-02 17:15:00 -04:00
Stefan Metzmacher
05994005a3 s4:setup: add wellknownObjects to the domain object
metze
2008-10-02 18:56:09 +02:00
Stefan Metzmacher
3c9f3c32d1 s4:drsuapi.idl: fix some fields in drsuapi_DsRemoveDSServer()
metze
2008-10-02 12:20:59 +02:00
Stefan Metzmacher
1e24fd3ba2 s4:rootdse: for now don't pass down controls for the rootdse search
metze
2008-10-02 12:20:58 +02:00
Stefan Metzmacher
81b3358f2a s4:partition: register DOMAIN_SCOPE and SEARCH_OPTIONS controls
metze
2008-10-02 12:20:58 +02:00
Stefan Metzmacher
551bbd853c s4:partition: pass down the SEARCH_OPTIONS control as uncritical
metze
2008-10-02 12:20:58 +02:00
Stefan Metzmacher
3ebf3f316b s4:linked_attributes: fix a crash bug when the definition of a target attribute is missing
Windows 2003 has a broken schema where the definition of msDS-IsDomainFor
is missing (which is supposed to be the backlink of the msDS-HasDomainNCs
attribute.

Our schema is extracted from windows 2003, so we have the problem.

As the NET-API-BECOME-DC test triggers this bug, windows 2003
seems to just skip creating a backlink.

metze
2008-10-02 12:20:57 +02:00
Stefan Metzmacher
8aff443030 s4:kludge_acl: just fake support for the SD_FLAGS control
metze
2008-10-02 12:20:57 +02:00
Stefan Metzmacher
aec5a08774 s4:extended_dn: add support for <GUID=...>, <SID=...> or <WKGUID=...,DC=...> as basedn
We resolve them into the real basedn before do the real search.

metze
2008-10-02 12:20:40 +02:00
Stefan Metzmacher
5fc7fb48a0 s4:lib/ldb: fix stupid <SID=...> dn parsing bugs
metze
2008-10-02 11:41:10 +02:00
Volker Lendecke
af1c802791 The IRIX compiler does not like embedded unnamed unions 2008-10-02 08:09:25 +02:00
Andrew Tridgell
14378d7c4c add a test for a LSA lookupnames with a NULL string 2008-09-30 14:03:01 -07:00
Andrew Tridgell
2c978bbfa9 handle NULL strings in strchr_m() and strrchr_m()
This is needed for the LSA server code which needs to cope with a NULL
names passed to lsa_LookupNames3()
2008-09-30 13:57:23 -07:00
Andrew Tridgell
69fe3a5ddd fixed a number of places in our LSA server where we should return the
sid/name array even when all are unmapped. If we don't fill in the
array then the windows client runtime crashes
2008-09-30 13:42:30 -07:00
Andrew Tridgell
f84093df86 Merge branch 'master' of ssh://git.samba.org/data/git/samba 2008-09-30 13:02:09 -07:00
root
687ce0b60a Use a getatr instead to make things cleaner.
Jeremy.
2008-09-30 12:44:24 -07:00
Jeremy Allison
a238f17e27 Add in test name visible on the wire or in debug logs so you can see when particular tests start.
Jeremy.
2008-09-30 12:33:00 -07:00
Matthias Dieter Wallnöfer
ee97097783 Use UTF8 rather than the possibly different UNIX charset. 2008-09-30 18:10:04 +02:00
Andrew Tridgell
ef6fc37add check call status not rpc fault code when calling to different levels
of calls
2008-09-30 08:46:22 -07:00
Andrew Tridgell
dab5d4abbc cope with NULL attr 2008-09-30 08:46:22 -07:00
Andrew Tridgell
be050125b6 - make bcast name resolution match other name resolution modules for
host not found errors

- when we have no resolve context return NT_STATUS_OBJECT_NAME_NOT_FOUND
2008-09-30 08:46:00 -07:00
Jelmer Vernooij
40a6a28170 Move Samba4-specific files into source4/ 2008-09-30 17:11:39 +02:00
Jelmer Vernooij
e0af9601e1 Fix FHS flag, rename to --enable-fhs since it's a feature flag
and doesn't take any arguments.
2008-09-30 16:41:21 +02:00
Andrew Tridgell
4f07894c29 The author of the upstream code asked for this code to be GPLv2+ not GPLv3 2008-09-30 07:17:02 -07:00
Andrew Tridgell
717b36c672 merged a bugfix for the idtree code from the Linux kernel. This
matches commit 7aae6dd80e265aa9402ed507caaff4a5dba55069 in the kernel.

Many thanks to Jim Houston for pointing out this fix to us
2008-09-30 07:14:31 -07:00
Jelmer Vernooij
3d8323fbff Compare sids in samba3sam tests. 2008-09-30 16:02:21 +02:00
Jelmer Vernooij
a36b6c5a42 Make Sid member variables accessible from Python. 2008-09-30 16:02:09 +02:00
Jelmer Vernooij
7f1c02cd7a Enable winreg Python tests - authentication works now. 2008-09-30 15:24:46 +02:00
Jelmer Vernooij
ae38514534 Merge branch 'master' of ssh://git.samba.org/data/git/samba 2008-09-30 14:57:51 +02:00
Stefan Metzmacher
394f24b374 s4:drsblob: fix the build
metze
2008-09-30 09:05:45 +02:00
Stefan Metzmacher
e622325155 s4:smb_server/smb: FLAGS2_SMB_SECURITY_SIGNATURES should only be echoed, not set always
metze
2008-09-30 08:42:47 +02:00
Andrew Bartlett
04edf11bee Rework to match new trustDomainPasswords IDL 2008-09-29 22:34:36 -07:00
Andrew Bartlett
64195b72be Fix parsing of the trust passwords in LSA CreateTrustedDomainEx* 2008-09-29 22:34:35 -07:00
Andrew Bartlett
15b6861981 Use the new 'samba4' name for our internal hdb plugin. 2008-09-29 22:34:35 -07:00
Andrew Bartlett
6ad78f01a5 Rename hdb_ldb to hdb_samba4 and load as a plugin into the kdc.
This avoids one more custom patch to the Heimdal code, and provides a
more standard way to produce hdb plugins in future.

I've renamed from hdb_ldb to hdb_samba4 as it really is not generic
ldb.

Andrew Bartlett
2008-09-29 22:34:35 -07:00
Andrew Bartlett
8dd35fabbb NetApp found that we never set the smb signing flags2.
This was found during testing at the CIFS plugfest.

No other client seems to honour or use this bit, but it is quite
ligitimately required by the spec.

Andrew Bartlett
2008-09-29 22:34:35 -07:00
Andrew Tridgell
d87e9ba56b setup the loadparm context for ldb in testjoin 2008-09-29 21:59:50 -07:00
Andrew Tridgell
8104968004 return a more useful error message when no name resolution methods are
available
2008-09-29 21:59:04 -07:00
Stefan Metzmacher
45645426c2 s4:selftest: make sure we test RPC-OBJECTUUID with seal
metze
2008-09-30 06:47:25 +02:00
Stefan Metzmacher
40e7769959 s4:torture/rpc: add RPC-OBJECTUUID
This test shows that object uuids should be ignored
if they're present in a dcerpc request.

metze
2008-09-30 06:47:25 +02:00