1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-08 05:57:51 +03:00

61910 Commits

Author SHA1 Message Date
Stefan Metzmacher
e9d4f1578c s4:torture/rpc/autoidl.c: check for NT_STATUS_RPC_* instead of p->last_fault_code
metze
2010-04-15 09:34:06 +02:00
Stefan Metzmacher
51f7b1382b s4:torture/rpc/dsgetinfo.c: check for NT_STATUS_RPC_ENUM_VALUE_OUT_OF_RANGE instead of DCERPC_FAULT_INVALID_TAG
metze
2010-04-15 09:34:06 +02:00
Stefan Metzmacher
c85884ecc8 s4:torture/rpc/spoolss.c: check for NT_STATUS_RPC_* instead of p->last_fault_code
metze
2010-04-15 09:34:06 +02:00
Stefan Metzmacher
98464853f4 s4:torture/rpc/scanner.c: check for NT_STATUS_RPC_* instead of p->last_fault_code
metze
2010-04-15 09:34:05 +02:00
Stefan Metzmacher
2aba845816 s4:torture/rpc/samr.c: check for NT_STATUS_RPC_PROCNUM_OUT_OF_RANGE instead of DCERPC_FAULT_OP_RNG_ERROR
metze
2010-04-15 09:34:05 +02:00
Stefan Metzmacher
6f4218a4aa s4:torture/rpc/drsuapi.c: check for NT_STATUS_RPC_ENUM_VALUE_OUT_OF_RANGE instead of DCERPC_FAULT_INVALID_TAG
metze
2010-04-15 09:34:05 +02:00
Stefan Metzmacher
1864cd8fa7 s4:torture/rpc/countcalls.c: check for NT_STATUS_RPC_PROCNUM_OUT_OF_RANGE instead of DCERPC_FAULT_OP_RNG_ERROR
metze
2010-04-15 09:34:05 +02:00
Stefan Metzmacher
0cc24f2f9b s4:torture/rpc/alter_context: check for NT_STATUS_RPC_PROTOCOL_ERROR instead of DCERPC_NCA_S_PROTO_ERROR
metze
2010-04-15 09:34:05 +02:00
Stefan Metzmacher
cf9d425e3d s4:torture/rpc/dssync.c: check for NT_STATUS_RPC_PROCNUM_OUT_OF_RANGE instead of DCERPC_FAULT_OP_RNG_ERROR
metze
2010-04-15 09:34:04 +02:00
Stefan Metzmacher
de94672fe0 s4:torture/rpc/alter_context.c: check for NT_STATUS_RPC_BAD_STUB_DATA instead of NT_STATUS_NET_WRITE_FAULT
metze
2010-04-15 09:34:04 +02:00
Stefan Metzmacher
bb4a958c6d s4:torture/rpc/handles.c: check for NT_STATUS_RPC_SS_CONTEXT_MISMATCH instead of DCERPC_FAULT_CONTEXT_MISMATCH
metze
2010-04-15 09:34:04 +02:00
Stefan Metzmacher
34a6350715 s4:torture/rpc/lsa.c: test for NT_STATUS_RPC_SS_CONTEXT_MISMATCH instead of NT_STATUS_NET_WRITE_FAULT
metze
2010-04-15 09:34:04 +02:00
Stefan Metzmacher
61e53c0782 s4:librpc/rpc/pyrpc.c: map NT_STATUS_NET_WRITE_FAULT to the matching NT_STATUS_RPC_* code
metze
2010-04-15 09:34:04 +02:00
Stefan Metzmacher
a8e81c25eb pidl:Samba4/NDR/Client: map NT_STATUS_NET_WRITE_FAULT to the matching NT_STATUS_RPC_* code
metze
2010-04-15 09:34:03 +02:00
Stefan Metzmacher
fed16f4015 librpc/rpc: add dcerpc_fault_to_nt_status()
For now this only handles fault codes with we've seen yet
and for which we have explicit torture checks.

