1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-31 17:18:04 +03:00
Commit Graph

1371 Commits

Author SHA1 Message Date
Stefan Metzmacher
d093b7e777 r1547: rename 'enum <bla>_level' -> 'enum smb_<bla>_level'
e.g. we now have 'union smb_mkdir' and 'enum smb_mkdir_level' in sync

we may should also rename 'RAW_MKDIR_*' -> 'SMB_MKDIR_*'

metze
(This used to be commit 0bb50dcf1c)
2007-10-10 12:57:41 -05:00
Stefan Metzmacher
6ec9c7bd30 r1546: fix the build the function name has changed to srvsvc_NetRemoteTOD
because I implemented the idl for it

metze
(This used to be commit 76cb9966bf)
2007-10-10 12:57:41 -05:00
Stefan Metzmacher
ae0018ad2a r1545: add some comments and move a transport function to the transport section
metze
(This used to be commit 7d5ca8cc7c)
2007-10-10 12:57:41 -05:00
Stefan Metzmacher
937e2a57ac r1544: add some comments and fix 'return True' -> 'return ret'
metze
(This used to be commit a9a22d1e0d)
2007-10-10 12:57:41 -05:00
Stefan Metzmacher
b56fbe6d14 r1543: add srvsvc_NetRemoteTOD idl and torture tests
metze
(This used to be commit 3f2b77d7ec)
2007-10-10 12:57:41 -05:00
Tim Potter
ce0f008a69 r1540: - Remove return statements when a parse error is detected as ethereal
will do this for us.

- Fix a format string error

- Use subtrees for scalar and buffer elements

- Add subtree support for function request/responses

- Formatting fixups
(This used to be commit 0f7b473b4a)
2007-10-10 12:57:40 -05:00
Tim Potter
013b689f91 r1535: Create a subtree for each array element.
(This used to be commit 4099e10d43)
2007-10-10 12:57:40 -05:00
Tim Potter
63771f7378 r1534: Alternate method of grouping togethers buffers and scalars which actually
seems to work.  We create a subtree one level higher instead of in the
parse function.
(This used to be commit 3f5c087c40)
2007-10-10 12:57:40 -05:00
Stefan Metzmacher
fd806c76ba r1530: we don't need to call srvsvc_NetShareGetInfo twice
in NetShareEnum and NetShareEnumAll

metze
(This used to be commit e5bf65b840)
2007-10-10 12:57:40 -05:00
Stefan Metzmacher
fda5ab2f21 r1529: add NetSrvGetInfo torture test
metze
(This used to be commit 0018aeb2fe)
2007-10-10 12:57:40 -05:00
Stefan Metzmacher
4dbc8abcc0 r1528: add NetCharDevQ torture tests
metze
(This used to be commit d44c85176a)
2007-10-10 12:57:40 -05:00
Stefan Metzmacher
dbb6b8f1ec r1527: add NetCharDev torture tests
metze
(This used to be commit dde75d3b34)
2007-10-10 12:57:40 -05:00
Stefan Metzmacher
18b511f0ce r1526: some cleanups and fixes for the srvsvc torture tests
metze
(This used to be commit 3a2a8973be)
2007-10-10 12:57:39 -05:00
Stefan Metzmacher
84735e42d4 r1525: share info level 1004 is invalid,
but is not the same as the default case

metze
(This used to be commit 5fe88379ad)
2007-10-10 12:57:39 -05:00
Stefan Metzmacher
c0f6a5186b r1524: add some comments
metze
(This used to be commit f524073762)
2007-10-10 12:57:39 -05:00
Andrew Tridgell
bacee255dd r1523: declaring variables "in" and "out" in every C module is a bad idea!
I actually don't like this idea of sharing the request buffer
structure between client and server, and I'll see if I can convince
abartlet to revert it. It ties the two pieces of code far more
intimately than is justified, and will certainly lead to ugliness as
the client and server take different paths of development. I would far
prefer we just pass 2 arguments (pointer and length) to the signing
calls instead of 1 (the request).
(This used to be commit 70838a9211)
2007-10-10 12:57:39 -05:00
Andrew Bartlett
afb48b55ae r1522: Oops - I forgot this file in the prvevious commit.
This breaks the request structure out into a common part between the
client and server, which the signing code now uses.

Andrew Bartlett
(This used to be commit 33de58455a)
2007-10-10 12:57:39 -05:00
Andrew Bartlett
b3c46674a6 r1521: Updates to our SMB signing code.
- This causes our client and server code to use the same core code,
  with the same debugs etc.
- In turn, this will allow the 'mandetory/fallback' signing algorithms
  to be shared, and only written once.

Updates to the SPNEGO code
- Don't wrap an empty token to the server, if we are actually already finished.

