sfrench/samba-autobuild/.git
11 years agoMerge branch 'master' of git://git.samba.org/samba
Nadezhda Ivanova [Mon, 21 Sep 2009 00:43:46 +0000 (17:43 -0700)]
Merge branch 'master' of git://git.samba.org/samba

11 years agos4-selftest: disable RAP-SCAN test
Andrew Tridgell [Sun, 20 Sep 2009 22:27:09 +0000 (15:27 -0700)]
s4-selftest: disable RAP-SCAN test

also pointless now we have docs

11 years agos4-selftest: disable RPC-COUNTCALLS
Andrew Tridgell [Sun, 20 Sep 2009 22:23:34 +0000 (15:23 -0700)]
s4-selftest: disable RPC-COUNTCALLS

The RPC-COUNTCALLS was useful when we were working out IDL by hand

11 years agoInitial implementation of security descriptor creation in DS
Nadezhda Ivanova [Sun, 20 Sep 2009 20:50:34 +0000 (13:50 -0700)]
Initial implementation of security descriptor creation in DS

TODO's:
ACE sorting and clarifying the inheritance of object specific ace's.

11 years agoMerge branch 'master' of git://git.samba.org/samba
Matthias Dieter Wallnöfer [Sun, 20 Sep 2009 22:03:42 +0000 (00:03 +0200)]
Merge branch 'master' of git://git.samba.org/samba

11 years agos4:python tools - try to fix some test problems
Matthias Dieter Wallnöfer [Sun, 20 Sep 2009 21:49:05 +0000 (23:49 +0200)]
s4:python tools - try to fix some test problems

11 years agos4:samba3sam.py test - remove the primary group ID attribute here
Matthias Dieter Wallnöfer [Sun, 20 Sep 2009 21:27:47 +0000 (23:27 +0200)]
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).

11 years agos4:sec_descriptor - fix constant
Matthias Dieter Wallnöfer [Sun, 20 Sep 2009 21:16:04 +0000 (23:16 +0200)]
s4:sec_descriptor - fix constant

11 years agoblackbox:test_kinit - Remove the "-H" (hive) parameter
Matthias Dieter Wallnöfer [Sun, 20 Sep 2009 21:07:22 +0000 (23:07 +0200)]
blackbox:test_kinit - Remove the "-H" (hive) parameter

The "enableaccount" script works only on local LDB anymore - therefore remove
this parameter.

11 years agoDisable descriptor module unless enabled in smb.conf
Nadezhda Ivanova [Sun, 20 Sep 2009 04:45:07 +0000 (21:45 -0700)]
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

11 years agos4:dsdb/common/util - Check for the right forest/domain function level
Matthias Dieter Wallnöfer [Sun, 20 Sep 2009 20:49:55 +0000 (22:49 +0200)]
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.

11 years agos4:server.c - add linespace (only cosmetic)
Matthias Dieter Wallnöfer [Sun, 20 Sep 2009 20:17:35 +0000 (22:17 +0200)]
s4:server.c - add linespace (only cosmetic)

11 years agotalloc: fixed talloc_disable_null_tracking()
Andrew Tridgell [Sun, 20 Sep 2009 20:14:40 +0000 (13:14 -0700)]
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

11 years agos4:domainlevel - fixed another error
Matthias Dieter Wallnöfer [Sun, 20 Sep 2009 19:25:49 +0000 (21:25 +0200)]
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.

11 years agoFixed a difference in domain sid type when SID is provided by user.
Nadezhda Ivanova [Sat, 19 Sep 2009 00:48:26 +0000 (17:48 -0700)]
Fixed a difference in domain sid type when SID is provided by user.

11 years agos4:ldb_parse - Fix the type of an array entry
Matthias Dieter Wallnöfer [Sun, 20 Sep 2009 10:47:52 +0000 (12:47 +0200)]
s4:ldb_parse - Fix the type of an array entry

I found this through a compile warning. Hope that I got this right.

