summaryrefslogtreecommitdiffstats
path: root/source/libsmb
Commit message (Collapse)AuthorAgeFilesLines
...
* fixed a number of real bugs found by warnings on the 64 bit irix compilerAndrew Tridgell2002-07-151-2/+1
|
* checking for NULL really is counter-productive, and this one was alsoAndrew Tridgell2002-07-151-5/+0
| | | | generating a warning
* fix directory listing on win9x.Andrew Tridgell2002-07-131-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.
* Some fix ups but committing so Andrew can look at the problem I have.Richard Sharpe2002-07-131-7/+1
|
* Fix up the include file that had problems as well.Richard Sharpe2002-07-131-11/+0
|
* Add these two files I forgot.Richard Sharpe2002-07-132-0/+476
|
* Fix some multibyte problems that I forgot about.Richard Sharpe2002-07-131-6/+6
|
* Commit Tom Jansen's changes to head.Richard Sharpe2002-07-111-819/+899
|
* fix declaration of global_in_nmbdAndrew Tridgell2002-07-091-1/+1
|
* Fixed incorrect debug.Tim Potter2002-07-041-1/+1
|
* Make these functions static. These are not mentioned in the external header,Andrew Bartlett2002-07-031-4/+4
| | | | | | | | and appear to be functions for internal use. Richard: please check. Andrew Bartlett
* Add my copyright (which I should have added months ago...)Andrew Bartlett2002-07-031-0/+1
|
* used findstatic.pl to make some variables static and remove some deadAndrew Tridgell2002-07-011-99/+0
| | | | code
* bias the lookup sorting towards directly reachable IPsAndrew Tridgell2002-07-011-0/+8
|
* sort name query responses by how far they are from our interfaceAndrew Tridgell2002-07-012-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.
* The 17-bit length field in the header contains the number ofChristopher R. Hertel2002-07-011-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().
* make net join a bit less verboseAndrew Tridgell2002-06-282-2/+2
| | | | these errors happen all the time, so they shouldn't be level 0
* Proper merge of all the working printing stuff from APPLIANCE_HEAD.Jeremy Allison2002-06-282-4/+227
| | | | | Now let's keep this in sync ! Jeremy.
* fixed a link problem with global_in_nmbdAndrew Tridgell2002-06-271-1/+1
|
* The next phase in the WINS rewrite!Andrew Tridgell2002-06-271-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.
* Using 1 for a tdb hash size makes for slow inserts....Jeremy Allison2002-06-271-1/+1
| | | | Jeremy.
* resolve_wins() now needs to be a public functionAndrew Tridgell2002-06-261-2/+2
|
* This commit finally gives us multiple wins server groups. We nowAndrew Tridgell2002-06-261-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.
* removed the wins name registration code from libsmbclientAndrew Tridgell2002-06-262-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.
* - completely rewrote the wins_srv.c code. It is now much simpler, andAndrew Tridgell2002-06-261-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).
* reverted some bogus test code that jeremy accidentally committedAndrew Tridgell2002-06-261-8/+0
|
* Update cli_full_connection() to take a 'flags' paramater, and try to get aAndrew Bartlett2002-06-252-16/+28
| | | | | | few more places to use it. Andrew Bartlett
* Kill off unnecessary cast.Andrew Bartlett2002-06-251-2/+3
|
* Don't use uint. It doesn't exist on some platforms and we don't define it.Jeremy Allison2002-06-214-7/+15
| | | | | Replaced with "unsigned int". Jeremy.
* Two things: Check how many paramaters that the LDAP libs take for theAndrew Bartlett2002-06-162-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
* Fix up some of the SMB signing code:Andrew Bartlett2002-06-164-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
* Fix spelling typo.Jeremy Allison2002-06-141-2/+2
| | | | Jeremy.
* Ok, now I can try my first client test...Jeremy Allison2002-06-142-8/+33
| | | | Jeremy.
* More of SMB signing for client - not yet finished (should be harmless).Jeremy Allison2002-06-142-9/+41
| | | | Jeremy.
* Removed eff_name field from cli_struct as it wasn't being used anywhere.Tim Potter2002-06-121-1/+2
|
* A couple of updates for the SmbEncrypt code, and some of its users.Andrew Bartlett2002-06-072-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
* Removed unused function.Tim Potter2002-06-031-46/+0
|
* Added cli_samr_get_dom_pwinfo() function.Tim Potter2002-06-031-46/+74
| | | | Some reformatting.
* Removed unused variable.Tim Potter2002-06-031-1/+0
|
* Add rpc for file close, expand file enum to take usernameJim McDonough2002-06-011-4/+44
|
* More cleanup work preparing for SMB signing.Jeremy Allison2002-06-012-89/+105
| | | | Jeremy.
* Add netshareadd and netsharedel client side rpcJim McDonough2002-05-311-0/+81
|
* Update netfileenum on both client and server sides to do an arbitrary numberJim McDonough2002-05-311-0/+42
| | | | | of files. This was done to better enable net rpc file. Perhaps we can start giving back real info this way, too.
* Added netfileenum (sorry - no output though (-:) command.Tim Potter2002-05-301-0/+45
|
* Added netremotetod to try and figure out which srvsvc commands are deniedTim Potter2002-05-291-0/+45
| | | | when using restrictanonymous.
* Cleaned up srvsvc constants a bit.Tim Potter2002-05-291-1/+1
|
* Added netshareenum cli command - the rpc structures here are really bizzareTim Potter2002-05-281-0/+120
| | | | | so muchos dodgy code is required to copy the results out of the parse buffer into the client's talloc context.
* Hmm - you can do NT_STATUS_IS_OK on a WERROR and not get a compile ↵Tim Potter2002-05-281-1/+1
| | | | warning/error.
* Add support for NTLMv2 (tested!) with NTLMSSP.Andrew Bartlett2002-05-261-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
* Update some of the LM hash code to better respect the seperation betweenAndrew Bartlett2002-05-253-54/+57
| | | | | | | | | unix and DOS strings. This pushes all the 'have to uppercase, must be 14 chars' stuff behind the the interface. Andrew Bartlett