kai/samba.git
10 years agos4:winbind/wb_cmd_getdcname: make use of use tevent_req based dcerpc_binding_handle...
Stefan Metzmacher [Tue, 9 Mar 2010 12:49:20 +0000 (13:49 +0100)]
s4:winbind/wb_cmd_getdcname: make use of use tevent_req based dcerpc_binding_handle stubs

metze

10 years agos4:winbind/wb_async_helpers.c: make use of use tevent_req based dcerpc_binding_handle...
Stefan Metzmacher [Mon, 8 Mar 2010 19:33:48 +0000 (20:33 +0100)]
s4:winbind/wb_async_helpers.c: make use of use tevent_req based dcerpc_binding_handle stubs

metze

10 years agos4:libnet/libnet_rpc.c: make use of use tevent_req based dcerpc_binding_handle stubs
Stefan Metzmacher [Wed, 10 Mar 2010 08:53:36 +0000 (09:53 +0100)]
s4:libnet/libnet_rpc.c: make use of use tevent_req based dcerpc_binding_handle stubs

metze

10 years agos4:libnet/usernam.c: make use of use tevent_req based dcerpc_binding_handle stubs
Stefan Metzmacher [Wed, 10 Mar 2010 08:43:13 +0000 (09:43 +0100)]
s4:libnet/usernam.c: make use of use tevent_req based dcerpc_binding_handle stubs

metze

10 years agos4:libnet/userinfo.c: make use of use tevent_req based dcerpc_binding_handle stubs
Stefan Metzmacher [Wed, 10 Mar 2010 08:42:07 +0000 (09:42 +0100)]
s4:libnet/userinfo.c: make use of use tevent_req based dcerpc_binding_handle stubs

metze

10 years agos4:libnet/libnet_user.c: make use of use tevent_req based dcerpc_binding_handle stubs
Stefan Metzmacher [Wed, 10 Mar 2010 08:39:55 +0000 (09:39 +0100)]
s4:libnet/libnet_user.c: make use of use tevent_req based dcerpc_binding_handle stubs

metze

10 years agos4:libnet/libnet_lookup.c: make use of use tevent_req based dcerpc_binding_handle...
Stefan Metzmacher [Tue, 9 Mar 2010 15:59:33 +0000 (16:59 +0100)]
s4:libnet/libnet_lookup.c: make use of use tevent_req based dcerpc_binding_handle stubs

metze

10 years agos4:libnet/libnet_group.c: make use of use tevent_req based dcerpc_binding_handle...
Stefan Metzmacher [Tue, 9 Mar 2010 15:48:17 +0000 (16:48 +0100)]
s4:libnet/libnet_group.c: make use of use tevent_req based dcerpc_binding_handle stubs

metze

10 years agos4:libnet/libnet_domain.c: make use of use tevent_req based dcerpc_binding_handle...
Stefan Metzmacher [Tue, 9 Mar 2010 15:45:04 +0000 (16:45 +0100)]
s4:libnet/libnet_domain.c: make use of use tevent_req based dcerpc_binding_handle stubs

metze

10 years agos4:libnet_unbecome_dc: make use of use tevent_req based dcerpc_binding_handle stubs
Stefan Metzmacher [Mon, 8 Mar 2010 16:12:56 +0000 (17:12 +0100)]
s4:libnet_unbecome_dc: make use of use tevent_req based dcerpc_binding_handle stubs

metze

10 years agos4:libnet_become_dc: make use of use tevent_req based dcerpc_binding_handle stubs
Stefan Metzmacher [Mon, 8 Mar 2010 15:41:43 +0000 (16:41 +0100)]
s4:libnet_become_dc: make use of use tevent_req based dcerpc_binding_handle stubs

metze

10 years agos4:libnet/group*: make use of tevent_req based dcerpc_binding_handle stubs
Stefan Metzmacher [Mon, 8 Mar 2010 15:32:45 +0000 (16:32 +0100)]
s4:libnet/group*: make use of tevent_req based dcerpc_binding_handle stubs