Andrew Bartlett
(This used to be commit 35b83eb329)
2007-10-10 12:57:39 -05:00
Andrew Tridgell
526d687cbb r1520: only call write handler or read handler, not both. This copes with the
connection being removed between calls.
(This used to be commit 446306f054)
2007-10-10 12:57:39 -05:00
Andrew Tridgell
e3e5fb0889 r1519: show the ldb_errstring() value in the log for failed ldb calls
(This used to be commit 0c5a5632a8)
2007-10-10 12:57:38 -05:00
Andrew Tridgell
90fbb2d01f r1518: check for ldb_search giving -1 (indicating db corruption)
(This used to be commit 9af821c4df)
2007-10-10 12:57:38 -05:00
Andrew Tridgell
eeec610983 r1517: change event_remove_timed() to remove by structure not by handler.
this fixes a crash bug in smbd with multiple RPC clients
(This used to be commit 6e102f732e)
2007-10-10 12:57:38 -05:00
Stefan Metzmacher
7a0e61f38e r1516: remove the server_connection from the list on the server_socket
and call talloc_destroy(srv_conn->mem_ctx)

also don't follow NULL pointers

metze
(This used to be commit 786c00c3d4)
2007-10-10 12:57:38 -05:00
Stefan Metzmacher
b11e1a41d8 r1515: move dublicate code to a function
metze
(This used to be commit a8ec53c81a)
2007-10-10 12:57:38 -05:00
Stefan Metzmacher
a1748ef743 r1514: close stuff from the server_connection not in the
close_connection fn of a specific service

metze
(This used to be commit 0e1f5e66d3)
2007-10-10 12:57:37 -05:00
Stefan Metzmacher
3d4879fdc9 r1513: change DEBUG level to 1
metze
(This used to be commit d7dd5347dd)
2007-10-10 12:57:37 -05:00
Andrew Tridgell
ee7eb7c515 r1512: fixed a bug where we could reference the timer event handler after destruction
(This used to be commit e966d8a1f3)
2007-10-10 12:57:37 -05:00
Andrew Tridgell
6f47dec364 r1511: fixed a free() that should be ldb_free()
this might explain the tdb corruption that metze found - it caused heap corruption that affected tdb
(This used to be commit 31d55dfb44)
2007-10-10 12:57:37 -05:00
Andrew Tridgell
f348037f7b r1510: add a commented out routine I used to test password change on NT3.
(This used to be commit fb5796b0dc)
2007-10-10 12:57:36 -05:00
Andrew Tridgell
2392e9aaa7 r1509: in order to interoperate with NT3.1 we need to ignore extra data at the end of RPC PDUs.
It turns out that NT3.1 adds junk onto the end of every PDU.
(This used to be commit a4a89cffd8)
2007-10-10 12:57:36 -05:00
Andrew Tridgell
4f5e07cef8 r1508: simple fix for broken server side signing. This may need more work for
SPNEGO, but I'll leave andrew to tackle that.
(This used to be commit 5dd71be8d9)
2007-10-10 12:57:36 -05:00
Andrew Tridgell
a02809e28e r1507: fixed the handling of SMB chaining with the new server structure. You
must think carefully about packet chaining when dealing with any
authentication or SMB parsing issues. The particular problem here was
that a chained tconX didn't get the req->session setup after an
initial sesstion setup call, so the tconx used a bogus VUID.
(This used to be commit 6f2a335cd6)
2007-10-10 12:57:36 -05:00
Stefan Metzmacher
5779a7da9a r1499: combine struct user_struct and struct smbsrv_user
to a struct smbsrv_session that the same as cli_session for the client

we need a gensec_security pointer there
(spnego support will follow)

prefix some related functions with smbsrv_

metze
(This used to be commit f276378157)
2007-10-10 12:57:36 -05:00
Andrew Bartlett
f607197054 r1498: (merge from 3.0)
Rework our random number generation system.

On systems with /dev/urandom, this avoids a change to secrets.tdb for every fork().

For other systems, we now only re-seed after a fork, and on startup.
No need to do it per-operation.  This removes the 'need_reseed'
parameter from generate_random_buffer().

This also requires that we start the secrets subsystem, as that is
where the reseed value is stored, for systems without /dev/urandom.

In order to aviod identical streams in forked children, the random
state is re-initialised after the fork(), at the same point were we do
that to the tdbs.

Andrew Bartlett
(This used to be commit b97d3cb2ef)
2007-10-10 12:57:35 -05:00
Stefan Metzmacher
71d28b8265 r1497: add forward declaration for struct auth_session_info
(fix compiler warning)

metze
(This used to be commit 65147f5aa2)
2007-10-10 12:57:35 -05:00
Stefan Metzmacher
ad8d0190f1 r1494: fix debug message
metze
(This used to be commit 463982bf3f)
2007-10-10 12:57:35 -05:00
Stefan Metzmacher
45a85bdd35 r1486: commit the start of the generic server infastructure
the idea is to have services as modules (smb, dcerpc, swat, ...)

