summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Changes from APPLIANCE_HEAD:David O'Neill2000-11-221-4/+4
| | | | - Add code to test equivalence of private data in NT_DEVICEMODE
* ADDPRINTERDRIVER info level 6 fix - this is dynamic dependingJeremy Allison2000-11-221-7/+9
| | | | | on a field in the struct - that's why it was so hard to find. Jeremy.
* Don't forget to convert into UNIX character set before callingJeremy Allison2000-11-211-1/+1
| | | | | winbindd. Jeremy.
* combined 2 if statments which used the same conditionGerald Carter2000-11-211-3/+5
| | | | -- jerry
* make protoGerald Carter2000-11-211-16/+32
|
* Another large patch for the passdb rewrite.Gerald Carter2000-11-2112-869/+902
| | | | | | | | | | | | | | | | | | | | | | | | | | | | o added BOOL own_memory flag in SAM_ACCOUNT so we could use static memory for string pointer assignment or allocate a new string o added a reference TDB passdb backend. This is only a reference and should not be used in production because - RID's are generated using the same algorithm as with smbpasswd - a TDB can only have one key (w/o getting into problems) and we need three. Therefore the pdb_sam-getpwuid() and pdb_getsampwrid() functions are interative searches :-( we need transaction support, multiple indexes, and a nice open source DBM. The Berkeley DB (from sleepycat.com seems to fit this criteria now) o added a new parameter "private dir" as many places in the code were using lp_smb_passwd_file() and chopping off the filename part. This makes more sense to me and I will docuement it in the man pages o Ran through Insure-lite and corrected memory leaks. Need for a public flogging this time Jeremy (-: -- jerry
* Fix for off-by-one StrnCpy.Jeremy Allison2000-11-211-1/+1
| | | | Jeremy.
* Fix for updating of print queues changed from a local box. Essentially,Jeremy Allison2000-11-214-21/+54
| | | | | | this makes sure that the change messages sent to ourselves are handled synchronously w.r.t. other smb packets incoming. Jeremy.
* Fix from John Reilly for equivalence tests.Jeremy Allison2000-11-172-77/+80
| | | | Jeremy.
* we don't need the separate lp_status() connection records any moreAndrew Tridgell2000-11-171-12/+0
|
* fixed the problem with messages not getting throughAndrew Tridgell2000-11-173-37/+28
| | | | | | | | | | the problem had nothing to do with being your own pid, it was instead a problem with IPC$ connections not being registered in the connections database and an incorrect test for -1 in the messaging code. These changes also mean that IPC$ shares now show up in smbstatus. That is probably a good thing.
* Fix for memory leak when adding driver.Jeremy Allison2000-11-174-12/+14
| | | | Jeremy.
* support smbcontrol sending messages to itself (for testing purposes)Andrew Tridgell2000-11-171-0/+2
|
* save and restore errno in selectAndrew Tridgell2000-11-171-1/+5
|
* Delete queue on empty.Jeremy Allison2000-11-171-2/+7
| | | | Jeremy.
* John Reillys fix for de-registering broadcast names (NT doesn't do this).Jeremy Allison2000-11-171-0/+4
| | | | Jeremy.
* Fix for incorrect break using wrong offset when updating a form.Jeremy Allison2000-11-171-6/+4
| | | | Jeremy.
* the duplicate checking code will cause unaligned accesses on non-intelAndrew Tridgell2000-11-171-4/+4
| | | | processors. Fixed.
* use process_exists() not kill(pid, 0)Andrew Tridgell2000-11-171-1/+1
|
* Fix for a problem with the new messaging system. If a sender is using theJeremy Allison2000-11-169-36/+99
| | | | | | | | | | | | | | messaging system as a notification mechanism, and the speed of notification greatly exceeds the speed of message recovery, then you get a massively (>75Mb) growing tdb. If the message is a simple notification, then the message is static, and you only need one of them in transit to a target process at any one time. This patch adds a BOOL "allow_duplicates" to the message_send_XX primitives. If set to False, then before sending a message the sender checks the existing message queue for a target pid for a duplicate of this message, and doesn't add to it if one already exists. Also added code into msgtest.c to test this. Jeremy.
* Fix for plaintext passwords from Pat Sandfort @ HP.Jeremy Allison2000-11-161-3/+6
| | | | Jeremy.
* Fix from Jim McDonough @ IBM for OS/2 clients.Jeremy Allison2000-11-162-0/+11
| | | | Jeremy.
* Changes from APPLIANCE_HEAD:David O'Neill2000-11-161-0/+2
| | | | - add empty README file for vlp. Blame Tim. =)
* Ok - fixed a bug in our levelII oplock code. We need to break a level II onJeremy Allison2000-11-1614-165/+360
| | | | | | | | | a byte range lock (write lock only, but Win2k breaks on read lock also so I do the same) - if you think about why, this is obvious. Also fixed our client code to do level II oplocks, if requested, and fixed the code where we would assume the client wanted level II if it advertised itself as being level II capable - it may not want that. Jeremy.
* Uninitialized memory read fixes.Jeremy Allison2000-11-151-3/+7
| | | | | open_file_shared takes a DOS pathname, not a UNIX one. Jeremy.
* Tuyrn debug timestamps on by default.Jeremy Allison2000-11-152-5/+17
| | | | | Add Tim's lpq race fix. Jeremy.
* Merge from appliance head of JR's changes for driver versioning.Jeremy Allison2000-11-149-269/+869
| | | | Jeremy.
* - fix "declaration of 'time' shadows global declaration" warning.David O'Neill2000-11-142-18/+18
|
* Changes from APPLIANCE_HEAD:David O'Neill2000-11-147-2/+515
| | | | | | | | | - merged Tim's vlp (virtual lp) test program. Enable it with -DDEVELOPER or by using ./configure.developer (source/include/smb.h source/configure.developer source/printing/lpq_parse.c source/param/loadparm.c testsuite/printing/.cvsignore testsuite/printing/Makefile.vlp testsuite/printing/vlp.c)
* printing/nt_printing.c: After long soul searching and making both Andrew and myJeremy Allison2000-11-142-15/+14
| | | | | | | | life a misery, here is the only possible null driver fix we have found. This *SUCKS*. rpc_server/srv_spoolss_nt.c: Correct printername search. Correct portname reply Correct attributes reply. Removal of unused temp variable. Jeremy.
* Fixed the cut-n-paste bugs in the new passdb backend code that leaked memory.Jeremy Allison2000-11-141-2/+2
| | | | Jeremy.
* Tims fixes for non-local lookup.Jeremy Allison2000-11-131-23/+22
| | | | Jeremy.
* Large commit which restructures the local password storage API.Gerald Carter2000-11-1329-2186/+2554
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently the only backend which works is smbpasswd (tdb, LDAP, and NIS+) are broken, but they were somewhat broken before. :) The following functions implement the storage manipulation interface /*The following definitions come from passdb/pdb_smbpasswd.c */ BOOL pdb_setsampwent (BOOL update); void pdb_endsampwent (void); SAM_ACCOUNT* pdb_getsampwent (void); SAM_ACCOUNT* pdb_getsampwnam (char *username); SAM_ACCOUNT* pdb_getsampwuid (uid_t uid); SAM_ACCOUNT* pdb_getsampwrid (uint32 rid); BOOL pdb_add_sam_account (SAM_ACCOUNT *sampass); BOOL pdb_update_sam_account (SAM_ACCOUNT *sampass, BOOL override); BOOL pdb_delete_sam_account (char* username); There is also a host of pdb_set..() and pdb_get..() functions for manipulating SAM_ACCOUNT struct members. Note that the struct passdb_ops {} has gone away. Also notice that struct smb_passwd (formally in smb.h) has been moved to passdb/pdb_smbpasswd.c and is not accessed outisde of static internal functions in this file. All local password searches should make use of the the SAM_ACCOUNT struct and the previously mentioned functions. I'll write some documentation for this later. The next step is to fix the TDB passdb backend, then work on spliting the backends out into share libraries, and finally get the LDAP backend going. What works and may not: o domain logons from Win9x works o domain logons from WinNT 4 works o user and group enumeration as implemented by Tim works o file and print access works o changing password from Win9x & NT ummm...i'll fix this tonight :) If I broke anything else, just yell and I'll fix it. I think it should be fairly quite. -- jerry
* Fetch authentication info before actually using it.Tim Potter2000-11-111-2/+2
|
* Merge of Herb's profiling code.Jeremy Allison2000-11-114-0/+69
| | | | Jeremy.
* Merge in Herb's changes from 2.2.Jeremy Allison2000-11-103-4/+19
| | | | Jeremy.
* Added Tim's changes to lock DB during update.Jeremy Allison2000-11-101-3/+18
| | | | Jeremy.
* rpc_parse/parse_spoolss.c: Updated comment for old version of W2K.Jeremy Allison2000-11-102-1/+4
| | | | | tdb/tdbutil.c: With varargs uint16 is cast to (int). Jeremy.
* printing/nt_printing.c: use getpwuid not smbgetpwuid. Canonicalize printernames.Jeremy Allison2000-11-105-92/+97
| | | | | | | | printing/printing.c: Insure fix for malloc of zero. rpc_parse/parse_misc.c: Enusre UNISTR's are zero filled. rpc_parse/parse_spoolss.c: Correct INFO_6 - differs between pre-releases of W2K and shipping build. rpc_server/srv_spoolss_nt.c: Canonicalize printernames. Jeremy.
* Fix from John E. Malmberg <wb8tyw@qsl.net> for -1 return in interfaces scan.Jeremy Allison2000-11-101-2/+2
| | | | Jeremy.
* added more explanation about the required permissions (and authorization)Gerald Carter2000-11-101-3/+26
| | | | | | | | | in order to add printer drivers to a samba server. jerry
* minor update to help fileHerb Lewis2000-11-091-0/+15
|
* restructure PCP metrics (merge from 2.2 branch)Herb Lewis2000-11-096-2092/+234
|
* an attempt to get the handling of fields in printer info structuresAndrew Tridgell2000-11-082-48/+30
| | | | | consistent. Still working with Jeremy on this, there is probably more to be done
* Merge fest!!!Tim Potter2000-11-081-24/+20
|
* make protoTim Potter2000-11-081-3/+3
|
* More merging of printing stuff from appliance.Tim Potter2000-11-081-3/+3
|
* Merge of latest round of printing fixes from appliance branch.Tim Potter2000-11-071-30/+69
|
* sync with 2.2 changesHerb Lewis2000-11-071-0/+1
|
* make protoTim Potter2000-11-071-353/+360
|