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

56267 Commits

Author SHA1 Message Date
Andrew Bartlett
23ffccd5d7 s4:provision Make us Windows 2008 level by defualt again
Also add a note to clarify that this should not be changed without
discussion and consensus.  We don't want this bouncing around.

Paramater support to allow optional selection of Win2003 mode welcomed.

Andrew Bartlett
2009-09-20 23:05:30 -07:00
Stefan Metzmacher
9801ec5f1a s3:secrets_schannel: revert to using version 1
It doesn't really matter if the entries
have invalid context in it. Older versions of samba
refuse to open the file if the version doesn't match.

If we can't parse individual records, we'll fail schannel binds,
but the clients are supposed to reestablish the netlogon secure channel
by doing ServerReqChallenge/ServerAuthenticate* again. This
will just overwrite the old record.

metze
2009-09-21 06:33:25 +02:00
Stefan Metzmacher
83edf3e43e s3:winbindd: avoid writing to a closed connection and generate SIGPIPE
metze
2009-09-21 06:05:43 +02:00
Stefan Metzmacher
f0d6e61977 async_sock: return -1/EPIPE if we're getting an end of file on read.
This makes the error handling in the callers easier.

metze
2009-09-21 06:04:53 +02:00
Stefan Metzmacher
00e378f17c s3:lib/select: don't overwrite errno in the signal handler
metze
2009-09-21 05:55:05 +02:00
Stefan Metzmacher
d13dfbeb6c tevent: make sure we don't set errno within the signal handler function.
metze
2009-09-21 05:54:41 +02:00
Stefan Metzmacher
f917044ec0 s4:dsdb/resolve_oids: add fast pathes for the common operations without oids
metze
2009-09-21 05:52:32 +02:00
Stefan Metzmacher
5656c22bea s4:dsdb/resolve_oids: check return values in recursion
metze
2009-09-21 05:51:58 +02:00
Andrew Bartlett
9d9bd31bf9 s4:py_security Add missing header 2009-09-20 20:32:47 -07:00
Andrew Bartlett
bfddb6816f s4:provision Use code to store domain join in 'net join' as well
This ensures we only have one codepath to store the secret, and
therefore that we have a single choke point for setting the
saltPrincipal, which we were previously skipping.

Andrew Bartlett
2009-09-20 16:29:38 -07:00
Andrew Bartlett
1d4a16acd7 s4:ldb print out which LDB the transaction is still active on. 2009-09-20 16:29:37 -07:00
Andrew Bartlett
509a2bb97c s4:provision split provision of DNS zone and self join keytab 2009-09-20 16:29:37 -07:00
Andrew Tridgell
11bfbc5160 s4-selftest: disable RAP-SCAN test
also pointless now we have docs
2009-09-20 15:27:09 -07:00
Andrew Tridgell
8b5cb77118 s4-selftest: disable RPC-COUNTCALLS
The RPC-COUNTCALLS was useful when we were working out IDL by hand
2009-09-20 15:25:22 -07:00
Matthias Dieter Wallnöfer
257ea8f96f Merge branch 'master' of git://git.samba.org/samba 2009-09-21 00:03:42 +02:00
Matthias Dieter Wallnöfer
c1527612b9 s4:python tools - try to fix some test problems 2009-09-20 23:49:05 +02:00
Matthias Dieter Wallnöfer
500fc020b2 s4:samba3sam.py test - remove the primary group ID attribute here
This shouldn't be specified on creation time (Windows Server doesn't allow that).
Hope this also fixes the test (see buildfarm).
2009-09-20 23:27:47 +02:00
Matthias Dieter Wallnöfer
1516f67356 s4:sec_descriptor - fix constant 2009-09-20 23:16:04 +02:00
Matthias Dieter Wallnöfer
d4389a230b blackbox:test_kinit - Remove the "-H" (hive) parameter
The "enableaccount" script works only on local LDB anymore - therefore remove
this parameter.
2009-09-20 23:07:22 +02:00
Nadezhda Ivanova
ae56b0f2f9 Disable descriptor module unless enabled in smb.conf
Since this code may still have some problems, it is not executed by default.
To enable descriptor inheritance add:
acl:inheritance = true
in your smb.conf
2009-09-20 14:07:16 -07:00
Matthias Dieter Wallnöfer
6ec69f3e77 s4:dsdb/common/util - Check for the right forest/domain function level
This adds a function which performs the check for the supported forest and
domain function levels. On an unsuccessful result a textual error message can
be created (parameter "errmsg" != NULL) which gives hints for the user to help
him fixing the issue.
2009-09-20 22:53:45 +02:00
Matthias Dieter Wallnöfer
dedd32d323 s4:server.c - add linespace (only cosmetic) 2009-09-20 22:17:35 +02:00
Andrew Tridgell
3c5d763962 talloc: fixed talloc_disable_null_tracking()
When we disable null tracking, we need to move any existing objects
that are under the null_context to be parented by the true NULL
context.

