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

60231 Commits

Author SHA1 Message Date
Andrew Bartlett
ca67768b66 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.
2010-03-12 13:22:21 +11:00
Andrew Bartlett
8529b0afc1 selftest: Remove dns_host_file every time we start 2010-03-12 13:22:20 +11:00
Nadezhda Ivanova
be79f572ed 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.
2010-03-12 03:13:51 +02:00
Nadezhda Ivanova
4b256c6d8e Fixed ACL module to use dsdb_module_* API. 2010-03-12 02:21:16 +02:00
Günther Deschner
8194fc3757 s3-netlogon: Fix bug #7237: _netr_SamLogon segfaults for clients sending NULL domain.
Thanks to Marc Muehlfeld <muehlfeld@medizinische-genetik.de>.

Guenther
2010-03-12 00:37:30 +01:00
Jeremy Allison
1a10a5949d Improve symlink delete test. Make sure we don't delete the link target by mistake.
Jeremy.
2010-03-11 14:41:01 -08:00
Günther Deschner
98ba174fa2 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
2010-03-11 23:25:04 +01:00
Nadezhda Ivanova
222b955237 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)
2010-03-12 00:20:15 +02:00
Günther Deschner
24a7f8f2db s3-winreg: make QueryValue pass RPC-WINREG test again.
Guenther
2010-03-11 20:48:24 +01:00
Günther Deschner
40e2c04f8a s4-smbtorture: skip extended SetValue test against Samba (both dont survive).
Guenther
2010-03-11 20:48:05 +01:00
Günther Deschner
2324b07726 s4-smbtorture: test NULL and "" valuenames as well in query for wellknown winreg key.
Guenther
2010-03-11 20:42:49 +01:00
Günther Deschner
e0d85f87b7 winreg: add winreg_KeyType enum.
Guenther
2010-03-11 20:23:47 +01:00
Günther Deschner
96a38e387e s3-winreg: fix some function names in debug statements.
Guenther
2010-03-11 20:23:47 +01:00
Günther Deschner
9e80fe6675 s4-winreg: continue processing in WERR_MORE_DATA case in dcesrv_winreg_QueryValue().
Matthias, please check.

Guenther
2010-03-11 20:17:48 +01:00
Günther Deschner
09ea04a7f8 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
2010-03-11 19:03:21 +01:00
Günther Deschner
3a8d85da68 s4-smbtorture: more work on test_key_value() RPC-WINREG test.
Guenther
2010-03-11 19:01:07 +01:00
Volker Lendecke
b7898148c1 s3: Make init_smb_request return bool
Centralize the exit_server_cleanly()
2010-03-11 15:18:07 +01:00
Stefan Metzmacher
0d6c19b976 RPC-DSSYNC: handle DCERPC_FAULT_OP_RNG_ERROR as not supported for DsGetNT4ChangeLog()
metze
2010-03-11 15:13:52 +01:00
Stefan Metzmacher
4585ea06a5 s4:torture/libnet/libnet_user.c: fix double free in error path
metze
2010-03-11 15:13:52 +01:00
Günther Deschner
10b97ed9e4 s4-registry: add all winreg types to reg_value_types table.
Guenther
2010-03-11 14:36:42 +01:00
Stefan Metzmacher
d4b8fb15b8 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
2010-03-11 13:34:31 +01:00
Stefan Metzmacher
dd934472e8 NET-API-BECOME-DC: convert to torture api
metze
2010-03-11 13:31:40 +01:00
Stefan Metzmacher
b71bbbab8b s4:rpc_server/drsuapi: don't reset [out,ref] pointer to NULL in dcesrv_drsuapi_DsRemoveDSServer()
metze
2010-03-11 13:31:39 +01:00
Stefan Metzmacher
46b0cbe879 selftest: let the client also use the dns_host_file
metze
2010-03-11 13:31:39 +01:00
Stefan Metzmacher
4398871d1f RPC-DSSYNC: fix the build after idl changes
metze
2010-03-11 13:31:39 +01:00
Stefan Metzmacher
9592366dc7 librpc: rerun make idl
metze
2010-03-11 13:31:38 +01:00
Stefan Metzmacher
aef4890a7c drsuapi.idl: finish drsuapi_DsGetNT4ChangeLog idl
metze
2010-03-11 13:31:38 +01:00
Matthieu Patou
d1e3898a05 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>
2010-03-11 13:31:38 +01:00
Matthieu Patou
8306eb1c5f s4: create ../lib/iniparser_build/config.m4
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-03-11 13:31:37 +01:00
Matthieu Patou
5f2f4849e5 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>
2010-03-11 13:31:37 +01:00
Günther Deschner
cddc542ba5 s3-winreg: Fix _winreg_QueryValue crash bugs and implement windows behavior.
Found by RPC-WINREG smbtorture test.

Guenther
2010-03-11 12:48:43 +01:00
Andrew Bartlett
6441a5b0b9 Explain why we don't use certain characters in the generated pw 2010-03-11 15:34:01 +11:00
Endi S. Dewata
a6253a45c0 lib/util - Removed curly braces from generate_random_password(). 2010-03-11 15:31:08 +11:00
Endi S. Dewata
ade93755d5 s4:provision - Updated FDS schema mapping. 2010-03-11 15:30:25 +11:00
Andrew Bartlett
027123199e 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
2010-03-11 15:28:53 +11:00
Jeremy Allison
59545276f2 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.
2010-03-10 17:46:09 -08:00
Andrew Bartlett
e999472e36 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
2010-03-11 11:27:48 +11:00
Andrew Bartlett
1af2cd2bd1 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
2010-03-11 11:27:48 +11:00
Andrew Bartlett
263d4b5c93 libcli/nbt Add parser for a 'hosts' file that takes DNS record types 2010-03-11 11:27:48 +11:00
Andrew Bartlett
3723e32e8c 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
2010-03-11 11:27:48 +11:00
Andrew Bartlett
79b4a3b22e 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
2010-03-11 11:27:47 +11:00
Andrew Bartlett
9457b7ea22 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
2010-03-11 11:27:47 +11:00
Andrew Bartlett
0201b2fa9f s4:lib/socket Add function to set a port on the socket address 2010-03-11 11:27:47 +11:00
Andrew Bartlett
4ab3e220c4 Move prototype to header of common code for set_sockaddr_port 2010-03-11 11:27:47 +11:00
Andrew Bartlett
5ed18fad00 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
2010-03-11 11:27:47 +11:00
SATOH Fumiyasu
c1fb657afc vfs_netatalk: Segfault if hide files or veto files has no ".AppleDouble" 2010-03-10 16:11:26 -08:00
Günther Deschner
3fd5ac6344 s4-smbtorture: only look at DATA_BLOB pointer when einfo[0].data_length > 0.
Guenther
2010-03-11 00:09:04 +01:00
Jeremy Allison
20d85d5d54 Added regression test for bug #7234 - Symlink delete fails but incorrectly reports success.
Ensure we can delete a symlink by path.

Jeremy.
2010-03-10 14:40:20 -08:00
Günther Deschner
01801f3f94 s4-smbtorture: while testing PrinterDataEx also compare Get and Enum results.
Guenther
2010-03-10 23:10:44 +01:00
Jeremy Allison
367ddc3d1b 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.
2010-03-10 14:08:30 -08:00