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

39 Commits

Author SHA1 Message Date
Andrew Tridgell
126fec6169 r2003: got rid of next_token_nr(), which involved some horrible globals
and nasy pointer tricks.

this involved fixing some of the internals of smbclient
2007-10-10 12:58:16 -05:00
Tim Potter
99f7feec0a r1986: Janitor for myself. Merge -r1907:1908 from SAMBA_3_0 branch. 2007-10-10 12:58:14 -05:00
Stefan Metzmacher
ffb87ebc33 r1957: add cmdline_set_* functions
and let smbclient use the cmdline _* functions

metze
2007-10-10 12:58:13 -05:00
Andrew Tridgell
8925b8b219 r1941: - fixed an allocation error with querying security descriptors remotely
- print the received security_descriptor in the smbclient "acl" command

- make sure we zero the alignment data in nttrans packet sends
2007-10-10 12:58:12 -05:00
Stefan Metzmacher
a1bb734009 r1913: add --version back
metze
2007-10-10 12:58:11 -05:00
Stefan Metzmacher
1fc0100e44 r1911: merge a few popt parameters from 3.0 move some to better places
and deal with users DOMAIN and lp_workgroup() of the local workstation

metze
2007-10-10 12:58:10 -05:00
Andrew Tridgell
2ce4028842 r1897: added a choose_called_name() function that allows us to more sanely
handle connections using the IP as the server name, while not trying
for NBT name resolution on names like "192" and "192.168.1.2".

also removed the ip address argument to smbcli_socket_connect() as it
isn't used and doesn't really make sense.
2007-10-10 12:58:09 -05:00
Andrew Bartlett
c9b5f335f8 r1730: We cannot dereference c->tree here, as there is not a tree yet.
Andrew Bartlett
2007-10-10 12:57:51 -05:00
Stefan Metzmacher
8441750fd9 r1654: rename cli_ -> smbcli_
rename CLI_ -> SMBCLI_

metze
2007-10-10 12:57:47 -05:00
Andrew Tridgell
96bf4da3ed r1578: the first stage of the async client rewrite.
Up to now the client code has had an async API, and operated
asynchronously at the packet level, but was not truly async in that it
assumed that it could always write to the socket and when a partial
packet came in that it could block waiting for the rest of the packet.

This change makes the SMB client library full async, by adding a
separate outgoing packet queue, using non-blocking socket IO and
having a input buffer that can fill asynchonously until the full
packet has arrived.

The main complexity was in dealing with the events structure when
using the CIFS proxy backend. In that case the same events structure
needs to be used in both the client library and the main smbd server,
so that when the client library is waiting for a reply that the main
server keeps processing packets. This required some changes in the
events library code.

Next step is to make the generated rpc client code use these new
capabilities.
2007-10-10 12:57:42 -05:00
Andrew Bartlett
cea578d6f3 r1462: GENSEC Kerberos and SPENGO work:
- Spelling - it's SPNEGO, not SPENGO
 - SMB signing - Krb5 logins are now correctly signed
 - SPNEGO - Changes to always tell GENSEC about incoming packets, empty or not.

Andrew Bartlett
2007-10-10 12:57:32 -05:00
Jelmer Vernooij
6fa0baa1c3 r1034: Couple of small (popt) fixes 2007-10-10 12:56:31 -05:00
Stefan Metzmacher
57151e80eb r962: convert 'unsigned' and 'unsigned int' to uint_t
metze
2007-10-10 12:56:23 -05:00
Stefan Metzmacher
18062d2ed9 r960: convert 'unsigned int' to uint_t in the most places
metze
2007-10-10 12:56:23 -05:00
Stefan Metzmacher
b5378803fd r943: change samba4 to use 'uint8_t' instead of 'unsigned char'
metze
2007-10-10 12:56:21 -05:00
Stefan Metzmacher
af6f1f8a01 r889: convert samba4 to use [u]int16_t instead of [u]int16
metze
2007-10-10 12:56:16 -05:00
Stefan Metzmacher
0e5517d937 r884: convert samba4 to use [u]int32_t instead of [u]int32
metze
2007-10-10 12:56:15 -05:00
Andrew Tridgell
9a9244a1c6 r873: converted samba4 to use real 64 bit integers instead of
structures. This was suggested by metze recently.

