cvs2svn Import User [Tue, 14 Nov 2000 15:26:54 +0000 (15:26 +0000)]
This commit was manufactured by cvs2svn to create branch 'SAMBA_2_2'.
David O'Neill [Tue, 14 Nov 2000 15:26:53 +0000 (15:26 +0000)]
Changes from APPLIANCE_HEAD:
- 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)
Gerald Carter [Tue, 14 Nov 2000 13:48:53 +0000 (13:48 +0000)]
set default for 'debug timestamp' in 2.2 to be true. Better choice
for a production release. The default is still no in HEAD and should
stay that way in development branches probably.
-- jerry
Jeremy Allison [Tue, 14 Nov 2000 02:14:58 +0000 (02:14 +0000)]
printing/nt_printing.c: After long soul searching and making both Andrew and my
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.
Jeremy Allison [Tue, 14 Nov 2000 01:40:40 +0000 (01:40 +0000)]
Fixed the cut-n-paste bugs in the new passdb backend code that leaked memory.
Jeremy.
Jeremy Allison [Mon, 13 Nov 2000 23:37:53 +0000 (23:37 +0000)]
Tims fixes for non-local lookup.
Jeremy.
Gerald Carter [Mon, 13 Nov 2000 23:03:34 +0000 (23:03 +0000)]
Large commit which restructures the local password storage API.
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
David O'Neill [Mon, 13 Nov 2000 21:32:16 +0000 (21:32 +0000)]
Fetch authentication info before actually using it
John Terpstra [Mon, 13 Nov 2000 07:33:46 +0000 (07:33 +0000)]
Updated for libnss_wins.so support, added lost files back. Getting ready for release of samba-2.2.0
John Terpstra [Mon, 13 Nov 2000 04:20:24 +0000 (04:20 +0000)]
Adding build files from SuSE.
Richard Sharpe [Sun, 12 Nov 2000 14:35:50 +0000 (14:35 +0000)]
Add back tests/crypttest.c so that we can check for truncated crypt on those
systems that it is relevant for and we avoid setting if for those systems
that it is not true for.
Next to add a test for MD5-capable crypt as well.
Richard Sharpe [Sun, 12 Nov 2000 12:46:14 +0000 (12:46 +0000)]
Back out that last change to configure because it was wrong, and because
it might not be the best one ...
Richard Sharpe [Sun, 12 Nov 2000 11:05:37 +0000 (11:05 +0000)]
Add come configure code to configure for PAM if the PAM library can be found.
Not sure if this will do the right things if the user explicetly asked for
--without-pam.
Tim Potter [Sat, 11 Nov 2000 01:21:31 +0000 (01:21 +0000)]
Fetch authentication info before actually using it.
Jeremy Allison [Sat, 11 Nov 2000 00:33:33 +0000 (00:33 +0000)]
Merge of Herb's profiling code.
Jeremy.
Jeremy Allison [Sat, 11 Nov 2000 00:17:21 +0000 (00:17 +0000)]
Tim Potters lockdb fixes.
Jeremy.
Herb Lewis [Fri, 10 Nov 2000 22:37:20 +0000 (22:37 +0000)]
add new profilelevel command to man page
Herb Lewis [Fri, 10 Nov 2000 22:32:42 +0000 (22:32 +0000)]
add message to query profile status
Herb Lewis [Fri, 10 Nov 2000 22:30:26 +0000 (22:30 +0000)]
add blurb about profiling stuff and pcp agent
Jeremy Allison [Fri, 10 Nov 2000 22:07:57 +0000 (22:07 +0000)]
Merge in Herb's changes from 2.2.
Jeremy.
Jeremy Allison [Fri, 10 Nov 2000 22:05:08 +0000 (22:05 +0000)]
Added Tim's changes to lock DB during update.
Jeremy.
Herb Lewis [Fri, 10 Nov 2000 21:54:58 +0000 (21:54 +0000)]
don't send messages to invalid connections
Jeremy and Andrew can you look and see if this has any other side effects
as I'm not all that confident that I fully understand the tdb stuff.
Jeremy Allison [Fri, 10 Nov 2000 21:52:47 +0000 (21:52 +0000)]
Sync up with HEAD with various fixes.
lib/interface.c: Don't memcmp -1 length.
printing/nt_printing.c: Use getpwuid not getsmbpwuid.
Canonicalize names.
printing/printing.c: TimP print job fixes.
rpc_parse/parse_misc.c: Zero out unicode strings.
rpc_parse/parse_spoolss.c: #ifdefed comment for pre-release W2K systems.
rpc_server/srv_spoolss_nt.c: Canonicalize names.
smbd/lanman.c: TimP print job fixes.
smbwrapper/smbw.c smbwrapper/smbw.h: Updates for envvars.
tdb/tdbutil.c: varargs passes uint16 as int.
utils/nmblookup.c: Bool values used correctly.
Jeremy.
Jeremy Allison [Fri, 10 Nov 2000 21:24:09 +0000 (21:24 +0000)]
rpc_parse/parse_spoolss.c: Updated comment for old version of W2K.
tdb/tdbutil.c: With varargs uint16 is cast to (int).
Jeremy.
Jeremy Allison [Fri, 10 Nov 2000 19:36:34 +0000 (19:36 +0000)]
printing/nt_printing.c: use getpwuid not smbgetpwuid. Canonicalize printernames.
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.
Jeremy Allison [Fri, 10 Nov 2000 19:02:32 +0000 (19:02 +0000)]
Fix from John E. Malmberg <wb8tyw@qsl.net> for -1 return in interfaces scan.
Jeremy.
Gerald Carter [Fri, 10 Nov 2000 15:45:07 +0000 (15:45 +0000)]
merge from HEAD
jerry
Gerald Carter [Fri, 10 Nov 2000 15:33:15 +0000 (15:33 +0000)]
added more explanation about the required permissions (and authorization)
in order to add printer drivers to a samba server.
jerry
Herb Lewis [Fri, 10 Nov 2000 14:40:19 +0000 (14:40 +0000)]
add INFO: to debug message printed by set debug level message
clearer messages for set profiling options messages
Herb Lewis [Thu, 9 Nov 2000 21:24:51 +0000 (21:24 +0000)]
minor update to help file
Herb Lewis [Thu, 9 Nov 2000 21:23:51 +0000 (21:23 +0000)]
minor update to help file
Herb Lewis [Thu, 9 Nov 2000 20:45:09 +0000 (20:45 +0000)]
restructure PCP metrics (merge from 2.2 branch)
Herb Lewis [Thu, 9 Nov 2000 20:39:03 +0000 (20:39 +0000)]
perl script to autogenerate metrics.h file from profile.h
Herb Lewis [Thu, 9 Nov 2000 20:37:38 +0000 (20:37 +0000)]
restructure PCP metrics
Andrew Tridgell [Wed, 8 Nov 2000 03:12:16 +0000 (03:12 +0000)]
an attempt to get the handling of fields in printer info structures
consistent. Still working with Jeremy on this, there is probably more
to be done
Tim Potter [Wed, 8 Nov 2000 00:20:26 +0000 (00:20 +0000)]
Merge fest!!!
Tim Potter [Wed, 8 Nov 2000 00:19:30 +0000 (00:19 +0000)]
make proto
Tim Potter [Wed, 8 Nov 2000 00:16:38 +0000 (00:16 +0000)]
More merging of printing stuff from appliance.
Tim Potter [Tue, 7 Nov 2000 23:05:53 +0000 (23:05 +0000)]
Merge ... latest round of printing fixes from appliance branch.
Herb Lewis [Tue, 7 Nov 2000 19:46:43 +0000 (19:46 +0000)]
sync with 2.2 changes
David O'Neill [Tue, 7 Nov 2000 18:22:22 +0000 (18:22 +0000)]
Changes from APPLIANCE_HEAD:
- fixes for printing error codes for pausing and resuming printer queues.
(source/printing/printing.c)
- Merge of Tim's printer security descriptor, info level, and printerdata
comparison changes. (source/rpc_server/srv_spoolss_nt.c
source/printing/nt_printing.c source/rpc_parse/parse_sec.c,
source/include/proto.h)
Herb Lewis [Tue, 7 Nov 2000 18:14:37 +0000 (18:14 +0000)]
add smbcontrol to swat home page
Tim Potter [Tue, 7 Nov 2000 17:48:54 +0000 (17:48 +0000)]
make proto
Tim Potter [Tue, 7 Nov 2000 02:54:50 +0000 (02:54 +0000)]
Merge ... printer security descriptor, info level and printerdata
comparison changes from appliance branch.
Jeremy Allison [Mon, 6 Nov 2000 23:15:02 +0000 (23:15 +0000)]
64 bit fix from Uros Prestor <uros@turbolinux.com>.
Jeremy.
Jeremy Allison [Mon, 6 Nov 2000 23:14:59 +0000 (23:14 +0000)]
64 bit fix from Uros Prestor <uros@turbolinux.com>.
Jeremy.
Jeremy Allison [Mon, 6 Nov 2000 23:08:03 +0000 (23:08 +0000)]
Fix to the "known/unknown user" difference patch from "Ron Alexander" <rcalex@home.com>.
Jeremy.
Jeremy Allison [Mon, 6 Nov 2000 23:08:00 +0000 (23:08 +0000)]
Fix to the "known/unknown user" difference patch from "Ron Alexander" <rcalex@home.com>.
Jeremy.
John Terpstra [Mon, 6 Nov 2000 22:47:34 +0000 (22:47 +0000)]
Added suggestion for socket options for Linux.
John Terpstra [Mon, 6 Nov 2000 22:05:31 +0000 (22:05 +0000)]
Updated SPEC file for ia64 specifics.
Jeremy Allison [Mon, 6 Nov 2000 21:44:35 +0000 (21:44 +0000)]
Added a VFS version return to init call. Allows smbd to fail an init if
versions don't match.
Jeremy.
Jeremy Allison [Mon, 6 Nov 2000 21:44:33 +0000 (21:44 +0000)]
Added a VFS version return to init call. Allows smbd to fail an init if
versions don't match.
Jeremy.
Jeremy Allison [Mon, 6 Nov 2000 21:33:51 +0000 (21:33 +0000)]
Added a VFS version return to init call. Allows smbd to fail an init if
versions don't match.
Jeremy.
Jeremy Allison [Mon, 6 Nov 2000 21:33:49 +0000 (21:33 +0000)]
Added a VFS version return to init call. Allows smbd to fail an init if
versions don't match.
Jeremy.
Jeremy Allison [Mon, 6 Nov 2000 20:18:49 +0000 (20:18 +0000)]
Merge of Tim's messaging & error fixes.
Jeremy.
Jeremy Allison [Mon, 6 Nov 2000 20:01:05 +0000 (20:01 +0000)]
Fixes for sample VFS audit code from "Brad Sahr" <bsahr@macromedia.com>.
Jeremy.
Jeremy Allison [Mon, 6 Nov 2000 20:01:03 +0000 (20:01 +0000)]
Fixes for sample VFS audit code from "Brad Sahr" <bsahr@macromedia.com>.
Jeremy.
David O'Neill [Mon, 6 Nov 2000 16:58:42 +0000 (16:58 +0000)]
Changes from APPLIANCE_HEAD:
- merge printer-notify smbcontrol command, and docs
(source/utils/smbcontrol.c docs/htmldocs/smbcontrol.1.html
docs/manpages/smbcontrol.1 docs/yodldocs/smbcontrol.1.yo)
- return ERROR_INVALID_FUNCTION rather than script exit code when script
returns nonzero (source/rpc_server/srv_spoolss_nt.c)
Tim Potter [Sun, 5 Nov 2000 23:06:13 +0000 (23:06 +0000)]
Added documentation for printer-notify smbcontrol command.
John Terpstra [Sun, 5 Nov 2000 21:49:18 +0000 (21:49 +0000)]
Back adding the swat po files from samba-2.0.7.
John Terpstra [Sun, 5 Nov 2000 06:39:35 +0000 (06:39 +0000)]
Added libnss_wins stuff, added quotas support, added new features like vfs, msdfs.
John Terpstra [Sun, 5 Nov 2000 06:29:59 +0000 (06:29 +0000)]
Fixed major typo! Where did my characters go? The lost story!
John Terpstra [Sun, 5 Nov 2000 06:22:03 +0000 (06:22 +0000)]
Update to prepare for release of 2.2.0
Jeremy Allison [Sat, 4 Nov 2000 19:48:53 +0000 (19:48 +0000)]
Merge from Tim - don't reinsert UNIX job if already exists.
Jeremy.
Jeremy Allison [Sat, 4 Nov 2000 19:48:51 +0000 (19:48 +0000)]
Merge from Tim - don't reinsert UNIX job if already exists.
Jeremy.
Jeremy Allison [Sat, 4 Nov 2000 19:31:30 +0000 (19:31 +0000)]
Adding Tim's sort fixes for print queues.
Jeremy.
Jeremy Allison [Sat, 4 Nov 2000 19:29:19 +0000 (19:29 +0000)]
Adding Tim's "shadowing global declaration" warning fixes.
Jeremy.
Tim Potter [Sat, 4 Nov 2000 18:44:34 +0000 (18:44 +0000)]
Fix some compiler warnings.
Tim Potter [Sat, 4 Nov 2000 18:24:15 +0000 (18:24 +0000)]
Merge ... printing improvements/fixes from appliance branch.
Jeremy Allison [Sat, 4 Nov 2000 06:46:01 +0000 (06:46 +0000)]
Fix for admin user being ignored.
Jeremy.
Jeremy Allison [Sat, 4 Nov 2000 06:45:26 +0000 (06:45 +0000)]
Fix for admin user being ignored.
Jeremy.
Jeremy Allison [Sat, 4 Nov 2000 06:36:18 +0000 (06:36 +0000)]
Sync up with Tim's changes in applience-head for SACLs.
Jeremy.
Jeremy Allison [Sat, 4 Nov 2000 06:35:22 +0000 (06:35 +0000)]
Sync up with Tim's changes in applience-head.
Jeremy.
Jeremy Allison [Fri, 3 Nov 2000 02:45:34 +0000 (02:45 +0000)]
Fix for core dump when build with --with-vfs. Fix from Brad Sahr.
Jeremy.
John Terpstra [Thu, 2 Nov 2000 19:42:02 +0000 (19:42 +0000)]
Added Using Samba book reference back into welcome page.
John Terpstra [Thu, 2 Nov 2000 19:39:40 +0000 (19:39 +0000)]
Added Using Samba book reference back after losing it from 2.0.7 release.
Jeremy Allison [Wed, 1 Nov 2000 19:44:31 +0000 (19:44 +0000)]
Remove CGI logging code. Make username / password lookups take
the same time.
Jeremy.
Jeremy Allison [Wed, 1 Nov 2000 19:43:53 +0000 (19:43 +0000)]
Remove CGI logging code. Make username/password lookups take
the same time.
Jeremy.
Gerald Carter [Wed, 1 Nov 2000 18:30:07 +0000 (18:30 +0000)]
documentation update from HEAD
Gerald Carter [Wed, 1 Nov 2000 18:28:22 +0000 (18:28 +0000)]
documentation update and general description
jerry
Tim Potter [Wed, 1 Nov 2000 04:31:19 +0000 (04:31 +0000)]
Added a authentication hook to smbwrapper which allows a (username,
workgroup, password) tuple to be provided by another function.
Tim Potter [Wed, 1 Nov 2000 03:22:38 +0000 (03:22 +0000)]
Added smbsh to list of ignored files.
Gerald Carter [Tue, 31 Oct 2000 16:37:49 +0000 (16:37 +0000)]
merge of Simo's TDBPWD backend from HEAD
jerry
David O'Neill [Tue, 31 Oct 2000 15:22:15 +0000 (15:22 +0000)]
Changes from APPLIANCE_HEAD:
- fill in comments that didn't make sense
Tim Potter [Mon, 30 Oct 2000 21:55:30 +0000 (21:55 +0000)]
Merge of comment repair.
Jeremy Allison [Mon, 30 Oct 2000 21:47:20 +0000 (21:47 +0000)]
Only use prs_uint8s on marshalling as we know we're little endian. On
unmarshalling use prs_uint16s. Yes this sucks :-).
Jeremy.
Jeremy Allison [Mon, 30 Oct 2000 21:45:38 +0000 (21:45 +0000)]
Only use prs_uint8s on marshalling as we know we're little endian. On
unmarshalling use prs_uint16s. Yes this sucks :-).
Jeremy.
Jeremy Allison [Mon, 30 Oct 2000 19:45:26 +0000 (19:45 +0000)]
Fixed double btyte-swap problems with bigendian architectures.
Jeremy.
Jeremy Allison [Mon, 30 Oct 2000 19:45:22 +0000 (19:45 +0000)]
Fixed double btyte-swap problems with bigendian architectures.
Jeremy.
Jeremy Allison [Mon, 30 Oct 2000 19:35:50 +0000 (19:35 +0000)]
Call standard_sub_advanced() after lp_logon_XX() calls.
Jeremy.
Jeremy Allison [Mon, 30 Oct 2000 19:35:43 +0000 (19:35 +0000)]
Call standard_sub_advanced() after lp_logon_XX() calls.
Jeremy.
Richard Sharpe [Mon, 30 Oct 2000 12:57:32 +0000 (12:57 +0000)]
Fixing someone's problem where %U was not being substituted.
Not sure if this is the right fix ... Will take more code perusing
than I have done so far, and may need to look things up in a vuid?
Anyway, NET USE H: /HOME now works for Win9X clients ... Now for
Win2K which does not work. One of the RPCs is not working.
Tim Potter [Sun, 29 Oct 2000 23:52:21 +0000 (23:52 +0000)]
proto.h was out of date.
Jeremy Allison [Sun, 29 Oct 2000 17:27:41 +0000 (17:27 +0000)]
Patches from John Reilly @ HP for print job time bugs.
Jeremy.
Jeremy Allison [Sun, 29 Oct 2000 17:27:40 +0000 (17:27 +0000)]
Patches from John Reilly @ HP for print job time bugs.
Jeremy.
Jeremy Allison [Sat, 28 Oct 2000 20:54:45 +0000 (20:54 +0000)]
Another patch to fix cli_reestablish_connection from Kenichi Okuyama@Tokyo Research Lab. IBM-Japan. Co. Jp.
Jeremy.
Jeremy Allison [Sat, 28 Oct 2000 20:49:02 +0000 (20:49 +0000)]
Another patch to fix cli_reestablish_connection from Kenichi Okuyama@Tokyo Research Lab. IBM-Japan. Co. Jp.
Jeremy.
Jeremy Allison [Sat, 28 Oct 2000 19:38:39 +0000 (19:38 +0000)]
David Lee's utmp patch (finally). Thanks David !
Jeremy.
Jeremy Allison [Sat, 28 Oct 2000 19:33:30 +0000 (19:33 +0000)]
Added (finally!:-) David Lee's utmp patch for 2.2. Thanks David !
Jeremy.
Jeremy Allison [Sat, 28 Oct 2000 19:30:21 +0000 (19:30 +0000)]
Fixed silly bug in dup2 code found by Kenichi Okuyama@Tokyo Research Lab. IBM-Japan. Co. Jp.
Jeremy.