11 years agos4:provision_configuration - fix "sPNMappings"
Matthias Dieter Wallnöfer [Sun, 20 Sep 2009 09:57:54 +0000 (11:57 +0200)]
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.

11 years agos4:domainlevel - further improvements
Matthias Dieter Wallnöfer [Sun, 20 Sep 2009 09:44:39 +0000 (11:44 +0200)]
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

11 years agoblackbox/test_ldb.sh: test searching using OIDs instead of names for attributes and...
Stefan Metzmacher [Sun, 20 Sep 2009 04:05:59 +0000 (06:05 +0200)]
blackbox/test_ldb.sh: test searching using OIDs instead of names for attributes and classes

metze

11 years agos4:provision: add the 'resolve_oids' on the top of the module stack
Stefan Metzmacher [Sat, 19 Sep 2009 05:54:59 +0000 (07:54 +0200)]
s4:provision: add the 'resolve_oids' on the top of the module stack

metze

11 years agodsdb/samdb: add resolve_oids module
Stefan Metzmacher [Sat, 19 Sep 2009 05:01:26 +0000 (07:01 +0200)]
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

11 years agos4:build: require ldb 0.9.7
Stefan Metzmacher [Sun, 20 Sep 2009 03:42:27 +0000 (05:42 +0200)]
s4:build: require ldb 0.9.7

metze

11 years agos4:ldb: add ldb_parse_tree_copy_shallow() and change version to 0.9.7
Stefan Metzmacher [Sun, 20 Sep 2009 03:41:42 +0000 (05:41 +0200)]
s4:ldb: add ldb_parse_tree_copy_shallow() and change version to 0.9.7

metze

11 years agolibrpc: rerun 'make idl'
Stefan Metzmacher [Sun, 20 Sep 2009 04:37:24 +0000 (06:37 +0200)]
librpc: rerun 'make idl'

metze

11 years agodrsblobs.idl: fix repsFromTo2 blob size calculation
Stefan Metzmacher [Sun, 20 Sep 2009 04:36:39 +0000 (06:36 +0200)]
drsblobs.idl: fix repsFromTo2 blob size calculation

metze

11 years agorerun: make idl
Stefan Metzmacher [Sun, 20 Sep 2009 03:57:37 +0000 (05:57 +0200)]
rerun: make idl

metze

11 years agodrsblobs.idl: add decoding for repsFromTo2
Stefan Metzmacher [Sun, 20 Sep 2009 03:52:14 +0000 (05:52 +0200)]
drsblobs.idl: add decoding for repsFromTo2

This is used in windows 2008.

metze

11 years agos4-auth: add SID_NT_ENTERPRISE_DCS is a server trust account
Andrew Tridgell [Sun, 20 Sep 2009 02:40:03 +0000 (19:40 -0700)]
s4-auth: add SID_NT_ENTERPRISE_DCS is a server trust account

11 years agos4-drs: security checking on DRS needs to default to on
Andrew Tridgell [Sun, 20 Sep 2009 02:39:42 +0000 (19:39 -0700)]
s4-drs: security checking on DRS needs to default to on

11 years agos4-ldb: display an error if we can't decode a NDR blob
Andrew Tridgell [Sun, 20 Sep 2009 01:41:22 +0000 (18:41 -0700)]
s4-ldb: display an error if we can't decode a NDR blob

11 years agos4-repl: need param.h for lp_parm_bool
Andrew Tridgell [Sat, 19 Sep 2009 22:53:22 +0000 (15:53 -0700)]
s4-repl: need param.h for lp_parm_bool

11 years agoHandle dsdb_class_by_lDAPDisplayName returned values in schema_inferiors.c
Anatoliy Atanasov [Fri, 11 Sep 2009 15:57:34 +0000 (18:57 +0300)]
Handle dsdb_class_by_lDAPDisplayName returned values in schema_inferiors.c

