1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-10 13:57:47 +03:00

7322 Commits

Author SHA1 Message Date
Andrew Tridgell
b495bb246c r11816: this fixes some of the problems with the recent async rpc changes and
ncacn_ip_tcp/ncalrpc. The problem was that svn revision 11809 removed
the logic that forced the CONNECT auth type for authenticated binds
which don't have an explicit SIGN or SEAL flag set.
(This used to be commit e7a1f11e8bcba3839f74c7303bd82533a6acfbcd)
2007-10-10 13:46:32 -05:00
Rafal Szczesniak
1b415f7b8e r11815: A bit more comments and spaces for better readability.
rafal
(This used to be commit 1e831aead17b399289b8161e521e1afd5873c556)
2007-10-10 13:46:32 -05:00
Rafal Szczesniak
9aef045b27 r11814: 1) Set name resolution methods according to smb.conf
2) Set credentials workstation name, otherwise rpc bind function
   segfaults on auth stage

rafal
(This used to be commit 6dc67ba6a30e6fc3fc21821d009ea940b093eec2)
2007-10-10 13:46:32 -05:00
Rafal Szczesniak
78a328bef8 r11813: Const-ify name resolution method list and use string list
utilities to set the context field.

rafal
(This used to be commit 5da8b457c34236b21f6e88e3a7a12338d0390a4f)
2007-10-10 13:46:32 -05:00
Volker Lendecke
a6852523d6 r11812: Convert winbind to the async bind routines. Also remove tridge's hack for the
winbind "bug" :-)

Volker
(This used to be commit fb9a3c7ef376f289288c71bc47d67f548ddb7194)
2007-10-10 13:46:32 -05:00
Volker Lendecke
b31fe2d42b r11811: Revert 11808, this broke the selftest. No idea why though. Why do we to the
resolve_name if it's not used?

I know this is my code, but I don't understand why it breaks tests.

Volker
(This used to be commit 577a5639d3fc008480e988864bb4fb59939bc2d8)
2007-10-10 13:46:31 -05:00
Volker Lendecke
02aba4c339 r11810: Fix talloc hierarchy
(This used to be commit e1bf1c326f297321a6c8fdf9679130dba102669e)
2007-10-10 13:46:31 -05:00
Volker Lendecke
f2dedc629c r11809: Make dcerpc_bind_auth async.
This also removes dcerpc_bind_auth_password, the only user of
dcerpc_bind_auth. And this was not only passwords anyway.

Andrew Bartlett, as usual: Please take a close look.

Thanks,

Volker
(This used to be commit 2ff2dae3d035af6cb0c131573cfd983fc9a58eee)
2007-10-10 13:46:31 -05:00
Volker Lendecke
218ea5a5c7 r11808: Fix socket_connect_ev
(This used to be commit 95bd3ffaf7efb117206c83f7c75c302b54e6d059)
2007-10-10 13:46:31 -05:00
Volker Lendecke
b03f5c4478 r11807: Make dcerpc_alter_context async. Same thing: Please look at this
closely. Survives RPC-ALTERCONTEXT.

Volker
(This used to be commit 1875c4808f8c30a6f750b88e166d43a736d5edc7)
2007-10-10 13:46:31 -05:00
Volker Lendecke
957869d2f4 r11806: Minor cleanup
(This used to be commit e75080b26d76199a6006fb076cf816ac023254ee)
2007-10-10 13:46:30 -05:00
Volker Lendecke
82b4335dd2 r11805: dcerpc_bind_auth is only used in dcerpc_bind_auth_password
(This used to be commit 16bc6b64f9053df3d08a05e7b7cfe77be6580d2b)
2007-10-10 13:46:30 -05:00
Volker Lendecke
46685f3e20 r11804: Asyncify the anonymous bind, convert the calls in xplogin.c.
Tridge et al, please take a close look at this. It survives my basic rpc-login
test as well as rpc-lsa, but this is critical I think.

Volker
(This used to be commit bf1a55f44c84d9bb8b2f83f5d25727550ca8fcf2)
2007-10-10 13:46:30 -05:00
Volker Lendecke
c217570f64 r11803: New start for RPC-LOGIN load test, this time async. It's gonna be fun to see
hundreds of logins from a single process.... :-)

Does not do all that is necessary yet. But as the old one was #ifdef'ed out,
this does not hurt much I think.

Volker
(This used to be commit f7cbef3e593df0c75bfd9be5bea64f65042c4d05)
2007-10-10 13:46:30 -05:00
Stefan Metzmacher
bd69407be6 r11802: - add copyright
- fix crash bug when running as non root
- add extra comments in the output

metze
(This used to be commit ffc3cd73474722d60a781fb758105f665e73c0ca)
2007-10-10 13:46:30 -05:00
Andrew Tridgell
fc04e3e795 r11801: - added basic SMB2 find support
- added SMB2-SCANFIND test