metze
2010-04-15 09:34:03 +02:00
Stefan Metzmacher
c0736c70d6 s4:torture/rpc: don't look at p->last_fault_code for debugging anymore
metze
2010-04-15 09:34:03 +02:00
Stefan Metzmacher
1293712b7d s4:util/net/drs: don't look at p->last_fault_code for debugging anymore
metze
2010-04-15 09:34:03 +02:00
Stefan Metzmacher
146ce6ead1 s4:libnet/libnet_join: don't look at p->last_fault_code for debugging anymore
metze
2010-04-15 09:34:02 +02:00
Stefan Metzmacher
7f6cdad706 s4:winbind: use WINBINDD_SOCKET_NAME instead of WINBINDD_SAMBA3_SOCKET
metze
2010-04-15 09:34:02 +02:00
Stefan Metzmacher
a1cf6a52af s4:winbind: wbsrv_samba3_priv_pipe_dir() needs to return the directory not the pipe path
metze
2010-04-15 09:34:02 +02:00
Stefan Metzmacher
2fd0137a87 s4:selftest/wscript: --enable-selftest and --with-selftest-prefix are configure options
metze
2010-04-15 09:34:02 +02:00
Andrew Tridgell
0bda3bae4c build: throw a fatal error for duplicate target declarations
We don't want someone to declare two subsystems of the same name but
with different source files

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-04-15 14:43:50 +10:00
Andrew Tridgell
daf4ad5905 s4-waf: removed a duplicate declaration of python_netbios 2010-04-15 14:43:50 +10:00
Andrew Tridgell
34887de6b0 build: ensure we don't recreate library loops in expansions
after removing library loops from the dependeny graph, we re-add
parent dependencies. We need to ensure that we don't re-add a
dependency which re-creates the loop we so carefully removed.

This also adds a final check for library dependency loops, and shows
an appropriate error if one is found.
2010-04-15 14:01:06 +10:00
Andrew Tridgell
167ba0eac9 build: make the 'wrong version of waf' message even clearer
suggest ./autogen-waf.sh
2010-04-15 09:22:24 +10:00
Andrew Tridgell
208eb7469d build: check that the user is not using an old /usr/bin/waf
some systems have /usr/bin/waf installed, and its quite old
2010-04-15 08:57:07 +10:00
Volker Lendecke
8693ae741c s3: Fix a typo 2010-04-14 21:50:00 +02:00
Stefan Metzmacher
e1e2195a4a s4:torture/rpc: rename rpc.h => torture_rpc.h
The reason for this is that some systems include
<rpc/rpc.h> from within system headers. HP-UX 11.00
does so somewhere deep inside of <shadow.h>.

For torture/winbind/struct_based.c <rpc/rpc.h> resolves
to torture/rpc/rpc.h and breaks the build.

metze
2010-04-14 20:27:11 +02:00
Andrew Tridgell
bcd647f943 Merge branch 'master' of ssh://git.samba.org/data/git/samba 2010-04-14 23:38:05 +10:00
Andrew Tridgell
e81e057b6d build: try to honor MAKEFLAGS from make
This means "make -j" and "make -k" now do roughly what is expected