11 years agoMove replmd_drsuapi_DsReplicaCursor2_compare to a common place.
Anatoliy Atanasov [Mon, 14 Sep 2009 18:46:59 +0000 (11:46 -0700)]
Move replmd_drsuapi_DsReplicaCursor2_compare to a common place.

11 years agoAdd drs_security_level_check for dcesrv calls security checks
Anatoliy Atanasov [Sat, 19 Sep 2009 22:08:19 +0000 (15:08 -0700)]
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

11 years agos4:provision_basedn_modify - fix the "auditPolicy" attribute
Matthias Dieter Wallnöfer [Sat, 19 Sep 2009 22:09:05 +0000 (00:09 +0200)]
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.

11 years agos4:utils Remove typo...
Andrew Bartlett [Sat, 19 Sep 2009 21:51:18 +0000 (14:51 -0700)]
s4:utils Remove typo...

11 years agos4:dsdb Print the partition we failed to suggest replication for
Andrew Bartlett [Sat, 19 Sep 2009 21:27:29 +0000 (14:27 -0700)]
s4:dsdb Print the partition we failed to suggest replication for

11 years agolibcli:nbt move prototypes of lmhosts functions to libnbt.h
Andrew Bartlett [Sat, 19 Sep 2009 21:20:43 +0000 (14:20 -0700)]
libcli:nbt move prototypes of lmhosts functions to libnbt.h

11 years agos4:utils Explian fix for testparm -v
Andrew Bartlett [Sat, 19 Sep 2009 18:59:44 +0000 (11:59 -0700)]
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

11 years agos4-ldb: bump minimum version in ldb too
Andrew Tridgell [Sat, 19 Sep 2009 19:42:57 +0000 (12:42 -0700)]
s4-ldb: bump minimum version in ldb too

11 years agomore include minimisation
Andrew Tridgell [Sat, 19 Sep 2009 19:41:32 +0000 (12:41 -0700)]
more include minimisation

11 years agotdb: increase minor version
Andrew Tridgell [Sat, 19 Sep 2009 19:41:00 +0000 (12:41 -0700)]
tdb: increase minor version

we depend on reads in transactions for s4 replication

11 years agos4-smbd: removed unnecessary includes
Andrew Tridgell [Sat, 19 Sep 2009 19:28:32 +0000 (12:28 -0700)]
s4-smbd: removed unnecessary includes

11 years agos4-scripts: make minimal_includes handle our -I overrides
Andrew Tridgell [Sat, 19 Sep 2009 19:28:02 +0000 (12:28 -0700)]
s4-scripts: make minimal_includes handle our -I overrides

11 years agos4-smbd: minimise includes in smbd/ and smb_server
Andrew Tridgell [Sat, 19 Sep 2009 18:49:33 +0000 (11:49 -0700)]
s4-smbd: minimise includes in smbd/ and smb_server

11 years agos4-testparm: fixed -v option
Andrew Tridgell [Sat, 19 Sep 2009 18:47:12 +0000 (11:47 -0700)]
s4-testparm: fixed -v option

never pass a bool pointer to popt

11 years agos4-rpc_server: removed remaining unnecessary #includes
Andrew Tridgell [Sat, 19 Sep 2009 18:38:04 +0000 (11:38 -0700)]
s4-rpc_server: removed remaining unnecessary #includes

11 years agos4-rpc: remove some unnecessary #include lines
Andrew Tridgell [Sat, 19 Sep 2009 18:33:39 +0000 (11:33 -0700)]
s4-rpc: remove some unnecessary #include lines

I should remember to run script/minimal_includes.pl more often

11 years agos4:samdb.py - further rework
Matthias Dieter Wallnöfer [Sat, 19 Sep 2009 19:57:41 +0000 (21:57 +0200)]
s4:samdb.py - further rework

- I added a comment to the "new user" operation to point out that this works
  only on s4, since we add also ID mapping entries for winbind there
- The "new user" operation adds now the password through the "set password"
  operation which I find better due to the re-use principle