metze

10 years agos4:libnet: keep a dcerpc_binding_handle for samr and lsa
Stefan Metzmacher [Mon, 8 Mar 2010 15:27:14 +0000 (16:27 +0100)]
s4:libnet: keep a dcerpc_binding_handle for samr and lsa

metze

10 years agos4:dsdb/repl: make use of use tevent_req based dcerpc_binding_handle stubs
Stefan Metzmacher [Mon, 8 Mar 2010 15:23:17 +0000 (16:23 +0100)]
s4:dsdb/repl: make use of use tevent_req based dcerpc_binding_handle stubs

metze

10 years agopidl:Samba4/NDR/Client: generate stubs for dcerpc_binding_handle abstraction
Stefan Metzmacher [Mon, 8 Mar 2010 11:31:06 +0000 (12:31 +0100)]
pidl:Samba4/NDR/Client: generate stubs for dcerpc_binding_handle abstraction

metze

10 years agos4:librpc/rpc: prepare dcerpc dependecies before pidl changes
Stefan Metzmacher [Mon, 8 Mar 2010 15:24:19 +0000 (16:24 +0100)]
s4:librpc/rpc: prepare dcerpc dependecies before pidl changes

metze

10 years agos4:librpc/rpc: add very basic dcerpc_binding_handle infrastructure
Stefan Metzmacher [Mon, 8 Mar 2010 11:29:52 +0000 (12:29 +0100)]
s4:librpc/rpc: add very basic dcerpc_binding_handle infrastructure

metze

10 years agopidl:Samba4/NDR/Client: don't generate client stubs for function marked as [todo]
Stefan Metzmacher [Wed, 10 Mar 2010 16:52:38 +0000 (17:52 +0100)]
pidl:Samba4/NDR/Client: don't generate client stubs for function marked as [todo]

metze

10 years agopidl:Samba/Python: don't generate methods for functions marked as [todo]
Stefan Metzmacher [Thu, 11 Mar 2010 23:52:30 +0000 (00:52 +0100)]
pidl:Samba/Python: don't generate methods for functions marked as [todo]

metze

10 years agolibrpc: rerun make idl
Stefan Metzmacher [Fri, 12 Mar 2010 08:20:23 +0000 (09:20 +0100)]
librpc: rerun make idl

metze

10 years agodrsuapi.idl: don't mark drsuapi_DsGetMemberships as [todo]
Stefan Metzmacher [Thu, 11 Mar 2010 23:45:56 +0000 (00:45 +0100)]
drsuapi.idl: don't mark drsuapi_DsGetMemberships as [todo]

metze

10 years agos3: Add "g_lock_do" as a convenience wrapper function
Volker Lendecke [Fri, 12 Mar 2010 13:22:54 +0000 (14:22 +0100)]
s3: Add "g_lock_do" as a convenience wrapper function

10 years agos3: Actually use mem_ctx in net_g_lock_init()
Volker Lendecke [Fri, 12 Mar 2010 11:12:25 +0000 (12:12 +0100)]
s3: Actually use mem_ctx in net_g_lock_init()

10 years agos3: Fix a comment
Volker Lendecke [Fri, 12 Mar 2010 11:08:19 +0000 (12:08 +0100)]
s3: Fix a comment

10 years agos3: Fix some "net registry" usage messages
Volker Lendecke [Fri, 12 Mar 2010 10:47:00 +0000 (11:47 +0100)]
s3: Fix some "net registry" usage messages

10 years agouse unsigned instead of uint32_t for LDB counters.
Crístian Deives [Tue, 9 Mar 2010 02:45:44 +0000 (23:45 -0300)]
use unsigned instead of uint32_t for LDB counters.

the attribute num_values of the struct ldb_message_element is defined as
an unsigned int, so the counters of that variable should be of the same
type.

10 years agonTDSConnection creation
Crístian Deives [Sun, 7 Mar 2010 05:09:24 +0000 (02:09 -0300)]
nTDSConnection creation