We also need a new talloc_enable_null_tracking_no_autofree() function,
as the talloc testsuite cannot cope with the moving of the autofree
context under the null_context as it wants to check exact counts of
objects under the null_context, and smbtorture has a large number of
objects in the autofree_context from .init functions
2009-09-20 13:14:40 -07:00
Matthias Dieter Wallnöfer
10fe59bed9 s4:domainlevel - fixed another error
The second "nTMixedDomain" attribute (under Partitions/Domain-DN) is only a
copy of the one under the directory root object. Therefore there doesn't exist
the "Windows 2000 Mixed" forest level.
2009-09-20 21:25:49 +02:00
Nadezhda Ivanova
05653fce78 Fixed a difference in domain sid type when SID is provided by user. 2009-09-20 10:12:04 -07:00
Matthias Dieter Wallnöfer
52650f109d s4:ldb_parse - Fix the type of an array entry
I found this through a compile warning. Hope that I got this right.
2009-09-20 12:47:52 +02:00
Matthias Dieter Wallnöfer
b8e65e6974 s4:provision_configuration - fix "sPNMappings"
I reread some docs about this attributes and it seems that this as mapping
attribute isn't host specific but in common for the whole domain. To allow
Windows DCs to join our s4 domain sooner or later we have to provide the full
attribute.
2009-09-20 11:57:54 +02:00
Matthias Dieter Wallnöfer
bb65cd4f68 s4:domainlevel - further improvements
- The tool displays now also mixed/interim domain levels and warns about them
  (s4 isn't capable to run on them)
- But it allows now also to raise/step-up from them
- It displays now also levels higher than 2008 R2 (altough we don't support them
  yet) but to be able to get a correct output
2009-09-20 11:48:26 +02:00
Stefan Metzmacher
c5d38fd45a blackbox/test_ldb.sh: test searching using OIDs instead of names for attributes and classes
metze
2009-09-20 06:44:19 +02:00
Stefan Metzmacher
93e1e8bec9 s4:provision: add the 'resolve_oids' on the top of the module stack
metze
2009-09-20 06:44:18 +02:00
Stefan Metzmacher
7fbd18a9dd dsdb/samdb: add resolve_oids module
Windows Servers allow OID strings to be used instead of
attribute/class names.

For now we only resolve the OIDs in the search expressions,
the rest will follow.

metze
2009-09-20 06:44:17 +02:00
Stefan Metzmacher
d80058f64e s4:build: require ldb 0.9.7
metze
2009-09-20 06:44:17 +02:00
Stefan Metzmacher
46dab92a2d s4:ldb: add ldb_parse_tree_copy_shallow() and change version to 0.9.7
metze
2009-09-20 06:44:16 +02:00
Stefan Metzmacher
c14b2eb8dd librpc: rerun 'make idl'
metze
2009-09-20 06:37:24 +02:00
Stefan Metzmacher
1c3a706932 drsblobs.idl: fix repsFromTo2 blob size calculation
metze
2009-09-20 06:36:39 +02:00
Stefan Metzmacher
cc48e9a01a rerun: make idl
metze
2009-09-20 06:17:33 +02:00
Stefan Metzmacher
8958a04e6f drsblobs.idl: add decoding for repsFromTo2
This is used in windows 2008.

metze
2009-09-20 06:17:32 +02:00
Andrew Tridgell
ced2429dfa s4-auth: add SID_NT_ENTERPRISE_DCS is a server trust account 2009-09-19 19:40:03 -07:00
Andrew Tridgell
d5b9409e63 s4-drs: security checking on DRS needs to default to on 2009-09-19 19:39:42 -07:00
Andrew Tridgell
8fd6ce613a s4-ldb: display an error if we can't decode a NDR blob 2009-09-19 18:41:22 -07:00
Andrew Tridgell
ad53c34b6b s4-repl: need param.h for lp_parm_bool 2009-09-19 15:53:22 -07:00
Anatoliy Atanasov
663fe5530f Handle dsdb_class_by_lDAPDisplayName returned values in schema_inferiors.c 2009-09-19 15:42:44 -07:00
Anatoliy Atanasov
0b68967096 Move replmd_drsuapi_DsReplicaCursor2_compare to a common place. 2009-09-19 15:42:00 -07:00
Anatoliy Atanasov
6e56261eb7 Add drs_security_level_check for dcesrv calls security checks
There is also an option to disable the security check
by specifying in the smb.conf file:
drs:disable_sec_check = true
2009-09-19 15:39:40 -07:00
Matthias Dieter Wallnöfer
2b5d1dfe6b s4:provision_basedn_modify - fix the "auditPolicy" attribute
I had to think about how to encode the string 0x0001 (taken from Windows Server).
The problem is due to the "0" byte at the beginning of it. BASE64 encoding
seems a good method to do it.
2009-09-20 00:14:51 +02:00
Andrew Bartlett
63b584bb15 s4:utils Remove typo... 2009-09-19 14:51:18 -07:00
Andrew Bartlett
5cec86ec27 s4:dsdb Print the partition we failed to suggest replication for 2009-09-19 14:36:14 -07:00
Andrew Bartlett
59bea84362 libcli:nbt move prototypes of lmhosts functions to libnbt.h 2009-09-19 14:34:16 -07:00
Andrew Bartlett
d58976012e s4:utils Explian fix for testparm -v
The problem here was that we take an address of a bool, and then (via
a void*) cast it to a int *, so put this in a comment.

Andrew Bartlett
2009-09-19 14:33:41 -07:00
Andrew Tridgell
c386c027e7 s4-ldb: bump minimum version in ldb too 2009-09-19 14:12:02 -07:00