- Remove the word "DC" after "SAMBA 4" in the comment over the "set password"
  operation since this note and operation applies also to s4 in standalone mode

11 years agopidl: update expected output for NDR64 changes
Andrew Tridgell [Sat, 19 Sep 2009 18:06:46 +0000 (11:06 -0700)]
pidl: update expected output for NDR64 changes

11 years agos4-netlogon: implement dcesrv_netr_DsRAddressToSitenamesExW
Andrew Tridgell [Sat, 19 Sep 2009 15:25:41 +0000 (08:25 -0700)]
s4-netlogon: implement dcesrv_netr_DsRAddressToSitenamesExW

We don't implement sites properly at the moment so we just return
Default-First-Site-Name

11 years agos4-resolve: fixed a crash bug on timeout
Andrew Tridgell [Sat, 19 Sep 2009 15:23:03 +0000 (08:23 -0700)]
s4-resolve: fixed a crash bug on timeout

We were creating the name resolution context as a child of lp_ctx,
which meant when we gave up on a connection the timer on name
resolution kept running, and when it timed out the callback crashed as
the socket was already removed.

11 years agos4-pipes: convert pipe names to lowercase and validate
Andrew Tridgell [Sat, 19 Sep 2009 05:58:03 +0000 (22:58 -0700)]
s4-pipes: convert pipe names to lowercase and validate

clients may provide arbitrary names, but we only want lowercase alnum
names

11 years agos4-server: kill main daemon if a task fails to initialise
Andrew Tridgell [Sat, 19 Sep 2009 01:05:55 +0000 (18:05 -0700)]
s4-server: kill main daemon if a task fails to initialise

When one of our core tasks fails to initialise it can now ask for the
server as a whole to die, rather than limping along in a degraded
state.

11 years agos4-kdc: ignore unknown keytypes
Andrew Tridgell [Sat, 19 Sep 2009 01:04:15 +0000 (18:04 -0700)]
s4-kdc: ignore unknown keytypes

don't fail hdb operations if one of the key types is unknown

11 years agoMerge branch 'master' of /home/tridge/samba/git/combined
Andrew Tridgell [Fri, 18 Sep 2009 21:12:02 +0000 (14:12 -0700)]
Merge branch 'master' of /home/tridge/samba/git/combined

11 years agos4-drs: cope with dupliate linked attributes
Andrew Tridgell [Fri, 18 Sep 2009 21:10:42 +0000 (14:10 -0700)]
s4-drs: cope with dupliate linked attributes

With a w2k8-R2 DC, we sometimes get linked attribute updates via DRS
which are duplicates of entries that we already have. We need to cope
with this by using a remove/add pair in the ldb_modify() to avoid a
"entry already exists" error

11 years agos4:provision_configuration - "sPNMappings": "http" missed on regeneration
Matthias Dieter Wallnöfer [Fri, 18 Sep 2009 19:06:19 +0000 (21:06 +0200)]
s4:provision_configuration - "sPNMappings": "http" missed on regeneration

11 years agos4/provision_configuration - re-add the "sPNMappings"
Matthias Dieter Wallnöfer [Fri, 18 Sep 2009 18:57:57 +0000 (20:57 +0200)]
s4/provision_configuration - re-add the "sPNMappings"

Accidentally removed by a previous commit.

11 years agos4:scripts - Cleans also the rest under the "setup" directory up
Matthias Dieter Wallnöfer [Fri, 18 Sep 2009 18:40:57 +0000 (20:40 +0200)]
s4:scripts - Cleans also the rest under the "setup" directory up

- I removed also the "-H" parameter since those scripts are all thought for the
  use on a local s4 domain controller. Another reason is also the bind as SYSTEM
  account which itself is only possible on local binds.

11 years agos3-rpc_client: fix non initialized structure in rpccli_lsa_lookup_sids_noalloc.
Günther Deschner [Thu, 17 Sep 2009 07:42:49 +0000 (09:42 +0200)]
s3-rpc_client: fix non initialized structure in rpccli_lsa_lookup_sids_noalloc.