- cleaned up continue flags in EAs and find requests
(This used to be commit 8792bc07d927e6470874230153177748afae3ee8)
2007-10-10 13:46:29 -05:00
Andrew Tridgell
7d6f36682e r11800: - filled in unknown fields in SMB2 all_info level
- allow setting of the ALL_EAS flags bits in SMB2 getinfo
(This used to be commit 8c7c54a46dfb91c053d07a5e606892a41213c605)
2007-10-10 13:46:29 -05:00
Jeremy Allison
931b1974a2 r11797: Added OpenSSH fix for "%.*s" format crash. From Darren Tucker
<dtucker@zip.com.au>
Jeremy.
(This used to be commit a2006c162833f8e0513c2f2744688960c04b7e67)
2007-10-10 13:46:29 -05:00
Volker Lendecke
771d4fab26 r11796: Two more uses of !composite_is_ok
(This used to be commit 7256157d01ff47d33706dadd45851cf2fbbce3a6)
2007-10-10 13:46:28 -05:00
Andrew Tridgell
27bab09cdb r11795: used a couple more of volkers composite helper functions. They
certainly make the code more compact.
(This used to be commit 872e2a49d8a1ad1f9a6e2f2d323b3471aeb9cba6)
2007-10-10 13:46:28 -05:00
Andrew Tridgell
f8391489bf r11794: - fixed a valgrind error in libnet, caused by using a stack variable
after the function has returned (the *address variable was assigned
  into the state).

- changed libnet to use event_context_find() instead of
  event_context_init(), so it works as a child of existing code that
  uses a event context
(This used to be commit 47ceb2d3558304b4c4fb00582fb25a885cea2ef5)
2007-10-10 13:46:28 -05:00
Andrew Tridgell
552c0111a1 r11791: simplify the SMB2 connect code following some suggestions from volker
(This used to be commit 71e3e61941621f72f45708340f5d03b2b79580b4)
2007-10-10 13:46:28 -05:00
Stefan Metzmacher
910d61bcd1 r11789: - add the start of a SMB2 server
- it does Negprot and SessionSetup yet
  the rest returns NT_STATUS_NOT_IMPLEMENTED
- it's off by default, enable with:
  smbsrv:enable smb2 = yes
- negotition in the SMB Negprot isn't supported yet
- it's only tested with smbtorture SMB2-CONNECT
  not with vista as client

metze
(This used to be commit 08b31d5f618d2e416cb9812ad3a49754cd7212b8)
2007-10-10 13:46:28 -05:00
Stefan Metzmacher
764dd6027b r11788: remove unused header files
metze
(This used to be commit 27a2615876be3d49cca417796ad7466c342a6f8b)
2007-10-10 13:46:27 -05:00
Stefan Metzmacher
0e6cef55c3 r11787: add missing file
metze
(This used to be commit d74f333a84658a45d5386c39787e61bd31ab540d)
2007-10-10 13:46:27 -05:00
Stefan Metzmacher
6d34ab056f r11786: move all SMB protocol specific stuff to smb_server/smb/
metze
(This used to be commit 5fea278cb65076cea71bb6c921e51c4feffc37d7)
2007-10-10 13:46:27 -05:00
Stefan Metzmacher
da4afcb118 r11785: rename conn.c into tcon.c
metze
(This used to be commit eba4f6b7067c3e32a1db897fdca43f9a76a6f5ea)
2007-10-10 13:46:27 -05:00
Stefan Metzmacher
ab33c314a4 r11783: - make the VIUD field in smbsrv_session 64bit, as SMB2 needs it
- add an idtree_limit to limit the max VUID we give the clients
  it's UINT16_MAX (0xffff) for the SMB protocol
- add auth_time to the smbsrv_session statistics
- use the session_info as marker for finished and non-finished
  session setups

metze
(This used to be commit 7eb10048b2c4e5ee9c39750dc877514ed9235a76)
2007-10-10 13:46:26 -05:00
Stefan Metzmacher
3f968be9d5 r11782: - make the TID 32bit in the smbsrv_tcon structure, as SMB2 uses
them
- add a idtree_limit to the tcons substructure of smbsrv_connection
  this controls what the highest TID is we give away to the client
  it's UINT16_MAX (0xFFFF) for the SMB protocol

metze
(This used to be commit f3bf5a2c0947e33d4167fa4fa290968204a826e8)
2007-10-10 13:46:26 -05:00
Stefan Metzmacher
509be8d902 r11781: rename tree to tcons to match the sessions substructure of smbsrv_connection
metze
(This used to be commit acd3e644e030a3544ddc6cdcd4e0ec9617732cba)
2007-10-10 13:46:26 -05:00
Andrew Tridgell
d5f37ecf94 r11780: it turns out that the MxAc tag isn't a security descriptor, its a
request that the server return its own MxAc blob which contains the
maximum allowed access_mask for the returned file handle
(This used to be commit c0288aa8cd46ca384074f89430c226d725c39475)
2007-10-10 13:46:26 -05:00
Stefan Metzmacher
70a01587b9 r11779: fix crash bug
metze
(This used to be commit b35e43a67b7b9ccb25c8f4ed62b8415e82aaf1c7)
2007-10-10 13:46:26 -05:00
Stefan Metzmacher
4f10246cac r11778: - remove unused memory contexts as req is already the temporary context for the current request
- just use '0', I'll remove the UID_FIELD_INVALID macro completly later
- why search for the session we have just create
- add TODO notices, I need to dicuss them with abartlet...

