summaryrefslogtreecommitdiff
path: root/source3/libsmb
AgeCommit message (Collapse)AuthorFilesLines
2002-07-15fixed a number of real bugs found by warnings on the 64 bit irix compilerAndrew Tridgell1-2/+1
(This used to be commit 04de6bbc8055e5547af41b10e284b722f40e726d)
2002-07-15checking for NULL really is counter-productive, and this one was alsoAndrew Tridgell1-5/+0
generating a warning (This used to be commit cd82ba41b8df024f034fcfa24e967ed8c3c8d035)
2002-07-13fix directory listing on win9x.Andrew Tridgell1-3/+7
it turns out this is tricky to get right for both win9x and w2k with and without unicode. This patch seems to do the trick. (This used to be commit 01ebe5fff2b3cb29f083afb224b1257364ac5d80)
2002-07-13Some fix ups but committing so Andrew can look at the problem I have.Richard Sharpe1-7/+1
(This used to be commit 146ba3eb49bade732d57691d8ce181ef6608e0cb)
2002-07-13Fix up the include file that had problems as well.Richard Sharpe1-11/+0
(This used to be commit 753df0b89767261420f242da21d5dfb5403c966b)
2002-07-13Add these two files I forgot.Richard Sharpe2-0/+476
(This used to be commit 5706e6af168b14a40cb1e306c2911182260ff0d3)
2002-07-13Fix some multibyte problems that I forgot about.Richard Sharpe1-6/+6
(This used to be commit 481a70f4f005a778a24e2193f8e760217ee3c946)
2002-07-11Commit Tom Jansen's changes to head.Richard Sharpe1-819/+899
(This used to be commit d3fdce07ab5955abd1f923127ae9eb5006aea505)
2002-07-09fix declaration of global_in_nmbdAndrew Tridgell1-1/+1
(This used to be commit 07de8418369dad1f015369e70e9303fea4130295)
2002-07-04Fixed incorrect debug.Tim Potter1-1/+1
(This used to be commit dd46ff7619129782963ec6ea727e5d731370ee7d)
2002-07-03Make these functions static. These are not mentioned in the external header,Andrew Bartlett1-4/+4
and appear to be functions for internal use. Richard: please check. Andrew Bartlett (This used to be commit cb61e61a113dede4a0b0f5d31d0ec89c4b6ecd65)
2002-07-03Add my copyright (which I should have added months ago...)Andrew Bartlett1-0/+1
(This used to be commit 2d7eccbeb258b4fdd14323a40f9537eb265f73e1)
2002-07-01used findstatic.pl to make some variables static and remove some deadAndrew Tridgell1-99/+0
code (This used to be commit 91ad9041e9507d36eb3f40c23c5d4df61f139ef0)
2002-07-01bias the lookup sorting towards directly reachable IPsAndrew Tridgell1-0/+8
(This used to be commit 514b91827a970a0041314af341b8c66a01668e4a)
2002-07-01sort name query responses by how far they are from our interfaceAndrew Tridgell2-2/+43
broadcast addresses. This makes it far more likely that we will try to talk to an interface that is routable from one of our interfaces. (This used to be commit bc1a0506868266088ae585a7a5dcb1ac8ca3474d)
2002-07-01The 17-bit length field in the header contains the number ofChristopher R. Hertel1-1/+8
bytes which follow the header, not the full packet size. [Yes, the length field is either 17-bits, or (per the RFCs) it is a 16-bit length field preceeded by an 8-bit flags field of which only the low-order bit may be used. If that bit is set, then add 65536 to the 16-bit length field. (In other words, it's a 17-bit unsigned length field.) ...unless, of course, the transport is native TCP [port 445] in which case the length field *might* be 24-bits wide.] Anyway, the change is a very minor one. We were including the four bytes of the header in the length count and, as a result, sending four bytes of garbage at the end of the SESSION REQUEST packet. Small fix in function cli_session_request(). (This used to be commit cd2b1357066a712efcf87ac61922ef871118e8de)
2002-06-28make net join a bit less verboseAndrew Tridgell2-2/+2
these errors happen all the time, so they shouldn't be level 0 (This used to be commit abc2aed26c6cb12a86987a3846ca5c9f7df9a5ae)
2002-06-28Proper merge of all the working printing stuff from APPLIANCE_HEAD.Jeremy Allison2-4/+227
Now let's keep this in sync ! Jeremy. (This used to be commit 3603cd4947df2c10df604447dc542932cb9e5d5a)
2002-06-27fixed a link problem with global_in_nmbdAndrew Tridgell1-1/+1
(This used to be commit 9a3e323ec261a1ee3a83f8c558583c3d4a53e06a)
2002-06-27The next phase in the WINS rewrite!Andrew Tridgell1-6/+10
We now cope wiith multiple WINS groups and multiple failover servers for release and refresh as well as registration. We also do the regitrations in the same fashion as W2K does, where we don't try to register the next IP in the list for a name until the WINS server has acked the previos IP. This prevents us flooding the WINS server and also seems to make for much more reliable multi-homed registration. I also changed the dead WINS server code to mark pairs of IPs dead, not individual IPs. The idea is that a WINS server might be dead from the point of view of one of our interfaces, but not another, so we need to keep talking to it on one while moving onto a failover WINS server on the other interface. This copes much better with partial LAN outages and weird routing tables. (This used to be commit 313f2c9ff7a513802e4f893324865e70912d419e)
2002-06-27Using 1 for a tdb hash size makes for slow inserts....Jeremy Allison1-1/+1
Jeremy. (This used to be commit d015c08100bf467e3f83143586a234989eca1a49)
2002-06-26resolve_wins() now needs to be a public functionAndrew Tridgell1-2/+2
(This used to be commit 0bce9af615db2eb7e95887ab6b95655d7771dac2)
2002-06-26This commit finally gives us multiple wins server groups. We nowAndrew Tridgell1-43/+68
accept an extended syntax for 'wins server' like this: wins server = group1:192.168.2.10 group2:192.168.3.99 group1:192.168.0.1 The tags before the IPs don't mean anything, they are just a way of grouping IPs together. If you use the old syntax (ie. no ':') then an implicit group name of '*' is used. In general I'd recommend people use interface names for the group names, but it doesn't matter much. When we register in nmbd we try to register all our IPs with each group of WINS servers. We keep trying until all of them are registered with every group, falling back to the failover WINS servers for each group as we go. When we do a WINS lookup we try each of the WINS servers for each group. If a WINS server for a group gives a negative answer then we give up on that group and move to the next group. If it times out then we move to the next failover wins server in the group. In either case, if a WINS server doesn't respond then we mark it dead for 10 minutes, to prevent lengthy waits for dead servers. (This used to be commit e125f06058b6b51382cf046b1dbb30728b8aeda5)
2002-06-26removed the wins name registration code from libsmbclientAndrew Tridgell2-229/+158
it is *completely* bogus for our client code to be doing wins registrations. Not only is it slow as hell (think about when a wins server is down) but how the heck is going to answer the queries that will later come in for our name? And what happens when libsmbclient sends registrations and nmbd then gets the WACK response from the wins server? we end up losing our name! Name registration is a job for nmbd, not for clients. (This used to be commit 62774923ffdce15eded0f37ba99e33e9cd7a358c)
2002-06-26- completely rewrote the wins_srv.c code. It is now much simpler, andAndrew Tridgell1-3/+3
gives us a good grounding to properly support multiple wins servers for different interfaces (which will be coming soon ...) - fixed our wins registration failover code to actually do failover! We were not trying to register with a secondary wins server at all when the primary was down. We now fallback correctly. - fixed the multi-homed name registration packets so that they work even in a non-connected network (ie. when one of our interfaces is not routable from the wins server. Yes, this really happens in the real world). (This used to be commit a049360d5b0d95a935b06aad43efc17d34de46dc)
2002-06-26reverted some bogus test code that jeremy accidentally committedAndrew Tridgell1-8/+0
(This used to be commit 6b28ca8bd2a6613989bb23be951836d173296197)
2002-06-25Update cli_full_connection() to take a 'flags' paramater, and try to get aAndrew Bartlett2-16/+28
few more places to use it. Andrew Bartlett (This used to be commit 23689b0746d5ab030d8693abf71dd2e80ec1d7c7)
2002-06-25Kill off unnecessary cast.Andrew Bartlett1-2/+3
(This used to be commit 658e853bc6914113dcd4f67d7a1d2761372b562d)
2002-06-21Don't use uint. It doesn't exist on some platforms and we don't define it.Jeremy Allison4-7/+15
Replaced with "unsigned int". Jeremy. (This used to be commit 5841ca54b6a8c36f3d76c12570ff8f2211ed2363)
2002-06-16Two things: Check how many paramaters that the LDAP libs take for theAndrew Bartlett2-9/+12
rebind proc (some give an extra paramter to pass a void* paramater) and some small changes for the SMB signing code to reset things when the signing starts, and to 'turn off' signing if the session setup failed. Andrew Bartlett (This used to be commit a8805a34e5d96eeb5ffe15681b241d5a449a6144)
2002-06-16Fix up some of the SMB signing code:Andrew Bartlett4-19/+46
The problem was that *all* packets were being signed, even packets before signing was set up. (This broke the session request). This fixes it to be an 'opt in' measure - that is, we only attempt to sign things after we have got a valid, non-guest session setup as per the CIFS spec. I've not tested this against an MS server, becouse my VMware is down, but at least it doesn't break the build farm any more. Andrew Bartlett (This used to be commit 1dc5a8765876c1ca822e454651f8fd4a551965e9)
2002-06-14Fix spelling typo.Jeremy Allison1-2/+2
Jeremy. (This used to be commit 0e7e8d44627ad9645a90e96001f8550b68b67a62)
2002-06-14Ok, now I can try my first client test...Jeremy Allison2-8/+33
Jeremy. (This used to be commit 9d461933766f26ce772f6d5ea849ef9218c4d534)
2002-06-14More of SMB signing for client - not yet finished (should be harmless).Jeremy Allison2-9/+41
Jeremy. (This used to be commit c1b20db4bb4bb1ba485466f50b9795470027327c)
2002-06-12Removed eff_name field from cli_struct as it wasn't being used anywhere.Tim Potter1-1/+2
(This used to be commit aff65bf6c9f339ae1d3122d12114005c017b9b5d)
2002-06-07A couple of updates for the SmbEncrypt code, and some of its users.Andrew Bartlett2-14/+32
(const, takes unix string as arg) Also update cli_full_connection to take NULL pointers as 'undefined' correctly, and therefore do its own lookup etc. This what was intended, but previously you needed to supply a 0.0.0.0 IP address. Andrew Bartlett (This used to be commit 8fb1a9c6ba07dbf04a6aa1e30fa7bbd4c676ed28)
2002-06-03Removed unused function.Tim Potter1-46/+0
(This used to be commit f7e75952306296b11a859f425ff5ec7082239dc2)
2002-06-03Added cli_samr_get_dom_pwinfo() function.Tim Potter1-46/+74
Some reformatting. (This used to be commit d6dd7c7b14a4e3be4d7d435b6ac6bb8189070ff7)
2002-06-03Removed unused variable.Tim Potter1-1/+0
(This used to be commit a8b2e76c5b90d3dcd00f26462614f56936c13110)
2002-06-01Add rpc for file close, expand file enum to take usernameJim McDonough1-4/+44
(This used to be commit 4b18a94590a25882f06f88c3c7dd1a08bf990044)
2002-06-01More cleanup work preparing for SMB signing.Jeremy Allison2-89/+105
Jeremy. (This used to be commit 3c05f7c06fc8c45307ea75128b160a5945fc5197)
2002-05-31Add netshareadd and netsharedel client side rpcJim McDonough1-0/+81
(This used to be commit f37d85babf1061bb2b5ffdf96c72427f8ad5e832)
2002-05-31Update netfileenum on both client and server sides to do an arbitrary numberJim McDonough1-0/+42
of files. This was done to better enable net rpc file. Perhaps we can start giving back real info this way, too. (This used to be commit b3fea72ee9abd2441a49c35442c54819e4ba16ba)
2002-05-30Added netfileenum (sorry - no output though (-:) command.Tim Potter1-0/+45
(This used to be commit 099b750b4ed8f04a1fd8a018508d412691e37df6)
2002-05-29Added netremotetod to try and figure out which srvsvc commands are deniedTim Potter1-0/+45
when using restrictanonymous. (This used to be commit 0c65978ed07903af808da5f32cc29531aef23225)
2002-05-29Cleaned up srvsvc constants a bit.Tim Potter1-1/+1
(This used to be commit ca61f68d5ca8791bea34732bd358cfb63273fc5c)
2002-05-28Added netshareenum cli command - the rpc structures here are really bizzareTim Potter1-0/+120
so muchos dodgy code is required to copy the results out of the parse buffer into the client's talloc context. (This used to be commit 496d3cf02c15ece7e13fa023deea740ee00486a8)
2002-05-28Hmm - you can do NT_STATUS_IS_OK on a WERROR and not get a compile ↵Tim Potter1-1/+1
warning/error. (This used to be commit 8d6270cadf7f99ee8ee441ee6c3e58eca623d519)
2002-05-26Add support for NTLMv2 (tested!) with NTLMSSP.Andrew Bartlett1-1/+42
The problem was the NTLMv2 uses extra data in order to make reply/lookup more difficult. That extra data includes the hostname, and the domain. This matches Win2k (sort of) by sending this information. Win2k connects with LMCompatibilityLevel=5 without a problem. We can change the negotiation bits if we want, this should allow us to make NTLMv2 the default for other clients as well. Some of the extra #defines were found in the squid source. Andrew Bartlett (This used to be commit 17a5f67b3d1935baf6197ae967624eb847b66ac8)
2002-05-25Update some of the LM hash code to better respect the seperation betweenAndrew Bartlett3-54/+57
unix and DOS strings. This pushes all the 'have to uppercase, must be 14 chars' stuff behind the the interface. Andrew Bartlett (This used to be commit dec650efa8ab1466114c2e6d469320a319499ea0)