Guenther

11 years agos3-smbd: fix get_ea_names_from_file() and check for pnames pointer.
Günther Deschner [Fri, 18 Sep 2009 19:27:55 +0000 (21:27 +0200)]
s3-smbd: fix get_ea_names_from_file() and check for pnames pointer.

This fixes smbd from crashing all the time.

Jeremy, Volker, please check.

Guenther

11 years agos4:various scripts under "setup" - Unification
Matthias Dieter Wallnöfer [Fri, 18 Sep 2009 18:22:03 +0000 (20:22 +0200)]
s4:various scripts under "setup" - Unification

- This unified the shape of those four scripts (comments, command sequence, call
  of SamDB)
- To consider the samdb.py changes regarding the filter: there is now always the
  possibility either to specify the username or the search filter

11 years agos4:domainlevel/pwsettings - Remove unused import
Matthias Dieter Wallnöfer [Fri, 18 Sep 2009 18:21:29 +0000 (20:21 +0200)]
s4:domainlevel/pwsettings - Remove unused import

11 years agos4:samdb.py - Unification of the interfaces
Matthias Dieter Wallnöfer [Fri, 18 Sep 2009 18:16:05 +0000 (20:16 +0200)]
s4:samdb.py - Unification of the interfaces

- When a user account is requested by a call always the search filter will be
  passed as argument. This helps us to unify the API
- Add/fix some comments; in particular new comments inform the developer which
  requirements exist if he wants to use calls which manipulate the
  "userPassword" attribute (On s4 no problem - but on certain domain levels on
  Windows Server)

11 years agos4:minschema/fullschema - add correct header comments
Matthias Dieter Wallnöfer [Fri, 18 Sep 2009 18:15:12 +0000 (20:15 +0200)]
s4:minschema/fullschema - add correct header comments

11 years agos4:rpc_server: remove some now unused code
Stefan Metzmacher [Fri, 18 Sep 2009 09:32:46 +0000 (11:32 +0200)]
s4:rpc_server: remove some now unused code

metze

11 years agos4:ntvfs_ipc: add real named pipe support
Stefan Metzmacher [Tue, 11 Aug 2009 12:50:36 +0000 (14:50 +0200)]
s4:ntvfs_ipc: add real named pipe support

We now open a named via the named_pipe_auth
code and process IO via the tstream interface.

This means we support byte mode and message mode
named pipes.

We also correctly issue NT_STATUS_PIPE_BUSY
when a smb_trans request comes in and a read or smb_trans
is already pending.

We also have support for async dcerpc over ncacn_np now,
and we now can remove the ncacn_np specific hacks from the
rpc_server/ code.

metze

11 years agos4:torture: the spoolss notify test should listen on the ncacn_np endpoint
Stefan Metzmacher [Fri, 1 May 2009 16:19:34 +0000 (18:19 +0200)]
s4:torture: the spoolss notify test should listen on the ncacn_np endpoint

metze

11 years agos4:rpc_server: export dcesrv_add_ep() so that torture tests can use it
Stefan Metzmacher [Fri, 1 May 2009 16:17:10 +0000 (18:17 +0200)]
s4:rpc_server: export dcesrv_add_ep() so that torture tests can use it

metze

11 years agolibcli/named_pipe_auth: pass gssapi delegated credentials through the named pipe
Stefan Metzmacher [Thu, 17 Sep 2009 16:43:41 +0000 (18:43 +0200)]
libcli/named_pipe_auth: pass gssapi delegated credentials through the named pipe

metze

11 years agos4:service_named_pipe: accept delegated credentials
Stefan Metzmacher [Thu, 17 Sep 2009 16:41:00 +0000 (18:41 +0200)]
s4:service_named_pipe: accept delegated credentials

metze

11 years agolibrpc: rerun 'make idl'
Stefan Metzmacher [Thu, 17 Sep 2009 16:33:21 +0000 (18:33 +0200)]
librpc: rerun 'make idl'