metze
(This used to be commit 4bceb94749fba3138c492bed2733fad006affcc5)
2007-10-10 13:46:25 -05:00
Andrew Tridgell
3922b68d13 r11777: display the security_descriptor in torture_smb2_all_info()
(This used to be commit d1067fc25df57b1b6ef59a69f979ed76df5c46cd)
2007-10-10 13:46:25 -05:00
Andrew Tridgell
1692b2e571 r11776: no need to call out to SMB to setup test files for SMB2 any more
(This used to be commit dae70c5baed7d5613d793dca15dda3007c1a690a)
2007-10-10 13:46:25 -05:00
Andrew Tridgell
c8c7fb2492 r11775: added support for creating files on SMB2 with initial EA lists and an ACL
(This used to be commit ff197092988cee64742f83df23c43ae664a196f9)
2007-10-10 13:46:25 -05:00
Stefan Metzmacher
799724aae7 r11774: - move SMB specific initialisation of the smbsrv_connection out of smb_server.c
- add a generic incoming packet handler, which handles the first incoming packet
  and passes to the protocol specifc packet handler

metze
(This used to be commit f89deac1cb8a7e5651116d96b9a94d5cc8293076)
2007-10-10 13:46:25 -05:00
Andrew Tridgell
d931455e6e r11773: added a SMB2-SETINFO test suite. This tests the following levels:
BASIC_INFORMATION
DISPOSITION_INFORMATION
ALLOCATION_INFORMATION
END_OF_FILE_INFORMATION
POSITION_INFORMATION
MODE_INFORMATION
(This used to be commit 8804b6a7eb59ab0a9088f89d191194fba71befe3)
2007-10-10 13:46:24 -05:00
Andrew Tridgell
76bfa03815 r11772: - setfileinfo needs a smb2_handle for SMB2 support
- added smb2_setinfo to structs.h
(This used to be commit 5be1d334760b8422b65758d1891f9fe29185a244)
2007-10-10 13:46:24 -05:00
Andrew Tridgell
2ff21db535 r11771: - split out the setinfo blob construction in the libcli/raw code
- added a smb2_setinfo call

- added smb2_setinfo_file*() calls
(This used to be commit da0b6fb93683331134ef2f4abd8707e0c3fc6d9d)
2007-10-10 13:46:24 -05:00
Stefan Metzmacher
58bf4b160e r11759: fix up the SEC_SHARE handling, when we want to support that later
we need to fake a smbsrv_session for each smbsrv_tcon...

metze
(This used to be commit 5b5fb1772034fbfebbb7174df235c8c11d4819fe)
2007-10-10 13:46:24 -05:00
Andrew Tridgell
eedb92ce72 r11758: unified the parse code for the SMB and SMB2 qfsinfo and qfileinfo calls
(This used to be commit ba897e537b9a1544dc214e9d5504c87fee6fced2)
2007-10-10 13:46:23 -05:00
Stefan Metzmacher
ace255a54b r11757: make smb_server.c independent from the protocol
metze
(This used to be commit b606d5664dde64412dc29c1499322c5de4c262d5)
2007-10-10 13:46:23 -05:00
Andrew Tridgell
c3cd4a0087 r11756: split out the parsers for the pass-through levels of QFSINFO and
QFILEINFO levels in trans2, so they can be shared with SMB2
(This used to be commit 5ca2d609e6a3766ebd07763f850ecc62209a7db7)
2007-10-10 13:46:23 -05:00
Andrew Tridgell
7a43b32c3b r11755: added names for all of the SMB2 qfs info levels (they all map exactly
to equivalent SMB qfs levels)
(This used to be commit 4ce48d02aa12d6fa699bf8b250b14851870f0096)
2007-10-10 13:46:23 -05:00
Andrew Tridgell
fe996e8ac6 r11754: make the SMB2 blob push routines take offsets, so they fit better with
the rest of the packet construction code
(This used to be commit 387ec2b17ff30a1c040b460b498c8fa7d8770593)
2007-10-10 13:46:23 -05:00
Andrew Tridgell
553361797f r11753: change the getinfo scanner to scan with both a file and a directory, and to use files
that have streams and EAs
(This used to be commit f739431927e9600e914204930f1e862a367a7368)
2007-10-10 13:46:22 -05:00
Andrew Tridgell
94ae534128 r11752: setup the dynamic pointer for incoming packets too
(This used to be commit 583f3c415ea33ddf5f4065a66f6fae49ab48455e)
2007-10-10 13:46:22 -05:00
Andrew Tridgell
1c71db99aa r11751: fixed the req->out.size calculation (it needs to be the complete
request size, including dynamic portion)
(This used to be commit 1b5cdf92cc7793b08d7c46ef00d4ff696b31c15e)
2007-10-10 13:46:22 -05:00
Rafal Szczesniak
7bfe1d29dd r11750: More comments.
(This used to be commit d277b13ced0983d67b22d78e06d692a966e3c6f1)
2007-10-10 13:46:22 -05:00