1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-21 01:59:07 +03:00

22347 Commits

Author SHA1 Message Date
Matthias Dieter Wallnöfer
1fd6d9cd66 s4:dbspeed torture - remove unneeded newlines on "torture_result"
According to Jelmer's post on the technical list.
2010-04-11 21:49:02 +02:00
Jelmer Vernooij
b65c8d0505 s4: Fix more test results to not conflict with subunit commands. 2010-04-11 20:57:33 +02:00
Jelmer Vernooij
3a34b5f35e subunit: Remove more test output that could be interpreted by subunit. 2010-04-11 20:57:33 +02:00
Jelmer Vernooij
7da94cc4a6 subunit: Support formatting compatible with upstream subunit, for consistency.
Upstream subunit makes a ":" after commands optional, so I've fixed any
places where we might trigger commands accidently. I've filed a bug
about this in subunit.
2010-04-11 20:57:33 +02:00
Matthias Dieter Wallnöfer
568ca2433d s4:samdb_server_site_dn - free unused DNs in the right way 2010-04-11 13:20:44 +02:00
Matthias Dieter Wallnöfer
c7dfe736a8 s4:torture - "dbspeed" test - add newlines as we have them in the other failure messages 2010-04-11 11:33:45 +02:00
Matthias Dieter Wallnöfer
52ab3ca5e6 s4:torture - "dbspeed" test
Calculate the leaks on base of the "tmp_ctx" not the torture context.
2010-04-11 11:31:48 +02:00
Matthias Dieter Wallnöfer
753698e070 s4:torture - "dbspeed" test
Unify error handling.
2010-04-11 11:31:47 +02:00
Matthias Dieter Wallnöfer
cc32e7aff2 s4:torture - "dbspeed" test
Add more "talloc_free"s where needed or useful.
2010-04-11 11:31:47 +02:00
Andrew Bartlett
2c193fe91a s4:auth Remove event context from anonymous_session()
This should always return a simple structure with no need to consult a
DB, so remove the event context, and simplfy to call helper functions
that don't look at privilages.

Andrew Bartlett
2010-04-11 13:36:04 +10:00
Jelmer Vernooij
64bf8c400c selftest: Support passing --load-list to test runners. 2010-04-10 22:38:32 +02:00
Jelmer Vernooij
4fb98b6856 torture: Simplify torture suite running, call restricted test suite runner. 2010-04-10 22:38:32 +02:00
Jelmer Vernooij
6b442f43bc smbtorture: Remove unused shell feature. 2010-04-10 22:38:32 +02:00
Jelmer Vernooij
24f364517b smbtorture: Support --load-list argument. 2010-04-10 22:38:32 +02:00
Matthias Dieter Wallnöfer
0b7bb7f85a s4:registry - "patchfile_preg.c" - use more "sizeof"s on length specification
This makes the code more clear to read.
2010-04-10 19:58:09 +02:00
Matthias Dieter Wallnöfer
458a441f7f s4:registry - "patchfile_preg.c" - fix indentation 2010-04-10 19:58:08 +02:00
Matthias Dieter Wallnöfer
c7c8f0ccf3 s4:registry - "patchfile_preg.c" - fix a datatype
This should be an "uint16_t" (only two bytes are written).
2010-04-10 19:58:08 +02:00
Andrew Bartlett
77267733ed s4:dsdb Don't use the permissive modify control on schemaInfo updates
The use of 'replace' is enough to wipe out the old value, whatever it
is, we don't need to set 'permissive modify' too.

Additionally, this seems to be causing trouble for the OpenLDAP backend

Andrew Bartlett
2010-04-10 21:41:57 +10:00
Andrew Bartlett
5ebeab3794 s4:dsdb Don't return operational attributes on special DNs 2010-04-10 21:41:02 +10:00
Andrew Bartlett
6ef167c37b s4:rootdse Implement "tokenGroups" in the rootDSE
This returns the currently connected user's full token.  This is very
useful for debugging, and should be used in ACL tests.

Andrew Bartlett
2010-04-10 21:41:02 +10:00
Andrew Bartlett
944dc2cb0b s4:dsdb Improve error message in extended_dn_in
This error occours when an extended DN cannot be resolved, so it's
most helpful to print the problematic extended DN.

Andrew Bartlett
2010-04-10 21:41:01 +10:00
Andrew Bartlett
78dd377849 s4:ldif_handlers tokenGroups are SIDs 2010-04-10 21:41:01 +10:00
Andrew Bartlett
4b27cc0ea6 s4:rpc_server Fix segfault in modified SamLogon handling 2010-04-10 21:41:00 +10:00
Andrew Bartlett
bc6659936a s4:provision Don't make the 'slaptest' call produce errors
Adding -n 0 also allows us to check the error code too

Andrew Bartlett
2010-04-10 21:41:00 +10:00
Andrew Bartlett
0340826772 s4:rpc_server Add all SIDs into the netlogon SamLogon reply
We were missing the SIDs that are not in the domain.
2010-04-10 21:41:00 +10:00
Andrew Bartlett
4074739fe7 s4:schema Try to fix OpenLDAP backend after schema reload support.
If we can't get @REPLCHANGED, default to a value of 0.

Andrew Bartlett
2010-04-10 21:40:59 +10:00
Andrew Bartlett
c8cb17a18c s4:heimdal Create a new PAC when impersonating a user with S4U2Self
If we don't do this, the PAC is given for the machine accout, not the
account being impersonated.