metze

11 years agonamed_pipe_auth.idl: add infrastructure to pass delegated credentials
Stefan Metzmacher [Thu, 17 Sep 2009 16:26:57 +0000 (18:26 +0200)]
named_pipe_auth.idl: add infrastructure to pass delegated credentials

metze

11 years agos4:torture: don't use 'pipe' as variable name it's a system call
Stefan Metzmacher [Fri, 1 May 2009 16:20:53 +0000 (18:20 +0200)]
s4:torture: don't use 'pipe' as variable name it's a system call

metze

11 years agos4:heimdal/gssapi/krb5: set cred_handle in _gsskrb5_import_cred
Stefan Metzmacher [Fri, 18 Sep 2009 00:44:49 +0000 (02:44 +0200)]
s4:heimdal/gssapi/krb5: set cred_handle in _gsskrb5_import_cred

metze

11 years agoMerge branch 'master' of /home/tridge/samba/git/combined
Andrew Tridgell [Fri, 18 Sep 2009 18:22:32 +0000 (11:22 -0700)]
Merge branch 'master' of /home/tridge/samba/git/combined

11 years agos3: Fix Coverity ID 581 -- NEGATIVE_RETURNS
Volker Lendecke [Fri, 18 Sep 2009 18:20:07 +0000 (20:20 +0200)]
s3: Fix Coverity ID 581 -- NEGATIVE_RETURNS

11 years agos3:smbstatus: Fix bug 6703, allow smbstatus as non-root
Volker Lendecke [Fri, 18 Sep 2009 16:27:16 +0000 (18:27 +0200)]
s3:smbstatus: Fix bug 6703, allow smbstatus as non-root

We only require a ctdb connection when clustering is enabled. This limits the
restriction for only-root smbstatus to the clustering case.

11 years agos3:smbstatus: Fix some nonempty blank lines
Volker Lendecke [Fri, 18 Sep 2009 16:10:54 +0000 (18:10 +0200)]
s3:smbstatus: Fix some nonempty blank lines

11 years agos4:domainlevel - fix indentations
Matthias Dieter Wallnöfer [Fri, 18 Sep 2009 15:53:23 +0000 (17:53 +0200)]
s4:domainlevel - fix indentations

11 years agos4:domainlevel - Add a script which allows raising the domain/forest level
Matthias Dieter Wallnöfer [Fri, 18 Sep 2009 15:34:02 +0000 (17:34 +0200)]
s4:domainlevel - Add a script which allows raising the domain/forest level

This simple script allows raising the domain and/or forest level for s4.
I integrated also the basic checks (since we don't perform them in LDB yet):
e.g. the forest level can't be higher than the domain level(s).

11 years agos4:pwsettings - Simplify the error handling a bit
Matthias Dieter Wallnöfer [Fri, 18 Sep 2009 15:33:24 +0000 (17:33 +0200)]
s4:pwsettings - Simplify the error handling a bit

11 years agopython: create a script for reorgnizing an LDB file.
Matthieu Patou [Fri, 18 Sep 2009 11:55:57 +0000 (15:55 +0400)]
python: create a script for reorgnizing an LDB file.

  This script helps to reclaim waisted place.

11 years agos4:provision - Bump down the domain and forest level to Windows 2000
Matthias Dieter Wallnöfer [Fri, 18 Sep 2009 14:21:29 +0000 (16:21 +0200)]
s4:provision - Bump down the domain and forest level to Windows 2000

- The DC level we keep on Windows Server 2008 R2 (we should call ourself
  always the newest server type)
- The domain/forest level we set to the minimum (Windows 2000 native) to
  allow all AD DC types (from Windows 2000 on) in our domain - the NT4 "mixed"
  mode isn't supported by us (discussed on mailing list) -> "nTMixedDomain" is
  set always to 0
- I'll add a script which allows to bump the DC level (basically sets the
  "msDS-Behaviour-Version" attributes on the "Partitions/Configuration/DC" and
  on the "DC" object)