create nTDSConnection objects to "imply" the minimum-cost spanning tree edges
for which no nTDSConnection objects yet exist. it also adds a test function in
kcc_connection so the kcctpl functions can be called. this patch is in accord
with the sections [MS-ADTS] 7.2.2.3.4.2 and 7.2.2.3.4.5.

10 years agospanning tree computation
Crístian Deives [Sun, 7 Mar 2010 04:55:12 +0000 (01:55 -0300)]
spanning tree computation

calculate the spanning tree for the intersite connection. this patch is in
accord with the section [MS-ADTS] 7.2.2.3.4.4.

10 years agonew function kcctpl_color_vertices
Crístian Deives [Sun, 7 Mar 2010 04:34:41 +0000 (01:34 -0300)]
new function kcctpl_color_vertices

besides the new function implemented, some minor bugs were also fixed.  this
patch is in accord with the section [MS-ADTS] 7.2.2.3.4.3.

10 years agos4-drs: check if an optional feature is enabled
Eduardo Lima [Wed, 10 Mar 2010 19:21:29 +0000 (16:21 -0300)]
s4-drs: check if an optional feature is enabled

10 years agos4:selftest Add file based DNS resolver to selftest environment
Andrew Bartlett [Wed, 24 Feb 2010 04:09:28 +0000 (15:09 +1100)]
s4:selftest Add file based DNS resolver to selftest environment

This will in future allow us to test 'net vampire' in the test
environment, using the file based DNS lookups to avoid us hitting real
DNS.

10 years agoselftest: Remove dns_host_file every time we start
Andrew Bartlett [Thu, 11 Mar 2010 23:45:16 +0000 (10:45 +1100)]
selftest: Remove dns_host_file every time we start

10 years agoSplit the dsdb_access_check_on_dn.
Nadezhda Ivanova [Fri, 12 Mar 2010 01:13:51 +0000 (03:13 +0200)]
Split the dsdb_access_check_on_dn.

Split the dsdb_access_check_on_dn so it can be reused for checks
from both within the module stack and outside it.

10 years agoFixed ACL module to use dsdb_module_* API.
Nadezhda Ivanova [Fri, 12 Mar 2010 00:21:16 +0000 (02:21 +0200)]
Fixed ACL module to use dsdb_module_* API.

10 years agos3-netlogon: Fix bug #7237: _netr_SamLogon segfaults for clients sending NULL domain.
Günther Deschner [Thu, 11 Mar 2010 23:30:52 +0000 (00:30 +0100)]
s3-netlogon: Fix bug #7237: _netr_SamLogon segfaults for clients sending NULL domain.

Thanks to Marc Muehlfeld <muehlfeld@medizinische-genetik.de>.

Guenther

10 years agoImprove symlink delete test. Make sure we don't delete the link target by mistake.
Jeremy Allison [Thu, 11 Mar 2010 22:39:14 +0000 (14:39 -0800)]
Improve symlink delete test. Make sure we don't delete the link target by mistake.

Jeremy.

10 years agos4-smbtorture: add netr_SamLogon test with NULL domain to RPC-NETLOGON-S3.
Günther Deschner [Thu, 11 Mar 2010 22:15:14 +0000 (23:15 +0100)]
s4-smbtorture: add netr_SamLogon test with NULL domain to RPC-NETLOGON-S3.