make -j will use the number of CPUs on the system, regardless of the
number after the -j (as MAKEFLAGS doesn't contain that value).

make -k will will continue on errors
2010-04-14 23:37:47 +10:00
Stefan Metzmacher
bc6a43aeb4 s4:torture/rpc/winreg: fix compiler warnings
metze
2010-04-14 12:01:30 +02:00
Stefan Metzmacher
d0180570b3 s4:torture/rpc/dsgetinfo: first check the rpc layer status before looking at the application result
metze
2010-04-14 12:01:30 +02:00
Jeremy Allison
74c4c7fe4f Don't set "requested_posix_capabilities" in the sync code, already done in the async.
Jeremy.
2010-04-13 19:12:43 -07:00
Jeremy Allison
a1e0e1cbcf Add basic DFS tests.
Jeremy.
2010-04-13 18:42:24 -07:00
Jeremy Allison
f3b8e31f83 Split out the client unix capabilities to those the server offered, and those the client asked for.
This fixes a bug when using encrypted transport and DFS links. Found
by my basic DFS torture test, which I'll check in next. Testing *rocks* :-).

Jeremy.
2010-04-13 18:41:14 -07:00
Andrew Bartlett
589a42e2da s4:auth Change auth_generate_session_info to take an auth context
The auth context was in the past only for NTLM authentication, but we
need a SAM, an event context and and loadparm context for calculating
the local groups too, so re-use that infrustructure we already have in
place.

However, to avoid problems where we may not have an auth_context (in
torture tests, for example), allow a simpler 'session_info' to be
generated, by passing this via an indirection in gensec and an
generate_session_info() function pointer in the struct auth_context.

In the smb_server (for old-style session setups) we need to change the
async context to a new 'struct sesssetup_context'.  This allows us to
use the auth_context in processing the authentication reply .

Andrew Bartlett
2010-04-14 10:30:51 +10:00
Andrew Bartlett
4e2384e242 s4:auth Allow the simple 'struct auth_session_info' generator for all users
This code isn't ideal, but it is better than needing to consult the
main SamDB in things like a torture test.

Andrew Bartlett
2010-04-14 10:28:35 +10:00
Volker Lendecke
577bceb19b s3-winbind: Authenticate SAM users 2010-04-13 21:21:34 +02:00
Karolin Seeger
55838a8c02 s4-heimdal: Fix typo in comment.
Karolin
2010-04-13 20:09:13 +02:00
Karolin Seeger
b0a9e5ba77 s3-winbindd: Fix typo in comment.
Karolin
2010-04-13 20:08:22 +02:00
Karolin Seeger
fce533e3be examples: Fix typo in comment.
Karolin
2010-04-13 20:07:11 +02:00
Karolin Seeger
6389fac6db s3-docs: Fix typo in man idmap_ad.
Karolin
2010-04-13 20:06:14 +02:00
Stefan Metzmacher
a68eb378a5 s4:librpc/rpc: the python bindings should use !NT_STATUS_IS_OK instead of NT_STATUS_IS_ERR
Everything but NT_STATUS_OK is an error here.

metze
2010-04-13 16:01:40 +02:00
Stefan Metzmacher
59b1078ec5 s4:librpc/rpc: make PyErr_SetDCERPCStatus() static
metze
2010-04-13 16:01:40 +02:00
Matthias Dieter Wallnöfer
84c901a619 s4:"samdb_server_site_name" uses - proof for out of memory 2010-04-13 15:45:29 +02:00
Matthias Dieter Wallnöfer
34ff1c6944 s4:samdb_server_site_name - fix indentation 2010-04-13 15:40:43 +02:00
Matthias Dieter Wallnöfer
1e08449136 s4:fill_netlogon_samlogon_reponse - fix a typo 2010-04-13 15:29:12 +02:00
Matthias Dieter Wallnöfer
7d5a8c3506 s4:torture/netlogon - enhance test for "dcesrv_netr_DsRGetDCNameEx2"
Test for right domainname handling.
2010-04-13 15:26:55 +02:00
Matthias Dieter Wallnöfer
aa02f44255 s4:dcesrv_netr_DsRGetDCNameEx2 - provide a much better implementation
On the base of the "fill_netlogon_samlogon_response" call.

This removes duplicated code.
2010-04-13 15:26:54 +02:00
Matthias Dieter Wallnöfer
4d7d6ee820 s4:fill_netlogon_samlogon_response - some rework of the detection code
To make it compatible by the use of the "dcesrv_netr_DsRGetDCName*" calls.
Some result checks were redundant so I removed them. In other cases I added
debug outputs. Sometimes the debug messages were misleading.
2010-04-13 15:26:54 +02:00