11 years agotalloc: don't crash if f is NULL in talloc_report_*
Andrew Tridgell [Thu, 17 Sep 2009 23:42:11 +0000 (16:42 -0700)]
talloc: don't crash if f is NULL in talloc_report_*

It's annoying when you use
  p talloc_report_full(ctx, fopen("/tmp/xx","w"))
in gdb, and if you don't have write permission on the file then
you get a segv.

11 years agos3-rpc: samba3 needs the DCERPC_NDR64 define
Andrew Tridgell [Thu, 17 Sep 2009 23:02:14 +0000 (16:02 -0700)]
s3-rpc: samba3 needs the DCERPC_NDR64 define

11 years agos4-sam: add a note about the solaris client
Andrew Tridgell [Thu, 17 Sep 2009 22:15:58 +0000 (15:15 -0700)]
s4-sam: add a note about the solaris client

11 years agondrdump: fixed help
Andrew Tridgell [Thu, 17 Sep 2009 22:15:36 +0000 (15:15 -0700)]
ndrdump: fixed help

11 years agondr: num_auths is an array size, thus a uint3264
Andrew Tridgell [Thu, 17 Sep 2009 22:15:24 +0000 (15:15 -0700)]
ndr: num_auths is an array size, thus a uint3264

11 years agondr: split out ndr enum functions
Andrew Tridgell [Thu, 17 Sep 2009 22:14:31 +0000 (15:14 -0700)]
ndr: split out ndr enum functions

This allows for easier implementation of the NDR32/NDR64 split

11 years agoidl: recompile our IDL
Andrew Tridgell [Thu, 17 Sep 2009 16:59:50 +0000 (09:59 -0700)]
idl: recompile our IDL

The NDR64 change affects every IDL file

11 years agos4-pidl: add support for NDR64
Andrew Tridgell [Thu, 17 Sep 2009 16:10:21 +0000 (09:10 -0700)]
s4-pidl: add support for NDR64

Added support for NDR64 to the samba4 pidl generator

11 years agos4-rpc: added NDR64 support
Andrew Tridgell [Thu, 17 Sep 2009 16:09:48 +0000 (09:09 -0700)]
s4-rpc: added NDR64 support

This adds support for the nd464 binding string option

11 years agondr: added support for NDR64
Andrew Tridgell [Thu, 17 Sep 2009 16:08:47 +0000 (09:08 -0700)]
ndr: added support for NDR64

This adds NDR64 support for the push functions in libndr

11 years agoutil: use likely/unlikely for NT_STATUS_* macros
Andrew Tridgell [Thu, 17 Sep 2009 16:07:44 +0000 (09:07 -0700)]
util: use likely/unlikely for NT_STATUS_* macros

11 years agolibreplace: added likely()/unlikely() macros for gcc
Andrew Tridgell [Thu, 17 Sep 2009 16:07:17 +0000 (09:07 -0700)]
libreplace: added likely()/unlikely() macros for gcc

These macros allow the compile to better optimise code that has a lot
of if statements. I particularly want to use this for our low level
generated NDR code.

11 years agos3:smbd: Attempt to fix the build on HP/UX
Volker Lendecke [Fri, 18 Sep 2009 01:42:23 +0000 (03:42 +0200)]
s3:smbd: Attempt to fix the build on HP/UX

11 years agos3:smbd: Fix an inappropriate pointer return in a bool fn
Volker Lendecke [Fri, 18 Sep 2009 01:34:55 +0000 (03:34 +0200)]
s3:smbd: Fix an inappropriate pointer return in a bool fn

11 years agos3:winbind: Fix some enum type mismatches found by the Solaris compiler
Volker Lendecke [Fri, 18 Sep 2009 01:28:51 +0000 (03:28 +0200)]
s3:winbind: Fix some enum type mismatches found by the Solaris compiler