summaryrefslogtreecommitdiff
path: root/source3/libsmb
AgeCommit message (Collapse)AuthorFilesLines
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)
2002-05-25Clean up a few unused functions, add a bit of static etc.Andrew Bartlett2-2/+3
Importantly: The removal of the silly 'delete user script' behaviour when secuity=domain. I have left the name the same - as it still does the (previously documented, but not in smb.conf(5)) sane behaviour of deleting users on request. When we decide what to do with the 'add user' functionality, we might rename it. Andrew Bartlett (This used to be commit cdcfe3671eb7570e15649b77f708e6579055e7bc)
2002-05-24Remove the password length paramater from cli_full_connection - it reallyAndrew Bartlett1-5/+6
didn't make any sense, and its was always just strlen(password) anyway. This fixes it to be strlen(password)+1 Andrew Bartlett (This used to be commit c205b18bd6b9b69200ff3db55f2c641631d4ab40)
2002-05-23This function is unused, and doesn't make any sense to me anyway.Andrew Bartlett1-17/+0
Wasn't this what got us some of the bugs with big-endien smbpasswd -j FOO -U ? Anyway, it deserves to die. Andrew Bartlett (This used to be commit 7201720048b31e48fb2600de8f7396088cc9b533)
2002-05-23Given Jeremy's positive response, and a lack of one from tpot, I'll commitAndrew Bartlett11-434/+19
this: More code cleanup - this lot a bit more dodgy than the last: The aim is to trim pwd_cache down to size. Its overly complex, and a pain to deal with. With a header comment like this: 'obfusticaion is planned' I think it deserved to die (at least partly). This was being done to allow 'cli_establish_connection' to die - its functionality has been replaced by cli_full_connection(), which does not duplicate code everywhere for creating names etc. This also removes the little 'init' fucntions for the various pipes, becouse they were only used in one place, and even then it was dodgy. (I've reworked smbcacls not to use anonymous connections any more, as this will (should) fail with a 'restrict anonymous' PDC). This allowed me to remove cli_pipe_util.c, which was calling cli_establish_connection. tpot: I'm not sure what direction you were going with the client stuff, and you may well have been wanting the init functions. If thats the case, give me a yell and I'll reimplement them against cli_full_connection. Andrew Bartlett (This used to be commit fa67e4626bed623333c571e76e06ccd52cba5cc5)
2002-05-18Move client_receive_smb to clientgen.c as a static, as proposed by Elrond.Andrew Bartlett2-26/+62
(only function that used it was unused, and this helps bring TNG and HEAD closer) Its also cleaner. Andrew Bartlett (This used to be commit 78f47c83332a6408a718a3dee45645935638b364)
2002-05-17A few more trusted domains updates from mimir.Andrew Bartlett2-9/+23
I think we may still need to look at our server enumeration code, but other than that, its much better in the tree than out. Andrew Bartlett (This used to be commit d57a1b4629d12a0374cc6d74dfc6f5d4793fcef8)
2002-05-17This removes --with-ssl from Samba.Andrew Bartlett2-17/+0
This option was badly maintained, useless and confused our users and distirbutors. (its SSL, therfore it must be good...) No windows client uses this protocol without help from an SSL tunnel. I can't see any reason why setting up a unix-side SSL wrapper would be any more difficult than the > 10 config options this mess added to samba in any case. On the Samba client end, I think the LIBSMB_PROG hack should be sufficient to start stunnel on the unix side. We might extend this to take %i and %p (IP and port) if there is demand. Andrew Bartlett (This used to be commit b04561d3fd3ee732877790fb4193b20ad72a75f8)
2002-05-17NT sends the server name prepended with \\ for a enumerate printers RPCTim Potter1-2/+2
call so we probably should as well. (This used to be commit 39c0218e5b4132e60401c2fc25fcbc88be94f87f)
2002-05-17Changes to allow head to translate NMB flags ...Richard Sharpe1-3/+19
(This used to be commit c986a19cde0dfa96b512eb24d873203981e68c48)
2002-05-14Added deleteprinterdata client rpc.Tim Potter1-0/+45
(This used to be commit 217ae50acd8cf088e268e7d2a6a7c192aca9e2f1)
2002-05-14Added writeprinter rpc command.Tim Potter1-0/+49
(This used to be commit a1934a7a8eda592e283a01014280ddb373564927)
2002-05-14Added getprinterdata and enumprinterdata rpc client routines.Tim Potter1-42/+186
The setprinterdata routine was rewritten slightly to take more arguments. (This used to be commit a9a5702c88ea9c4a6a9197cf4e3444b26be858cc)
2002-05-13RPC client function for startdocprinter and enddocprinter.Tim Potter1-2/+101
(This used to be commit 38de5025fb1f6396e456e26bfb071223da247f03)
2002-05-08Added client side spoolss rpc commands for startpageprinter,Tim Potter1-0/+200
endpageprinter, setjob and getjob. (This used to be commit d091a9d300c70b708218067d355c8282a6f14ab6)
2002-05-07Added cli_spoolss_enumjobs() function.Tim Potter1-3/+46
(This used to be commit aaa996355287fcd86873697f51a069ccb5a908b9)
2002-05-07DOS error 1307 is returned when an invalid owner for a security descriptorTim Potter1-0/+1
is detected. (This used to be commit 0377448b8c3e2bd8d5bc9f49a585292dc5c5b5a1)
2002-04-24Added constant and message for invalid security descriptor dos error.Tim Potter1-0/+1
(This used to be commit 0827bd4184256a87d6cf6c58bc314309503da7be)
2002-04-22My seven-year-old daughter calls me 'Captain Pedantic'. I don't know whichChristopher R. Hertel1-2/+13
is freakier... the name or the fact that a seven-year-old knows what it means. Small change to correct the value we place in the DGM_LENGTH field of NBT Datagram messages. We have been counting the full datagram, but it's fairly clear in the RFCs that we should only count the source name, destination name, and payload. We've been overcharging by 14 bytes (the size of the NBT DGM header). This fix brings us in line with what Windows does, and what the RFCs say should be done. I'm a little surprised that this didn't cause any bugs or error messages. I guess no one actually checks this field. (This used to be commit 3156c020e5b6f12a448d58669977ad4449789460)
2002-04-19fixed a namequery bug caused by my recent string length patchesAndrew Tridgell1-1/+1
(This used to be commit b2329039d255928faf53474ee7ab06b6353b9fbe)
2002-04-17libsmb/cli_netlogon.c: Fixed confusing debug messages.Jeremy Allison1-4/+4
param/loadparm.c: Added missing debugs that would have helped me find a misconfiguration I lost a day on.... Jeremy. (This used to be commit 6e9572379784c77f3c4e6a95e18a9641880a8ffc)
2002-04-15better handling of DOS LANMAN2.1 protocolAndrew Tridgell1-4/+18
(This used to be commit 7f923d738b94eef042b21e4d0143861755620d91)