summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* This doesn't compile but is a placeholder for moving the UNIXJeremy Allison2000-08-291-0/+618
| | | | | | acl code over to POSIX acls. Jeremy. (This used to be commit a2829febe12513d26534c4977c2f41f480f4fa0e)
* smbd/password.c: Fixed typo in Tim's new code that caused insure overrun error.Jeremy Allison2000-08-282-3/+2
| | | | | | smbd/reply.c: Fixed lowercasing UNIX character set problem. Jeremy. (This used to be commit 2b6e3ed7a6447d40d9dd7e9b5c286b1aabe4730d)
* added a little description of useage and output format since this givesHerb Lewis2000-08-281-1/+27
| | | | | more info than just what parameters are not supported by SWAT. (This used to be commit 7db533cb47a0d9bc88219dbe48e96ceed45a65a1)
* fixed typos spotted by Ron Alexander <rcalex@home.com>Gerald Carter2000-08-282-2/+2
| | | | | --jerry (This used to be commit 9fbcede92f558fdcda257338798613cffa4e2cb6)
* script written by herb for reporting which smb.conf parametersGerald Carter2000-08-281-0/+96
| | | | | | | | | | are in loarparm.c but not supported by SWAT. I just thought it looked fun. :-) --jerry (This used to be commit eb20a2c6f478688b82ce8346fea618aebbfc9295)
* Merge bug - still getting used to dirdiff.Tim Potter2000-08-281-1/+0
| | | | (This used to be commit cb717b4a2bb55eb2ff008e59203ebfeac6c5ab9f)
* Oops - missed a file.Tim Potter2000-08-281-0/+42
| | | | (This used to be commit 5aed84b74981a4f4fcc4d466ef03178eff22ba85)
* Merge from appliance branch.Tim Potter2000-08-283-0/+12
| | | | (This used to be commit 567b0095b1b8393b3b1e32533aa2860ab3dbfa47)
* yipee!Andrew Tridgell2000-08-285-6/+24
| | | | | | | | | | | | | The spoolss AddJob function has an [in,out] buffer not an [in] buffer (despite the comment in the code to the contrary). Also, we must fail this function - not just blindly reply "no problem" as AddJob should always fail on non-local printers. This fixes a bug where the "print test page" failed about half the time. I suspect it will also fix a bunch of other intermittent spoolss bugs where the client (incorrectly) tries to use the AddJob printing interface. (This used to be commit 14e534a8907c34b53e00a63756efd71903ff9432)
* made reopen_logs() always re-open logs, not try and be smart about notAndrew Tridgell2000-08-281-37/+34
| | | | | | re-opening in some circumstances. This fixes a problem where a HUP does not re-open logs and leaves the log open on a unlinked file. (This used to be commit f99f028c77482e591741df2a3da7f036f7409a68)
* arrgh.Andrew Tridgell2000-08-281-0/+4
| | | | | | | | whoever added "auto" parameters in loadparam only supported "True", "False" and "Auto", and did not support "Yes" and "No" like booleans. This means anyone using "preferred master = yes" didn't get what they expected! (This used to be commit 311a4dfb9a9a39a54dcb47d83e1604ad7461dce4)
* vfs write data fix. Fix for name matching in addtosmbpassJeremy Allison2000-08-252-3/+3
| | | | | Jeremy. (This used to be commit 85738b7ee1ea6d88999d6aedc51a2daf545cb8b8)
* Replaced "\\MAILSLOT\\NET\\NETLOGON" with NET_LOGON_MAILSLOT constant.Tim Potter2000-08-251-1/+1
| | | | (This used to be commit 5764e84c0e01fa4d6ecba410542f6f5c63b9eae6)
* - fixed the %U macro so that the old (and documented) semantics workAndrew Tridgell2000-08-251-2/+13
| | | | | | | | | | again. This got broken with one of the substitute.c updates a couple of months ago. - also fixed %u to return the username from the current_user structure when called via a method that does not have direct access to the username. I cache the uidtoname() result to prevent thrashing nss. (This used to be commit 2520a0eff9c5decbec79aababe9910db3535890a)
* Updated file with version in TNG.Tim Potter2000-08-251-2/+3
| | | | (This used to be commit 156e17dea48962bca98a3f7d1e876eb6047ebc8a)
* Modified to use sid_to_uid and sid_to_gid. Now ready for POSIX ACLJeremy Allison2000-08-241-8/+9
| | | | | | code.... Jeremy. (This used to be commit 28586c1dee18d99e0e0999ab1a945a33ce33c371)
* Tidied up some error returns from printing calls. Still need to map UNIXJeremy Allison2000-08-233-10/+16
| | | | | | errors to NT error for print job failure returns. Patch from John Reilly at HP. Jeremy. (This used to be commit 3514b5bb8fffd78e3647425d93b74e2e6291bafc)
* Documentation on NT_USER_TOKEN. Requested by Sander.Jeremy Allison2000-08-231-0/+5
| | | | | Jeremy. (This used to be commit e203324d4a3b9aac99ed0b22cbd8c373461919dd)
* Added code to do SID to uid/gid conversion. Needed for ACL support.Jeremy Allison2000-08-235-26/+266
| | | | | Jeremy. (This used to be commit 81c5380f91839b6416c8a42739dadf00e7388528)
* Patch from John Reilly <jreilly@hp.com> for not processing duplicate filesTim Potter2000-08-221-0/+8
| | | | | when moving printer driver to download area. (This used to be commit 6e0c9079c385a4f0e61d9f1b1e0351bc4dbc3151)
* Fix for safe_free freeing static strings. From Robert August Vincent, II.Jeremy Allison2000-08-211-5/+6
| | | | | Jeremy. (This used to be commit bd844fcd3023ab956eb7ab369475955a88bcca14)
* oops. must return "" string and length zero when strlen(filebuf) == 0Luke Leighton2000-08-181-13/+16
| | | | (This used to be commit d3bc7cca99e47ce89035a03022d7c3ec69e01636)
* fixed an off by one error where I was tromping on memoryGerald Carter2000-08-181-1/+1
| | | | | | | | | when initializing a driver_info_3 struct. See spoolss_addprinterdriver() jerry (This used to be commit 4fad1fc28a0396443e4723d2065860feb283a785)
* fixed initialization errors (again!) I must have forgot toGerald Carter2000-08-181-0/+6
| | | | | | | | | | check these in before. jerry (This used to be commit e682d6a599934e5460abe0d30cb2465fa80c7937)
* getfileline() - line with length of zero -> filebuf[strlen(filebuf)-1]Luke Leighton2000-08-181-10/+13
| | | | | is NOT ok. (This used to be commit 24e0c8ef70dc59bfaaa113c3d44befbccbcba15f)
* changing some debug message levelsGerald Carter2000-08-181-12/+12
| | | | | j- (This used to be commit facef51be4e3f3be75613f39c8dfedfa7410552c)
* Fix for Win9x driver downloads when information isGerald Carter2000-08-171-83/+153
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | stored in the TDB. See the message I posted about this on samba-technical * If the admin does not desire the new NT print driver support, nothing needs to be done. All existing parameters work the same. * If the admin wants to take advantage of NT printer driver support but does not want to migrate the 9x drivers to the new setup, the leave the existing printers.def file. When smbd attempts to locate a 9x driver for the printer in the TDB and fails it will drop down to using the printers.def (and all associated parameters). The make_printerdef tool will also remain for backwards compatibility but will be moved to the "this tool is the old way of doing it" pile. * If the admin installs a 9x driver for a printer on a Samba host (in the printing TDB), this information will take precedence and the three old printing parameters will be ignored (including print driver location). * If an admin wants to migrate the printers.def file into the new setup, I can write a script to do this using rpcclient. The main problem is the driver namespace (we need the NT driver name first in order to be consistent). jerry (This used to be commit ac049f8bf348810dc068382fdbc6635a2015d36a)
* added comment for my own memory purposesGerald Carter2000-08-171-0/+1
| | | | | jerry (This used to be commit b64ddbd1aaba8811641e502e96f3bbef01171f52)
* hack for unmarshalling unistr's on machines with BIG_ENDIAN archGerald Carter2000-08-161-2/+19
| | | | | | | | | | | I think we have a lot more of these bugs lurking (i'm fairly confident of it). jerry (This used to be commit 3b14487c7e5218ff3e0ff3118ca1afd706e05247)
* - fixed memcpy bug in copy_unistr2()Gerald Carter2000-08-161-7/+21
| | | | | | | | | | - init_unistr2_from_unistr() does not NULL terminate the buffer --jerry (This used to be commit 65ee5f9b6ed3c4ad33fefd3c879f2649496fd3f3)
* fixed unitialized struct bug in enum_users (whatever it is called)Gerald Carter2000-08-161-1/+5
| | | | | jerry (This used to be commit a606131508592d72f3fd8a0dd63073e9c559062f)
* fixed typo.Gerald Carter2000-08-161-1/+1
| | | | | jerry (This used to be commit f00a330b3e7900bc325802b2a252a392a16a8b2a)
* fixed error in [public] spotted by Ron Alexander <rcalex@home.com>Gerald Carter2000-08-151-2/+1
| | | | | | | | | changed to read only = yes jerry (This used to be commit e17753c532ab6d5ae628c6e6f6d5b810638cb314)
* Merge of uninitialised variable fix from APPLIANCE_HEAD.Tim Potter2000-08-151-4/+1
| | | | (This used to be commit 20a7fefee8c85f02f6a0e2a02c0df04a8b22b7cb)
* Tidied up extra ()'s.Jeremy Allison2000-08-151-12/+12
| | | | | Jeremy (This used to be commit f94f37dcab2bc2b68e2b6b4ca440ad53a60e8117)
* Reverted the change Luke made. Removed IS_BITS_SET_XX macros.Jeremy Allison2000-08-142-18/+7
| | | | | | | | | Do not re-add them. These macros are unsafe as they are not understood. Change all TNG code using them to correct '&' and '|' please. IS_BITS_SET_ALL was being used in cmd_interp.c when IS_BITS_SET_SOME should have been used. Jeremy. (This used to be commit be4e5eeb4f808c1d8ac4030e8886a83a37914c57)
* Merge.Tim Potter2000-08-141-2/+2
| | | | (This used to be commit 604f6a34effb8aeed7701345a4219749a6a97892)
* fixed a few bugs in new_smb_io_relarraystr().Gerald Carter2000-08-141-2/+5
| | | | | | | | Marshalling code path now uses spoolss_smb_io_unistr() also caught a NULL pointer case. i'll update TNG later. (This used to be commit bd4c83eb40a14baf447ac88886d4eafe7b9a309f)
* NT printer permissions test program.Tim Potter2000-08-143-0/+433
| | | | (This used to be commit 9af82423d2e5c6f873a906097a56c8ac6c5f8297)
* restored IS_BITS_SET_xxx macros.Luke Leighton2000-08-141-0/+5
| | | | (This used to be commit bc065f9597654666e2f26ec046e058e44247d6e3)
* hey, jerry: turns out you _have_ converted to get_safe_nt_errmsg!!!Luke Leighton2000-08-141-2/+4
| | | | | | | [got confused with which way dirdiff was going :)]. ... but you forgot to update TNG's lib/cmd_interp.c... (This used to be commit 8fe195df0b5826af7048ef6c87e4b55dfd336cf8)
* jeremy,Luke Leighton2000-08-141-11/+15
| | | | | | | | | | | | | | | | | | please do not remove IS_BITS_SET_XXX macros just because you happen "not to like them". whilst still working on merging, you are not responsible for this code, therefore do not hinder its development whilst people are attempting to do merges. after the merge from TNG to cvs main is completed, you can do what the hell you like. thank you. jerry, please could you consider adding underlying routines (in this case get_safe_smb_errstr()) instead of reverting to a [less secure] previous coding method. thanks. (This used to be commit b2e044f89de7cb12fd14540d5d7d5070951ce2fb)
* minor formatting fixes.Gerald Carter2000-08-141-9/+9
| | | | | jerry (This used to be commit 95355d2cf26f51b1f928b8a020a4a731483be0b8)
* fix for new_smb_io_relarraystr() and new_smb_io_relstr()Gerald Carter2000-08-141-2/+2
| | | | | | | | | | | | | | | to use spool_smb_io_unistr() as this does not call prs_align() befrore parsing the UNISTR. Parsing a void* buffer from an RPC should not be aligned on 4 byte boundaries. Don't think this change affects any marshalling code, only unmarshalling... jerry (This used to be commit bc154e8522a75540a8504195c1e6f45739167e6b)
* removed the prs_align in spoolss_smb_io_unistr() (JF, please check)Gerald Carter2000-08-121-3/+36
| | | | | | | | | | | | | as it was throwing things off when parsing buffers passed in SPOOLSS RPCs fixed the unmarshalling of UNISTR arrays to be double NULL terminated jerry (This used to be commit 236f19659cea87cc35128990954d30c43114b889)
* fixes to prs_unistr UNMARSHALLING only. Problem was due to talloc'sGerald Carter2000-08-121-29/+37
| | | | | | | | | of 0 bytes. jerry (This used to be commit 3fcc59ba928250759bbf3ef46d7c118950a5ba6f)
* FIxed some unmarshalling problems with relstr and unistr arraysGerald Carter2000-08-123-200/+163
| | | | | jerry (This used to be commit ce2d20395ae3d41d55030427f4b7b44ce87c605e)
* fixed unistr_to_ascii to deal with NULL src stringsGerald Carter2000-08-121-14/+14
| | | | | jerry (This used to be commit 8e95aae1709a9be28d6e25ff6f0fdc729dc09274)
* reworked talloc() to in order to help track down invalidGerald Carter2000-08-122-25/+32
| | | | | | | | | | | | | | | | | | memory access. Tridge, I don't think using 0xdeadbeef for size allocations of 0 is going to work. I ended up having to use NULL as much code that works on UNISTR checks to see if the buffer ptr is NULL. So valid code ends up with a seg fault. Rather than rewriting it all, I added a DEBUG_TALLOC #ifdef in talloc.h that sets a macro BAD_PTR. This is the value assigned to ptr for an allocation of 0 bytes. jerry (This used to be commit 233b9cffa2350552d9f775f791d5d5e0464a1ed4)
* removed (void) typecast from SMB_ASSERTGerald Carter2000-08-121-1/+1
| | | | | jerry (This used to be commit f806881e6c2c94c03fb7e70d92cd0a5a3fc30fbd)