summaryrefslogtreecommitdiffstats
path: root/source/libsmb
Commit message (Collapse)AuthorAgeFilesLines
...
* Clean up a few unused functions, add a bit of static etc.Andrew Bartlett2002-05-252-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
* Remove the password length paramater from cli_full_connection - it reallyAndrew Bartlett2002-05-241-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 function is unused, and doesn't make any sense to me anyway.Andrew Bartlett2002-05-231-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
* Given Jeremy's positive response, and a lack of one from tpot, I'll commitAndrew Bartlett2002-05-2311-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
* Move client_receive_smb to clientgen.c as a static, as proposed by Elrond.Andrew Bartlett2002-05-182-26/+62
| | | | | | | | | (only function that used it was unused, and this helps bring TNG and HEAD closer) Its also cleaner. Andrew Bartlett
* A few more trusted domains updates from mimir.Andrew Bartlett2002-05-172-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 removes --with-ssl from Samba.Andrew Bartlett2002-05-172-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
* NT sends the server name prepended with \\ for a enumerate printers RPCTim Potter2002-05-171-2/+2
| | | | call so we probably should as well.
* Changes to allow head to translate NMB flags ...Richard Sharpe2002-05-171-3/+19
|
* Added deleteprinterdata client rpc.Tim Potter2002-05-141-0/+45
|
* Added writeprinter rpc command.Tim Potter2002-05-141-0/+49
|
* Added getprinterdata and enumprinterdata rpc client routines.Tim Potter2002-05-141-42/+186
| | | | The setprinterdata routine was rewritten slightly to take more arguments.
* RPC client function for startdocprinter and enddocprinter.Tim Potter2002-05-131-2/+101
|
* Added client side spoolss rpc commands for startpageprinter,Tim Potter2002-05-081-0/+200
| | | | endpageprinter, setjob and getjob.
* Added cli_spoolss_enumjobs() function.Tim Potter2002-05-071-3/+46
|
* DOS error 1307 is returned when an invalid owner for a security descriptorTim Potter2002-05-071-0/+1
| | | | is detected.
* Added constant and message for invalid security descriptor dos error.Tim Potter2002-04-241-0/+1
|
* My seven-year-old daughter calls me 'Captain Pedantic'. I don't know whichChristopher R. Hertel2002-04-221-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.
* fixed a namequery bug caused by my recent string length patchesAndrew Tridgell2002-04-191-1/+1
|
* libsmb/cli_netlogon.c: Fixed confusing debug messages.Jeremy Allison2002-04-171-4/+4
| | | | | | param/loadparm.c: Added missing debugs that would have helped me find a misconfiguration I lost a day on.... Jeremy.
* better handling of DOS LANMAN2.1 protocolAndrew Tridgell2002-04-151-4/+18
|
* The cli_lsa_lookup_{names,sids} functions were returning uselessTim Potter2002-04-141-20/+21
| | | | | | information when one or more of the names/sids being queried were not resolvable. We now return a list the same length as the parameters passed instead of an array of just the resolvable names/sids.
* Added error string for STATUS_SOME_UNMAPPEDTim Potter2002-04-141-0/+1
|
* Partly based on the work by mimir (Rafal SzczesniakAndrew Bartlett2002-04-141-1/+1
| | | | | | | | | | | | | | <mimir@diament.ists.pwr.wroc.pl>) this patch allows samba to correctly enumerate its trusted domains - by exaimining the keys in the secrets.tdb file. This patch has been tested with both NT4 and rpcclient/wbinfo, and adds some extra functionality to talloc and rpc_parse to allow it to deal with already unicode strings. Finally, this cleans up some const warnings that were in net_rpc.c by pushing another dash of const into the rpc client code. Andrew Bartlett
* Added cli_spoolss_enumjobs() function.Tim Potter2002-04-101-0/+52
|
* Added WERR_INVALID_FORM_NAME constant.Tim Potter2002-04-091-0/+1
|
* Always pass NT password as well as Lanman.Jeremy Allison2002-04-061-1/+1
| | | | Jeremy.
* small change in name_resolve_bcast()Jean-François Micouleau2002-04-041-1/+1
| | | | | | | | | spotted by alexander bokovoy. it shouldn't break anything. if it's wrong, feel free to revert but explain why. J.F.
* If compiling with Insure, mallocate a byte of memory and attach it to theTim Potter2002-04-042-1/+33
| | | | | | | | | | | | | POLICY_HND structure when passing new handles back from the appropriate cli_* functions. When closing the policy handle free the memory. Insure (and indeed other memory checkers) should detect handles that have not been closed properly as memory leaks. Unfortunately this can only be done when the program terminates (set insure++.summarize leaks in your .psrc file) rather than when the policy handle falls out of scope. Looks like Jeremy has squished all the policy handle leaks at the moment but more are bound to crop up later.
* oopsTim Potter2002-04-041-1/+1
|
* Fixed memory leak in cli_lsa_enum_trust_dom(). Use talloc_strdup() insteadTim Potter2002-04-041-1/+1
| | | | of strdup().
* some mergee from SAMBA_2_2. Does compile, but needs some more testing.Gerald Carter2002-04-021-208/+266
| | | | This is an intermediate check-in. More to come....
* Make a number of the lookup tables 'const'. I'm told this assists in sharingAndrew Bartlett2002-03-232-12/+12
| | | | | | memory between users of shared libs. Andrew Bartlett
* Correctly increment offset in cli_smbwrite.Jeremy Allison2002-03-201-0/+2
| | | | Jeremy.
* Test against W2K that we're doing large read/writes correctly (we are).Jeremy Allison2002-03-201-0/+9
| | | | | At least with 14 word writes. Jeremy.
* Don't try to sort a list of zero length in internal_resolve_name()Tim Potter2002-03-191-1/+1
|
* Added dos_errstr() function. Not all errors in list yet.Tim Potter2002-03-172-12/+88
|
* Renamed get_nt_error_msg() to nt_errstr().Tim Potter2002-03-177-10/+10
|
* this tdb was being opened without locking, which is unsafe for sharedAndrew Tridgell2002-03-151-2/+2
| | | | databases
* getpid() -> sys_getpid()Tim Potter2002-03-141-1/+1
|
* added cli_locktype() for testing different lockingX lock typesAndrew Tridgell2002-03-111-0/+54
|
* better handling of a zero timeout in cli_lockAndrew Tridgell2002-03-101-2/+6
|
* Added case statment for decoding enumprinters level 0 result.Tim Potter2002-03-081-0/+4
|
* Removed duplicate \n from debug message.Tim Potter2002-03-061-21/+13
| | | | Small tidyups.
* Fix error return.Jeremy Allison2002-03-051-1/+1
| | | | Jeremy.
* Allow Samba to trust NT4 Domains.Andrew Bartlett2002-03-022-7/+9
| | | | | | | | | | | | | | | | This commit builds on the auth subsystem to give Samba support for trusting NT4 domains. It is off by default, but is enabled by adding 'trustdomain' to the 'auth methods' smb.conf paramater. Tested against NT4 only - there are still some issues with the join code for Win2k servers (spnego stuff). The main work TODO involves enumerating the trusted domains (including the RPC calls to match), and getting winbind to run on the PDC correctly. Similarly, work remains on getting NT4 to trust Samba domains. Andrew Bartlett
* Add a dash of const here and there...Andrew Bartlett2002-03-022-6/+6
|
* The beginning of trusted and trusting domain support fromAndrew Bartlett2002-03-011-0/+112
| | | | | | | | Rafal Szczesniak <mimir@diament.ists.pwr.wroc.pl> This adds the 'net' tools to manipulate the trusted domains. Andrew Bartlett
* Another comment fix for mirmirAndrew Bartlett2002-03-011-1/+1
|
* Ensure that winbindd and smbd both use identical logic to find dc's.Jeremy Allison2002-02-281-8/+8
| | | | | Fix bug where zeroip addresses were being checked. Jeremy.