I checked on the build farm and all the machines we have support 64
bit ints, and support the LL suffix for 64 bit constants. I suspect
some won't support strtoll() and related functions, so we will
probably need replacements for those.
2007-10-10 12:56:14 -05:00
Stefan Metzmacher
0f8c193ac3 r866: convert the rest of the binaries to config.mk files
metze
2007-10-10 12:56:13 -05:00
Andrew Tridgell
3ac0cff837 r591: don't need to init non-ref out ptrs (thanks to abartlet for spotting this) 2007-10-10 12:51:49 -05:00
Andrew Tridgell
845730501e r361: allow anonymous browsing 2007-10-10 12:51:34 -05:00
Andrew Tridgell
32707fe3c0 r360: use the STYPE_* definitions from srvsvc.idl 2007-10-10 12:51:34 -05:00
Andrew Tridgell
53ae1ddb8d r357: added share browsing to smbclient using the SRVSVC MSRPC pipe 2007-10-10 12:51:34 -05:00
Andrew Tridgell
af34710d4d r152: a quick airport commit ....
added ldbedit, a _really_ useful command

added ldbadd, ldbdel, ldbsearch and ldbmodify to build

solved lots of timezone issues, we now pass the torture tests with
client and server in different zones

fixed several build issues

I know this breaks the no-LDAP build. Wait till I arrive in San Jose for that
fix.
2007-10-10 12:51:11 -05:00
Andrew Tridgell
f88f1d3361 r66: fixed a segv when printing an error from a session setup failure. This
was caused by the cli to cli->tree conversion a while ago
2007-10-10 12:50:41 -05:00
Gerald Carter
11717ae912 r42: importing .cvsignore files 2007-10-10 12:50:40 -05:00
Andrew Tridgell
25b7ec390a r23: get rid of def_finfo 2007-10-10 12:50:33 -05:00
Tim Potter
54cb508c78 Convert libcli routines to return NTSTATUS instead of BOOL. Again, the
only users are smbclient and smbtorture.
-
Tim Potter
db1cc96af6 Convert libcli routines to use cli_tree instead of cli_state. Port
smbtorture to use the new interface.

Part 2 will be to eliminate cli_state from smbtorture as this is now
the only place where it is used.
-
Stefan Metzmacher
24dc237e10 merge the version.h autogeneration stuff from 3.0
metze
-
Andrew Tridgell
1c2b8a93c5 fixed some warnings -
Andrew Tridgell
f6bb118799 by using a single proto.h we gain another factor of 4 in the speed of
"make proto"
-
Andrew Tridgell
9bf904fc34 - a few portability fixes from Jim Myers
- added SMBD_LISTEN_BACKLOG in local.h

- added the beginnings of a ndr/rpc parsing framework for Samba4. It
  currently correctly parses security descriptors for the nttrans
  QUERY_SECDESC call, but I hope it will become a reasonable framework
  that an idl based generator can work to
-
Andrew Tridgell
b69f54eb02 thanks to ntfsd and some google searches I worked out what the unknown
fields in level 261 and level 262 of directory search are, plus the
names of the levels

the unknown fields are a 64bit unique file id, and match the 64 bit
number from the internal_information qfileinfo level
-
Andrew Tridgell
4cf3839b72 more fixes from the IRIX compiler (thanks herb!) -
Herb Lewis
9a72476201 client/client.c - cannot initialize struct with non-const values
include/byteorder.h - fix for IRIX compiler - cannot cast an LVALUE
include/smb_interfaces.h - remove empty structure
source/lib/debug.c - void functions cannot return value
libcli/clifile.c - cannot assign *struct to struct
-
Andrew Tridgell
0b7e5d6353 fixed allinfo bug reported by metze -
Andrew Tridgell
295cc63fb8 use the \\server\share form of tconx to work with servers that don't
cope with the simpler form
-
Andrew Tridgell
b0510b5428 first public release of samba4 code -