the process_model don't know about the service it self anymore.

TODO:
- the smbsrv should use the smbsrv_send function
- the service subsystem init should be done like for other modules
- we need to have a generic socket subsystem, which handle stream, datagram,
  and virtuell other sockets( e.g. for the ntvfs_ipc module to connect to the dcerpc server
  , or for smb or dcerpc or whatever to connect to a server wide auth service)
- and other fixes...

NOTE: process model pthread seems to be broken( but also before this patch!)

metze
(This used to be commit bbe5e00715)
2007-10-10 12:57:35 -05:00
Stefan Metzmacher
9b4ac4d81e r1483: build dynconfig.c also with PICFLAGS
metze
(This used to be commit fef597a76c)
2007-10-10 12:57:34 -05:00
Stefan Metzmacher
6b9d521cf0 r1482: today I saw DCERPC_AUTH_TYPE 16(0x10)
and it seems to be raw krb5, but I need to do some tests

metze
(This used to be commit 0161292790)
2007-10-10 12:57:34 -05:00
Stefan Metzmacher
bfd8bded8e r1481: add idl file and torture test dummies
for DRSUapi (the Active Directory Replication Protocol)

I'll try to fill the idl file as part of a study project
together with some other students...

metze
(This used to be commit 3fc9abcad7)
2007-10-10 12:57:34 -05:00
Stefan Metzmacher
fbdddf0cd9 r1480: gwsam has unresolved symbols in it
(on my SuSE 9.1)

so I disable it for now

metze
(This used to be commit 32d6f86d43)
2007-10-10 12:57:34 -05:00
Stefan Metzmacher
4a3e28a102 r1479: print out domain too
(This used to be commit 2758c26ac9)
2007-10-10 12:57:34 -05:00
Andrew Bartlett
a92d87f1f7 r1476: Don't print messages about the CCACHE not being found - this is normal.
Andrew Bartlett
(This used to be commit 30d88580ef)
2007-10-10 12:57:34 -05:00
Andrew Bartlett
ed03516c91 r1475: More kerberos work
- We can now connect to hosts that follow the SPNEGO RFC, and *do not*
give us their principal name in the mechListMIC.
 - The client code now remembers the hostname it connects to

- We now kinit for a user, if there is not valid ticket already

- Re-introduce clock skew compensation

TODO:
 - See if the username in the ccache matches the username specified
 - Use a private ccache, rather then the global one, for a 'new' kinit
 - Determine 'default' usernames.
  - The default for Krb5 is the one in the ccache, then $USER
  - For NTLMSSP, it's just $USER

Andrew Bartlett
(This used to be commit de5da66939)
2007-10-10 12:57:34 -05:00
Andrew Bartlett
39b1201584 r1474: It is useful if talloc_strdup() behaves like strdup()
- NULL in, NULL out

Andrew Bartlett
(This used to be commit 2cc0b3a2f1)
2007-10-10 12:57:33 -05:00
Volker Lendecke
3a6f761eb0 r1470: Get the smb_trans2 structure out of the rap_cli_call struct.
Initial attempt at RAP server infrastructure. Look at rap_server.c for the
dummy functions that are supposed to implement the core functionality.

ipc_rap.c contains all the data shuffling. _rap_shareenum and _rap_serverenum2
in ipc_rap.c are (I think) regular enough to be auto-generated.

I did not test all the corner cases yet, but nevertheless I would like some
comments on the general style.

Volker

P.S: samba-3 smbclient now doesn't freak out anymore, although the results are
not entirely correct :-)
(This used to be commit 08140cc1a8)
2007-10-10 12:57:33 -05:00
Stefan Metzmacher
bff4e6963c r1469: fix a segfault and compiler warning,
introduced by the "compiler warning fix" in rev 1460...

metze
(This used to be commit ffb7ba35cd)
2007-10-10 12:57:33 -05:00
Stefan Metzmacher
e5173cfd3a r1467: disable gensec_krb5 by default till abartlet
add the kinit code

metze
(This used to be commit 9a876be76c)
2007-10-10 12:57:33 -05:00
Andrew Tridgell
7193ed3998 r1466: the name "oid" is taken by some silly system headers - avoid it in our code
(This used to be commit ea5659b051)
2007-10-10 12:57:33 -05:00
Andrew Tridgell
1d5ff7fc31 r1465: always do a full C prototype, even if its only (void).
this declaration:

int foo();

is *not* the same as this one:

int foo(void);

the first means "I don't know what arguments it takes". The second
means "it takes no arguments"
(This used to be commit 6724932810)
2007-10-10 12:57:33 -05:00