This is to demonstrate how a "Windows 2002 Service Pack 3 2600" box constantly
crashes smbd (in preparation of fixing bug #7237).

Guenther

10 years agoMoved access_check_on_dn from acl module as an utility.
Nadezhda Ivanova [Thu, 11 Mar 2010 21:10:38 +0000 (23:10 +0200)]
Moved access_check_on_dn from acl module as an utility.

Made this an utility function so it can be used for access checking
outside of the acl ldb module, such as checking validated writes and
control access rights in other protocols (e. g drs)

10 years agos3-winreg: make QueryValue pass RPC-WINREG test again.
Günther Deschner [Thu, 11 Mar 2010 19:48:24 +0000 (20:48 +0100)]
s3-winreg: make QueryValue pass RPC-WINREG test again.

Guenther

10 years agos4-smbtorture: skip extended SetValue test against Samba (both dont survive).
Günther Deschner [Thu, 11 Mar 2010 19:23:13 +0000 (20:23 +0100)]
s4-smbtorture: skip extended SetValue test against Samba (both dont survive).

Guenther

10 years agos4-smbtorture: test NULL and "" valuenames as well in query for wellknown winreg...
Günther Deschner [Thu, 11 Mar 2010 19:24:58 +0000 (20:24 +0100)]
s4-smbtorture: test NULL and "" valuenames as well in query for wellknown winreg key.

Guenther

10 years agowinreg: add winreg_KeyType enum.
Günther Deschner [Thu, 11 Mar 2010 19:20:48 +0000 (20:20 +0100)]
winreg: add winreg_KeyType enum.

Guenther

10 years agos3-winreg: fix some function names in debug statements.
Günther Deschner [Thu, 11 Mar 2010 18:25:57 +0000 (19:25 +0100)]
s3-winreg: fix some function names in debug statements.

Guenther

10 years agos4-winreg: continue processing in WERR_MORE_DATA case in dcesrv_winreg_QueryValue().
Günther Deschner [Thu, 11 Mar 2010 19:17:48 +0000 (20:17 +0100)]
s4-winreg: continue processing in WERR_MORE_DATA case in dcesrv_winreg_QueryValue().

Matthias, please check.

Guenther

10 years agos4-smbtorture: add extended SetValue test to RPC-WINREG.
Günther Deschner [Thu, 11 Mar 2010 17:52:38 +0000 (18:52 +0100)]
s4-smbtorture: add extended SetValue test to RPC-WINREG.

Really looks like a blob based database frontend.

As it seems, we can set *any* type of data with *any* content on Windows and get
the exact same data back.

Guenther

10 years agos4-smbtorture: more work on test_key_value() RPC-WINREG test.
Günther Deschner [Thu, 11 Mar 2010 17:37:02 +0000 (18:37 +0100)]
s4-smbtorture: more work on test_key_value() RPC-WINREG test.

Guenther

10 years agos3: Make init_smb_request return bool
Volker Lendecke [Thu, 11 Mar 2010 10:33:01 +0000 (11:33 +0100)]
s3: Make init_smb_request return bool

Centralize the exit_server_cleanly()

10 years agoRPC-DSSYNC: handle DCERPC_FAULT_OP_RNG_ERROR as not supported for DsGetNT4ChangeLog()
Stefan Metzmacher [Thu, 11 Mar 2010 14:11:29 +0000 (15:11 +0100)]
RPC-DSSYNC: handle DCERPC_FAULT_OP_RNG_ERROR as not supported for DsGetNT4ChangeLog()

metze

10 years agos4:torture/libnet/libnet_user.c: fix double free in error path
Stefan Metzmacher [Thu, 11 Mar 2010 13:52:37 +0000 (14:52 +0100)]
s4:torture/libnet/libnet_user.c: fix double free in error path

metze

10 years agos4-registry: add all winreg types to reg_value_types table.
Günther Deschner [Thu, 11 Mar 2010 13:27:45 +0000 (14:27 +0100)]
s4-registry: add all winreg types to reg_value_types table.

Guenther

10 years agos4:selftest: move samba4.net.api.become.dc from skip to knownfail
Stefan Metzmacher [Thu, 11 Mar 2010 12:32:34 +0000 (13:32 +0100)]
s4:selftest: move samba4.net.api.become.dc from skip to knownfail

Someone should fix the remaining bug, as this test is expected to work.

metze

10 years agoNET-API-BECOME-DC: convert to torture api
Stefan Metzmacher [Thu, 11 Mar 2010 12:30:19 +0000 (13:30 +0100)]
NET-API-BECOME-DC: convert to torture api

metze

10 years agos4:rpc_server/drsuapi: don't reset [out,ref] pointer to NULL in dcesrv_drsuapi_DsRemo...
Stefan Metzmacher [Thu, 11 Mar 2010 12:05:55 +0000 (13:05 +0100)]
s4:rpc_server/drsuapi: don't reset [out,ref] pointer to NULL in dcesrv_drsuapi_DsRemoveDSServer()

metze

10 years agoselftest: let the client also use the dns_host_file
Stefan Metzmacher [Thu, 11 Mar 2010 12:04:56 +0000 (13:04 +0100)]
selftest: let the client also use the dns_host_file

metze

10 years agoRPC-DSSYNC: fix the build after idl changes
Stefan Metzmacher [Thu, 11 Mar 2010 08:12:07 +0000 (09:12 +0100)]
RPC-DSSYNC: fix the build after idl changes

metze

10 years agolibrpc: rerun make idl
Stefan Metzmacher [Thu, 11 Mar 2010 08:11:25 +0000 (09:11 +0100)]
librpc: rerun make idl

metze

10 years agodrsuapi.idl: finish drsuapi_DsGetNT4ChangeLog idl
Stefan Metzmacher [Thu, 11 Mar 2010 07:46:39 +0000 (08:46 +0100)]
drsuapi.idl: finish drsuapi_DsGetNT4ChangeLog idl

metze

10 years agos4: allow pam_winbind.so to be build on samba4
Matthieu Patou [Wed, 3 Mar 2010 08:38:51 +0000 (11:38 +0300)]
s4: allow pam_winbind.so to be build on samba4

* Modify the nsswitch/config.m4 to add tests and build that will be put in configure by the autoconf/autoheader
  We test if there is pam headers and pam library to be able to build the pam module
  We add s4 build directive (that are normaly in standalone config.mk) this is due to the fact that we need
  to rely on path that are guessed during configure.
  Add tests not to build pam_winbind if pam dev files is not present

Signed-off-by: Stefan Metzmacher <metze@samba.org>
10 years agos4: create ../lib/iniparser_build/config.m4
Matthieu Patou [Wed, 3 Mar 2010 08:38:51 +0000 (11:38 +0300)]
s4: create ../lib/iniparser_build/config.m4

Signed-off-by: Stefan Metzmacher <metze@samba.org>
10 years agos4: Modify auth/config.m4 to move pam tests to nsswitch.m4 so that we tests things...
Matthieu Patou [Wed, 3 Mar 2010 08:38:51 +0000 (11:38 +0300)]
s4: Modify auth/config.m4 to move pam tests to nsswitch.m4 so that we tests things in one place

Signed-off-by: Stefan Metzmacher <metze@samba.org>
10 years agos3-winreg: Fix _winreg_QueryValue crash bugs and implement windows behavior.
Günther Deschner [Thu, 11 Mar 2010 11:21:08 +0000 (12:21 +0100)]
s3-winreg: Fix _winreg_QueryValue crash bugs and implement windows behavior.

Found by RPC-WINREG smbtorture test.

Guenther

10 years agoExplain why we don't use certain characters in the generated pw
Andrew Bartlett [Thu, 11 Mar 2010 04:34:01 +0000 (15:34 +1100)]
Explain why we don't use certain characters in the generated pw

10 years agolib/util - Removed curly braces from generate_random_password().
Endi S. Dewata [Thu, 11 Mar 2010 02:34:01 +0000 (20:34 -0600)]
lib/util - Removed curly braces from generate_random_password().

10 years agos4:provision - Updated FDS schema mapping.
Endi S. Dewata [Wed, 10 Mar 2010 01:12:30 +0000 (19:12 -0600)]
s4:provision - Updated FDS schema mapping.

10 years agos4:provision Improve the handling of provision errors
Andrew Bartlett [Thu, 11 Mar 2010 03:49:34 +0000 (14:49 +1100)]
s4:provision Improve the handling of provision errors

The backtraces were too confusing for our users, and didn't tell them
what to do to fix the problem.  By printing the string (rather than a
backtrace), and including in the error what to do, and what file to
remove, we give them a chance.

Andrew Bartlett

10 years agoTry and fix bug #7233 - print fails with jobs >4GB from Win7 clients.
Jeremy Allison [Thu, 11 Mar 2010 01:46:09 +0000 (17:46 -0800)]
Try and fix bug #7233 - print fails with jobs >4GB from Win7 clients.

Remove an arbitrarty 4G B limit that *doesn't need to be there* !
Jeremy.

10 years agos4:libcli Use integrated name resolution when connecting SMB
Andrew Bartlett [Wed, 10 Mar 2010 05:01:41 +0000 (16:01 +1100)]
s4:libcli Use integrated name resolution when connecting SMB

This avoids pulling the address into a string and back again if given
a name, by letting the next async layer down do the name resolution.
If it was an IP address to start with, then the resolver library just
converts that to the struct socket_address.

Andrew Bartlett

10 years agos4:libcli/resovle File based lookup module for DNS name types
Andrew Bartlett [Wed, 24 Feb 2010 11:57:09 +0000 (22:57 +1100)]
s4:libcli/resovle File based lookup module for DNS name types

This uses the new common code to read a file containing DNS host
names, so we don't have to use real DNS lookups in our test
environment.

Andrew Bartlett

10 years agolibcli/nbt Add parser for a 'hosts' file that takes DNS record types
Andrew Bartlett [Tue, 9 Mar 2010 12:29:43 +0000 (23:29 +1100)]
libcli/nbt Add parser for a 'hosts' file that takes DNS record types

10 years agos4:samba_dnsupdate Add a 'file based' mode to samba_dnsupdate
Andrew Bartlett [Tue, 9 Mar 2010 12:34:10 +0000 (23:34 +1100)]
s4:samba_dnsupdate Add a 'file based' mode to samba_dnsupdate

For the testsuite to use DNS like names, we need to write these names
to a file.

Also, to have this run in 'make test' the usual rules about 'no 127.*'
IP addresses in DNS must be skipped, so glue.interface_ips takes two
arguments now

10 years agos4:lib/socket Don't go via a string when resolving addresses in connect_multi
Andrew Bartlett [Wed, 10 Mar 2010 05:04:44 +0000 (16:04 +1100)]
s4:lib/socket Don't go via a string when resolving addresses in connect_multi

This also removes the special case for IP addresses, and leaves that
to the code in the resolver library.

Andrew Bartlett

10 years agos4:libcli/resolve Use a more robust way to return the string address
Andrew Bartlett [Wed, 10 Mar 2010 04:56:13 +0000 (15:56 +1100)]
s4:libcli/resolve Use a more robust way to return the string address

By going via these tevent functions, we avoid needing to dereference
the struct socket_address, which may contain a 'struct sockaddr' or
strings.  The new dns_host_file resolver returns in the form of a
struct sockaddr.

Andrew Bartlett

10 years agos4:lib/socket Add function to set a port on the socket address
Andrew Bartlett [Wed, 10 Mar 2010 04:55:26 +0000 (15:55 +1100)]
s4:lib/socket Add function to set a port on the socket address

10 years agoMove prototype to header of common code for set_sockaddr_port
Andrew Bartlett [Tue, 9 Mar 2010 12:30:41 +0000 (23:30 +1100)]
Move prototype to header of common code for set_sockaddr_port

10 years agos4/rpc_server Don't segfault over replPropertyMetaData contents
Andrew Bartlett [Wed, 10 Mar 2010 23:42:18 +0000 (10:42 +1100)]
s4/rpc_server Don't segfault over replPropertyMetaData contents

The replPropertyMetaData may contain attrid values that we don't yet
have in the local schema.  We need to deal with this - it is a serious
error, but we should not segfault.

Andrew Bartlett

10 years agovfs_netatalk: Segfault if hide files or veto files has no ".AppleDouble"
SATOH Fumiyasu [Wed, 10 Mar 2010 03:15:44 +0000 (12:15 +0900)]
vfs_netatalk: Segfault if hide files or veto files has no ".AppleDouble"

10 years agos4-smbtorture: only look at DATA_BLOB pointer when einfo[0].data_length > 0.
Günther Deschner [Wed, 10 Mar 2010 23:07:00 +0000 (00:07 +0100)]
s4-smbtorture: only look at DATA_BLOB pointer when einfo[0].data_length > 0.

Guenther

10 years agoAdded regression test for bug #7234 - Symlink delete fails but incorrectly reports...
Jeremy Allison [Wed, 10 Mar 2010 22:40:20 +0000 (14:40 -0800)]
Added regression test for bug #7234 -  Symlink delete fails but incorrectly reports success.

Ensure we can delete a symlink by path.

Jeremy.

10 years agos4-smbtorture: while testing PrinterDataEx also compare Get and Enum results.
Günther Deschner [Wed, 10 Mar 2010 22:08:09 +0000 (23:08 +0100)]
s4-smbtorture: while testing PrinterDataEx also compare Get and Enum results.

Guenther

10 years agoFix bug #7234 - Symlink delete fails but incorrectly reports success to client.
Jeremy Allison [Wed, 10 Mar 2010 22:06:18 +0000 (14:06 -0800)]
Fix bug #7234 - Symlink delete fails but incorrectly reports success to client.

Typo called LSTAT instead of STAT in the unlink by pathname path.

Jeremy.

10 years agoRevert "s4-smbtorture: disable winreg QueryValue test for today."
Günther Deschner [Wed, 10 Mar 2010 21:04:02 +0000 (22:04 +0100)]
Revert "s4-smbtorture: disable winreg QueryValue test for today."

This reverts commit 420e3b8553c9e721fba27dd64eb78b2c7105ce64.

10 years agoѕ4: EDQUOT needs to be mapped to NT_STATUS_DISK_FULL
Björn Jacke [Wed, 10 Mar 2010 19:58:16 +0000 (20:58 +0100)]
ѕ4: EDQUOT needs to be mapped to NT_STATUS_DISK_FULL

10 years agos4:libnet - change variables to "unsigned" where needed
Matthias Dieter Wallnöfer [Wed, 10 Mar 2010 19:23:43 +0000 (20:23 +0100)]
s4:libnet - change variables to "unsigned" where needed

10 years agos4:libnet_become_dc - change counter variables to "unsigned" where they count LDB...
Matthias Dieter Wallnöfer [Wed, 10 Mar 2010 19:22:06 +0000 (20:22 +0100)]
s4:libnet_become_dc - change counter variables to "unsigned" where they count LDB objects

10 years agos4:winreg RPC - fix up the "QueryValue" call to work against the enhanced torture...
Matthias Dieter Wallnöfer [Wed, 10 Mar 2010 18:49:25 +0000 (19:49 +0100)]
s4:winreg RPC - fix up the "QueryValue" call to work against the enhanced torture test

Found out by gd's updated torture test.

10 years agos4:registry/ldb.c - if "name" isn't set we should return WERR_INVALID_PARAM
Matthias Dieter Wallnöfer [Wed, 10 Mar 2010 08:47:02 +0000 (09:47 +0100)]
s4:registry/ldb.c - if "name" isn't set we should return WERR_INVALID_PARAM

10 years agonsswitch: build libnss_winbind.so with SOVERSION = 2
Stefan Metzmacher [Tue, 9 Mar 2010 11:24:59 +0000 (12:24 +0100)]
nsswitch: build libnss_winbind.so with SOVERSION = 2

metze

10 years agonsswitch: don't use socket_wrapper for winbind client code
Stefan Metzmacher [Tue, 9 Mar 2010 09:29:33 +0000 (10:29 +0100)]
nsswitch: don't use socket_wrapper for winbind client code

metze

10 years agonsswitch: build libnss_winbindd.so only for the non merged build
Stefan Metzmacher [Tue, 9 Mar 2010 10:14:50 +0000 (11:14 +0100)]
nsswitch: build libnss_winbindd.so only for the non merged build

metze

10 years agos4:build/m4/public.m4: add realname argument to SMB_BUILD_LIBRARY()
Stefan Metzmacher [Tue, 9 Mar 2010 09:44:41 +0000 (10:44 +0100)]
s4:build/m4/public.m4: add realname argument to SMB_BUILD_LIBRARY()

metze

10 years agos4:rpc_server/wkssvc: don't reset [out,ref] pointer to 0
Stefan Metzmacher [Wed, 10 Mar 2010 13:12:28 +0000 (14:12 +0100)]
s4:rpc_server/wkssvc: don't reset [out,ref] pointer to 0

r->out.total_entries = 0; should be *r->out.total_entries = 0;

Otherwise we fail to marshall the reponse or crash if we run with
log level = 10 and trigger the ndr_print functions.

All out elements are already setup and initialized by the pidl generated code.

metze

10 years agos4:rpc_server/wkssvc: remove unneeded talloc_reference()
Stefan Metzmacher [Wed, 10 Mar 2010 13:10:13 +0000 (14:10 +0100)]
s4:rpc_server/wkssvc: remove unneeded talloc_reference()

metze

10 years agos4:rpc_server/wkssvc: avoid ZERO_STRUCT(r->out) and use already allocated [out,ref...
Stefan Metzmacher [Wed, 10 Mar 2010 13:08:34 +0000 (14:08 +0100)]
s4:rpc_server/wkssvc: avoid ZERO_STRUCT(r->out) and use already allocated [out,ref] memory

metze

10 years agos4:rpc_server/srvsvc: remove unused ZERO_STRUCT(r->out);
Stefan Metzmacher [Wed, 10 Mar 2010 12:59:37 +0000 (13:59 +0100)]
s4:rpc_server/srvsvc: remove unused ZERO_STRUCT(r->out);

Here it doesn't matter, but it's a bad example for other code
as it might reset the [out,ref] pointers which are already
generated by the pidl generated code.

metze

10 years agoidl: Regenerate DRSUAPI idl files
Kamen Mazdrashki [Fri, 5 Mar 2010 22:35:17 +0000 (00:35 +0200)]
idl: Regenerate DRSUAPI idl files

Signed-off-by: Stefan Metzmacher <metze@samba.org>
10 years agos4/idl: drsuapi_QuerySitesByCostCtr1 'unknown' member is now known
Kamen Mazdrashki [Fri, 5 Mar 2010 22:31:12 +0000 (00:31 +0200)]
s4/idl: drsuapi_QuerySitesByCostCtr1 'unknown' member is now known

and this it is a reserved fields for future flags - 'flags_reserver'
Must be 0 and is currently ignored.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
10 years agos4/idl: QuerySitesByCost - switch types should be unsigned
Kamen Mazdrashki [Thu, 4 Mar 2010 17:51:01 +0000 (19:51 +0200)]
s4/idl: QuerySitesByCost - switch types should be unsigned

Signed-off-by: Stefan Metzmacher <metze@samba.org>
10 years agos4/idl: DsGetMemberships2 - switch types should be unsigned
Kamen Mazdrashki [Thu, 4 Mar 2010 17:25:40 +0000 (19:25 +0200)]
s4/idl: DsGetMemberships2 - switch types should be unsigned

Signed-off-by: Stefan Metzmacher <metze@samba.org>
10 years agos4/drs: DsRemoveDSServer - Propagating IDL changes to source code
Kamen Mazdrashki [Fri, 5 Mar 2010 21:24:10 +0000 (23:24 +0200)]
s4/drs: DsRemoveDSServer - Propagating IDL changes to source code

Signed-off-by: Stefan Metzmacher <metze@samba.org>
10 years agos4/idl: DsRemoveDSServer - switch types should be unsigned
Kamen Mazdrashki [Fri, 5 Mar 2010 21:17:50 +0000 (23:17 +0200)]
s4/idl: DsRemoveDSServer - switch types should be unsigned

Signed-off-by: Stefan Metzmacher <metze@samba.org>