Andrew Bartlett
2010-04-10 21:40:59 +10:00
Andrew Bartlett
f2b63d58da s4:kdc Add functions to hdb-samba4 for the new s4u2self callback.
For now, this shares the 'if it's the same host' system with the
constrained delegation code.

Andrew Bartlett
2010-04-10 21:40:59 +10:00
Andrew Bartlett
1d59abc724 s4:heimdal Add hooks to check with the DB before we allow s4u2self
This allows us to resolve multiple forms of a name, allowing for
example machine$@REALM to get an S4U2Self ticket for
host/machine@REALM.

Andrew Bartlett
2010-04-10 21:40:58 +10:00
Andrew Bartlett
aecaddfa1b s4:credentials Add the functions needed to do S4U2Self with cli_credentials
A torture test to demonstrate will be added soon.

Andrew Bartlett
2010-04-10 21:40:58 +10:00
Andrew Bartlett
18f0e24f55 s4:credentials talloc_free() any previous salt_principal
This isn't used often, but it is generally better not to leak it onto
what may be a longer-term context.

Andrew Bartlett
2010-04-10 21:40:58 +10:00
Stefan Metzmacher
5beaef7cde s4:autogen-waf: generate 'Makefile' instead of 'makefile'
This hopefully fixes the build on MacOS 10.

metze
2010-04-10 11:15:17 +02:00
Stefan Metzmacher
61d3ba04b4 s4:configure: generate Makefile from Makefile.in
This makes it possible for the waf build to also generate a 'Makefile'
instead of 'makefile'. On some platforms 'Makefile' is used before 'makefile'

metze
2010-04-10 11:06:26 +02:00
Stefan Metzmacher
8966a28b68 s4:heimdal_build/wscript_build: remove more network related stuff from HEIMDAL_ROKEN_H
metze
2010-04-10 10:07:11 +02:00
Stefan Metzmacher
e390edb46b s4:heimdal_build/wscript_build: use LIBREPLACE_H for asn1_compile and compile_et
metze
2010-04-10 09:54:49 +02:00
Matthias Dieter Wallnöfer
b253385611 s4:LDB - fix up "LDAPI" test
Set the "options" environment variable in a deterministic manner.
2010-04-09 23:36:11 +02:00
Günther Deschner
5eedaaea43 s4-smbtorture: skip winreg symlink test against Samba in RPC-SPOOLSS.
Guenther
2010-04-09 20:00:56 +02:00
Günther Deschner
bc2e675c3a s4-smbtorture: make sure to check for result of spoolss_GetJob tests.
This avoids returning potentially uninitialised data. Thanks Andreas for
pointing this out.

Guenther
2010-04-09 20:00:56 +02:00
Günther Deschner
1cec3029e5 s4-smbtorture: display helpful error message when winreg_QueryMultipleValues fails.
Guenther
2010-04-09 18:33:45 +02:00
Stefan Metzmacher
bae564b0a3 selftest: make sure filter-subunit and format-subunit use unbuffered io
metze
2010-04-09 16:42:00 +02:00
Stefan Metzmacher
e1faff9071 s4:selftest: mark some smb2.compound tests as knownfail
metze
2010-04-09 16:28:31 +02:00
Stefan Metzmacher
0bf6043df9 RPC-ALTERCONTEXT: let the test pass against w2k3 and w2k8
The behavior between w2k3 and w2k8 differs:
- w2k3 just ignores alter_context requests which try to change
  an existing presentation context.
- w2k8 returns DERPC_NCA_S_PROTO_ERROR and closes the transport
  connection.

metze
2010-04-09 16:28:31 +02:00
Stefan Metzmacher
5844a7dfe6 s4:torture/rpc/lsa.c: add test_lsa_OpenPolicy2_ex() that takes an expected status
metze
2010-04-09 16:28:31 +02:00
Stefan Metzmacher
e95e2e8262 s4:librpc/rpc: correctly initialize last_fault_code for bind and alter_context requests
metze
2010-04-09 16:28:30 +02:00
Stefan Metzmacher
f716c027c6 s4:heimdal_build/wscript_build: we don't need separate subsystems just for optional source files
metze
2010-04-09 16:28:29 +02:00
Stefan Metzmacher
787ecd4023 s4:heimdal_build/wscript_build: remove useless dependecies of HEIMDAL_ROKEN_H
This hopefully fixes the build on host opi - OpenSUSE 10.2 (x86_64).

metze
2010-04-09 16:28:28 +02:00
Stefan Metzmacher
2eaddcd9f2 s4:heimdal_build/wscript_build: create a HEIMDAL_ROKEN*_SOURCE variable
metze
2010-04-09 16:28:28 +02:00
Günther Deschner
48daa0b6ee s4-smbtorture: add test to check for registry symlinks in RPC-SPOOLSS-PRINTER.
Guenther
2010-04-09 16:17:54 +02:00
Günther Deschner
a21be5fc1b s4-smbtorture: fix build after winreg IDL renames, sorry..
Guenther
2010-04-09 14:46:28 +02:00
Jelmer Vernooij
673ca04114 s4-build: Fix autoconf build (net_machinepw.c is no longer present) 2010-04-09 14:21:24 +02:00