Jeremy Allison [Wed, 24 Jan 2001 19:04:56 +0000 (19:04 +0000)]
smbd/lanman.c: Fix for calling qsort with 0 number.
smbd/nttrans.c: Realloc mem fixes based on those that went into trans2.c
smbd/process.c: Move to a table based dispatch, based on a comment from Andrew
about Antons work.
Jeremy.
David O'Neill [Wed, 24 Jan 2001 16:46:08 +0000 (16:46 +0000)]
Changes from APPLIANCE_HEAD:
source/printing/printing.c
- When deleting a job, remove the entry from the back-end database
if the delete succeeded. This stops a spurious permission denied
message appearing if the forced database update is within the lpq
cache timeout and doesn't actually delete the job from the
database.
Gerald Carter [Wed, 24 Jan 2001 15:47:31 +0000 (15:47 +0000)]
getpw[nam|uid] caching patch from "Richard Bollinger"
<rabollinger@home.com>
jerry
Gerald Carter [Wed, 24 Jan 2001 15:41:07 +0000 (15:41 +0000)]
fixed typo in debug statement
jerry
Richard Sharpe [Wed, 24 Jan 2001 12:32:20 +0000 (12:32 +0000)]
Fix a problem with smbc_unlink on directories where it was returning EACCES
instead of EPERM and a problem with SMBC_OPEN where it ignored an error
from the underlying cli_open routine and cheerfully returned a bogus FD.
Jeremy Allison [Tue, 23 Jan 2001 22:21:46 +0000 (22:21 +0000)]
Fix from Kenichi Okuyama for memory leak on Realloc fail.
Jeremy.
Gerald Carter [Tue, 23 Jan 2001 22:14:33 +0000 (22:14 +0000)]
increase MAX_POL_HNDS (merge from 2.2)
--jerry
Gerald Carter [Tue, 23 Jan 2001 22:13:41 +0000 (22:13 +0000)]
only add the service name and client machine name to list of users names
for a session when in share mode security
--jerry
David O'Neill [Tue, 23 Jan 2001 20:25:25 +0000 (20:25 +0000)]
Changes from APPLIANCE_HEAD:
source/rpc_server/srv_spoolss_nt.c
- add an access check to _spoolss_deleteprinter() to stop random
users and passers by from deleting printers.
source/lib/messages.c
- converted global msg_all struct to a local in message_send_all()
function.
source/include/smb.h
- added a success error code to the spoolss return codes.
source/include/proto.h
source/param/loadparm.c
source/printing/printing.c
- Added new parameter "total print jobs" to limit the total number
of print jobs across all queues. Currently individual queues are
limited by "max print jobs".
David O'Neill [Tue, 23 Jan 2001 17:39:03 +0000 (17:39 +0000)]
Changes from APPLIANCE_HEAD:
source/rpc_server/srv_spoolss_nt.c
- remove redundant srv_spoolss_sendnotify() calls from
_spoolss_startdocprinter() and _spoolss_enddocprinter(), as its
functionality is already covered in print_job_start() and
print_job_end()
source/printing/printing.c
- force a print_queue_update() prior to print queue purge so that
all jobs are purged.
Tim Potter [Tue, 23 Jan 2001 17:33:35 +0000 (17:33 +0000)]
Some systems don't support SEC_RIGHTS_MAXIMUM_ALLOWED for lsa_open_policy()
but NT sends 0x2000000 so we might as well do it too.
Tim Potter [Tue, 23 Jan 2001 17:32:47 +0000 (17:32 +0000)]
Patch to get smbcacls and rpcclient to compile together.
Jeremy Allison [Tue, 23 Jan 2001 01:52:30 +0000 (01:52 +0000)]
include/vfs.h:
smbd/vfs-wrap.c:
smbd/vfs.c: Added fchmod_acl and chmod_acl.
lib/substitute.c:
smbd/lanman.c:
smbd/open.c:
smbd/process.c:
smbd/reply.c:
smbd/service.c: Removed sessetup_user variable. Added current_user_info struct
which conatins domain info etc. Added '%D' for client domain parameter.
Jeremy.
David O'Neill [Mon, 22 Jan 2001 19:46:22 +0000 (19:46 +0000)]
Changes from APPLIANCE_HEAD:
source/printing/printing.c
- remove unused variable
David O'Neill [Mon, 22 Jan 2001 16:59:24 +0000 (16:59 +0000)]
Changes from APPLIANCE_HEAD:
source/smbd/lanman.c
- cleanup and bug fix for win9x print queue purge.
source/printing/printing.c
- cleanup and bug fix for win9x print queue purge.
- print_job_end() changed to cleanup spool file in the event of a
failure returned from the print_run_command()
David O'Neill [Mon, 22 Jan 2001 16:11:33 +0000 (16:11 +0000)]
Changes from SAMBA_2_2:
docs/yodldocs/smb.conf.5.yo
- add comment about ability to include environment variables in
smb.conf. Added just to mention it, probably needs improvement.
David O'Neill [Mon, 22 Jan 2001 15:30:38 +0000 (15:30 +0000)]
Small bugfix from Kenichi Okuyama <okuyamak@dd.iij4u.or.jp>:
-FN_GLOBAL_INTEGER(lp_min_wins_ttl, &Globals.max_wins_ttl)
+FN_GLOBAL_INTEGER(lp_min_wins_ttl, &Globals.min_wins_ttl)
David O'Neill [Fri, 19 Jan 2001 16:58:23 +0000 (16:58 +0000)]
Changes from APPLIANCE_HEAD:
source/include/proto.h
- make proto
source/rpc_server/srv_spoolss_nt.c
- clean up incorrect debug statement
David O'Neill [Fri, 19 Jan 2001 16:57:39 +0000 (16:57 +0000)]
Changes from APPLIANCE_HEAD:
source/printing/nt_printing.c
- use se_create_child_secdesc() to create appropriate security
descriptor when performing print job admin security checks.
source/printing/printing.c
- Use JOB_ACCESS_ADMINISTER instead of PRINTER_ACCESS_ADMINISTER in
print_job_{delete,pause,resume}()
- If stat'ing the job file fails, delete the job from printing.tdb
- In print_job_end() check lpq cache time and do a
print_queue_update() This prevents printing.tdb from growing when
using NT/2K clients, and there isn't someone pressing F5 in a
port monitor window.
- In print_queue_resume() check lpq cache time and do a
print_queue_update() Probably should do it for print_job_resume()
too.
David O'Neill [Fri, 19 Jan 2001 16:56:58 +0000 (16:56 +0000)]
Changes from APPLIANCE_HEAD:
source/lib/util_seaccess.c
- added se_create_child_secdesc() function which takes a parent
(container) security descriptor and creates a security descriptor
which has the inheritance flags for each ACE applied. In NT a
print job is a child object of a printer so deleting and
pausing/resuming jobs requires a check against the child security
descriptor, not the parent. The values seen in NT printer
security descriptors now all fit together in a natural and
elegant way which is always nice.
- Removed #ifdef'ed out portion of check_ace() when the
INHERIT_ONLY flag is set as the se_create_child_secdesc()
function now creates a security descriptor which can be used
without this hack.
David O'Neill [Thu, 18 Jan 2001 16:13:03 +0000 (16:13 +0000)]
Changes from APPLIANCE_HEAD:
source/rpc_server/srv_spoolss_nt.c
- Fixed dereference of NULL pointer in security descriptor
notification used by Win2K printers.
Jeremy Allison [Wed, 17 Jan 2001 23:47:08 +0000 (23:47 +0000)]
Get the logic right thistime :-(.
Jeremy.
Jeremy Allison [Wed, 17 Jan 2001 23:41:01 +0000 (23:41 +0000)]
Typo in new file_chmod code caused file attribute changes to fail.
THIS NEEDS TO BE ADDED TO APPLIANCE-HEAD.
Jeremy.
David O'Neill [Wed, 17 Jan 2001 22:55:02 +0000 (22:55 +0000)]
Changes from APPLIANCE_HEAD:
source/include/proto.h
source/include/rpc_spoolss.h
source/rpc_parse/parse_spoolss.c
source/rpc_server/srv_spoolss.c
source/rpc_server/srv_spoolss_nt.c
- speedups in printer queue enumeration - still room for
improvement. The construct_dev_mode() still creates and destroys
a printer info_2 structure every time it is called.
- fixed job->devmode memory leak
- converted printer job notification routines to use tallocated
memory rather than a fixed 2K buffer. This reduces the memory
requirements of a 4500 job queue enumeration from 90MB to about
16MB.
David O'Neill [Wed, 17 Jan 2001 22:33:07 +0000 (22:33 +0000)]
Cleanup of Get_Pwnam(). Adds debugging, cleans up the allow_change
codepath.
David O'Neill [Wed, 17 Jan 2001 19:16:05 +0000 (19:16 +0000)]
Changes from APPLIANCE_HEAD:
source/smbd/lanman.c
- Change fill_printq_info() to fix corrupted 9X/ME printer comment
David O'Neill [Wed, 17 Jan 2001 18:47:46 +0000 (18:47 +0000)]
Changes from APPLIANCE_HEAD:
source/rpc_server/srv_spoolss_nt.c
- Unrolled construct_notify_jobs_info() loop to only fetch
printer info_2 structure once rather than num_print_jobs times.
- convert command to unix codepage.
- remove lp_remove_service() call as it prevents lp_killservice()
from working.
- Modified some DEBUG and DEBUGADD statements.
source/param/loadparm.c
source/param/params.c
- change printer, preload, auto services to FLAG_DOS_STRING,
reverted earlier changes to szPrintername et al, add comments.
source/printing/load.c
- fix bug with lp_auto_services() and strtok()
source/printing/nt_printing.c
source/printing/printing.c
- remove redundant test that used SERVICE(snum)
source/printing/pcap.c
- add unix_to_dos() calls, add notes wrt FIXMEs for
xxx_printer_fn() functions.
source/web/swat.c
- added FIXME comment.
source/smbd/service.c
- added comment re: dos codepage
Tim Potter [Tue, 16 Jan 2001 18:33:05 +0000 (18:33 +0000)]
Set the tdb->map_ptr to NULL if mmap() returns -1.
David O'Neill [Tue, 16 Jan 2001 18:17:55 +0000 (18:17 +0000)]
Changes from APPLIANCE_HEAD:
source/param/loadparm.c
- changed lp_add_printer() to convert szPrintername and comment
from unix to DOS codepage.
Tim Potter [Tue, 16 Jan 2001 17:48:39 +0000 (17:48 +0000)]
Fix for no master browser present.
Tim Potter [Mon, 15 Jan 2001 23:53:33 +0000 (23:53 +0000)]
Some ugly mucking around to get the new rpcclient compiling and linking
with the new samr code and have prototypes working and smbd linking.
Tim Potter [Mon, 15 Jan 2001 23:39:20 +0000 (23:39 +0000)]
New proto and some small changes to rpc_samr.h
Tim Potter [Mon, 15 Jan 2001 23:35:59 +0000 (23:35 +0000)]
rpcclient functions for remaining samr and lsa functions. All functions
now pass through insure except for some of the dodgy spoolss prs
weirdness.
Tim Potter [Mon, 15 Jan 2001 23:34:32 +0000 (23:34 +0000)]
Added remaining samr functions needed by winbindd.
Added #define/#undef NEW_NTDOMAIN symbols.
Jeremy Allison [Mon, 15 Jan 2001 22:46:22 +0000 (22:46 +0000)]
Fixes for POSIX ACLS. ACL merge code.
Jeremy.
Jeremy Allison [Mon, 15 Jan 2001 19:02:57 +0000 (19:02 +0000)]
Updated from 2.2.
Jeremy.
David O'Neill [Mon, 15 Jan 2001 18:36:50 +0000 (18:36 +0000)]
Changes from APPLIANCE_HEAD:
source/rpc_parse/parse_lsa.c
- off by one unistr length bug in init_lsa_trans_name()
source/lib/util_sid.c
- resolve more BUILTIN sid values to names.
source/nsswitch/wb_client.c
- fix typo in debug message
- set errno on error so we don't get bogus value from last failure.
source/rpc_server/srv_spoolss_nt.c
- add debug to track number of open printer handles for ease of
tracking handle leaks in the future.
source/rpc_server/srv_lsa.c
- fix off-by-one string bug. This was preventing NT from
displaying names for well-know SIDs in printer permissions
dialog.
Tim Potter [Mon, 15 Jan 2001 17:46:02 +0000 (17:46 +0000)]
Compile fix for smbw_dir_add function.
Andrew Tridgell [Mon, 15 Jan 2001 01:47:00 +0000 (01:47 +0000)]
removed unnecessary process_exists() call in message_send_pid()
it slows us down and doesn't gain anything
Richard Sharpe [Sun, 14 Jan 2001 00:11:29 +0000 (00:11 +0000)]
Fixed bugs relating to Win2K and the need for a codepage so that unicode
strings can be handled correctly.
Herb Lewis [Fri, 12 Jan 2001 21:47:01 +0000 (21:47 +0000)]
merge from 2.0 branch for installing Using Samba book files
Tim Potter [Fri, 12 Jan 2001 19:47:08 +0000 (19:47 +0000)]
Pass correctly formatted args to cli_spoolss_open_printer_ex()
Tim Potter [Fri, 12 Jan 2001 19:45:50 +0000 (19:45 +0000)]
Printer name unistr is null terminated in make_spoolss_q_open_printer_ex()
Tim Potter [Fri, 12 Jan 2001 18:19:57 +0000 (18:19 +0000)]
Memory leak fixes and uninitialised variables spotted by insure.
Tim Potter [Fri, 12 Jan 2001 17:53:47 +0000 (17:53 +0000)]
Memory leak fixes spotted by insure.
Richard Sharpe [Fri, 12 Jan 2001 12:48:55 +0000 (12:48 +0000)]
Some more bug fixes plus implementations of smbc_mkdir and smbc_rmdir,
both tested ...
More later.
Richard Sharpe [Fri, 12 Jan 2001 05:10:45 +0000 (05:10 +0000)]
Many bug fixes to the libsmbclient.c code plus
- an implementation of smbc_readdir
- extensions to tree.c to show files in a second window
- changes to auth_fn to provide buffers for username, password, etc
from caller rather than callee
Tim Potter [Fri, 12 Jan 2001 02:58:29 +0000 (02:58 +0000)]
Use MAXIMUM_ALLOWED_ACCESS when doing a cli_spoolss_open_printer_ex()
David O'Neill [Fri, 12 Jan 2001 00:10:24 +0000 (00:10 +0000)]
Changes from APPLIANCE_HEAD:
source/tests/crypttest.c
- another one missed from a while ago: 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. (Originally from SAMBA_2_2, Nov 13th 2000)
Tim Potter [Thu, 11 Jan 2001 23:49:51 +0000 (23:49 +0000)]
RPC server fixes for RPC client changes merged from TNG.
Tim Potter [Thu, 11 Jan 2001 23:49:21 +0000 (23:49 +0000)]
Removed link errors between rpcclient and smbd.
Jeremy Allison [Thu, 11 Jan 2001 23:41:33 +0000 (23:41 +0000)]
Fixed typo with acl_set_fd() not needing an ACL_TYPE_T parameter.
Ensure HAVE_NO_ACLS is set in configure if ACL support not selected.
Jeremy
David O'Neill [Thu, 11 Jan 2001 23:21:17 +0000 (23:21 +0000)]
Changes from APPLIANCE_HEAD:
source/lib/smbpasswd.c
- Only call load_interfaces() when doing a network related
operation. This means you can add, remove, enable or disable
smbpasswd entries without a network. Changing passwords always
requires a network.
Tim Potter [Thu, 11 Jan 2001 23:11:16 +0000 (23:11 +0000)]
New makefile and proto for rpcclient.
Tim Potter [Thu, 11 Jan 2001 23:00:07 +0000 (23:00 +0000)]
make proto
Tim Potter [Thu, 11 Jan 2001 22:55:13 +0000 (22:55 +0000)]
General clean up. Merge of access_mask fixes for some unknown fields from
tng.
Tim Potter [Thu, 11 Jan 2001 22:54:12 +0000 (22:54 +0000)]
General clean up. Merged routines for parsing enum_trust_dom rpc call.
Tim Potter [Thu, 11 Jan 2001 22:51:54 +0000 (22:51 +0000)]
Merge of various fixes from the tng headers.
Tim Potter [Thu, 11 Jan 2001 22:49:30 +0000 (22:49 +0000)]
Start of a rewrite of rpcclient based on the libsmb rpc client routines.
Currently there are a small selection of lsa, samr and spoolss functions
implemented. More to follow...
Jeremy Allison [Thu, 11 Jan 2001 22:37:59 +0000 (22:37 +0000)]
First compiling version of code that sets NT ACLs as POSIX ACLs.
Now the debugging starts.... :-).
Jeremy.
David O'Neill [Thu, 11 Jan 2001 21:22:43 +0000 (21:22 +0000)]
Changes from APPLIANCE_HEAD:
source/nsswitch/winbindd_idmap.c
- convert tdb key to unix code-page when generating
David O'Neill [Thu, 11 Jan 2001 20:41:19 +0000 (20:41 +0000)]
Changes from APPLIANCE_HEAD:
testsuite/printing/psec.c
- Use lock directory from smb.conf parameter when peeking at the
ntdrivers.tdb file.
source/rpc_parse/parse_sec.c
- fix typo in debug message
source/script/installbin.sh
- create private directory as part of 'make install'.
source/nsswitch/winbindd_cache.c
source/nsswitch/winbindd_idmap.c
source/passdb/secrets.c
source/smbd/connection.c
- always convert tdb key to unix code-page when generating.
source/printing/nt_printing.c
- always convert tdb key to unix code-page when generating.
- don't prepend path to a filename that is NULL in
add_a_printer_driver_3().
source/rpc_server/srv_spoolss_nt.c
- always convert tdb key to unix code-page when generating.
- don't prepend server name to a path/filename that is NULL in the
fill_printer_driver_info functions.
source/printing/printing.c
- always convert tdb key to unix code-page when generating.
- move access check for print_queue_purge() outside of job delete
loop.
source/smbd/unix_acls.c
- fix for setting ACLs (this got missed earlier)
source/lib/messages.c
- trivial sync with appliance_head
Jeremy Allison [Thu, 11 Jan 2001 19:22:08 +0000 (19:22 +0000)]
Fix from John for growing messages.tdb.
Jeremy.
Jeremy Allison [Thu, 11 Jan 2001 18:38:55 +0000 (18:38 +0000)]
rpc_server/srv_samr.c:
smbd/reply.c:
Added fix needed for appliances. When using winbindd - a new user may
exist (from winbind) but have no home directory. Extend add user script
so it is called with a %H substitution when a user exists but their home
directory does not. Thanks to Alex Win at VA Linux for finding this one
and testing the fix.
libsmb/clidgram.c: Fixed missing return statements.
smbd/uid.c: Fixed typo in debug.
Jeremy.
Tim Potter [Wed, 10 Jan 2001 18:48:02 +0000 (18:48 +0000)]
Added init functions, cli_spoolss_open_printer_ex(),
cli_spoolss_closeprinter(), cli_spoolss_enum_printers(),
cli_spoolss_enum_ports() and cli_spoolss_getprinter()
Tim Potter [Wed, 10 Jan 2001 18:46:24 +0000 (18:46 +0000)]
Added init functions, cli_samr_connect(), cli_samr_close(),
cli_samr_open_{domain,user}() and cli_samr_query_userinfo()
Tim Potter [Wed, 10 Jan 2001 18:44:39 +0000 (18:44 +0000)]
Fixed authenticated pipe access.
Added cli_lsa_enum_trust_dom().
Misc other cosmetic changes.
David O'Neill [Wed, 10 Jan 2001 16:59:49 +0000 (16:59 +0000)]
Changes from APPLIANCE_HEAD:
source/docs/yodldocs/smb.conf.5.yo
source/docs/manpages/smb.conf.5
source/docs/htmldocs/smb.conf.5.html
- add documentation for "hide local users" config option.
David O'Neill [Wed, 10 Jan 2001 16:05:41 +0000 (16:05 +0000)]
Changes from APPLIANCE_HEAD:
source/include/proto.h
source/param/loadparm.c
source/passdb/passdb.c
source/rpc_server/srv_samr.c
- add support for "hide local users" option to HEAD.
Jeremy Allison [Tue, 9 Jan 2001 20:34:37 +0000 (20:34 +0000)]
Fix from "B.V.Dean" <B.V.Dean@ukc.ac.uk> to add "dos filemode" parameter
to allow a chmod to be done if the user has write access to a file, just
like Windows allows. Off by default (compare with "dos filetimes" parameter).
Jeremy.
Jeremy Allison [Mon, 8 Jan 2001 21:19:15 +0000 (21:19 +0000)]
Patch from Richard Bollinger for dead entries being left in connections tdb.
Jeremy.
David O'Neill [Mon, 8 Jan 2001 19:58:30 +0000 (19:58 +0000)]
Changes merged from APPLIANCE_HEAD:
source/printing/printing.c
source/rpc_server/srv_spoolss_nt.c
- convert args for print command to unix codepage.
Richard Sharpe [Mon, 8 Jan 2001 02:47:30 +0000 (02:47 +0000)]
Add support for logging to wherever smb.conf specifies.
Tim Potter [Sun, 7 Jan 2001 23:00:49 +0000 (23:00 +0000)]
Codepages and stuff for Turkish language support. Contributed by
Deniz Akkus <akkus@alum.mit.edu>
Richard Sharpe [Sun, 7 Jan 2001 13:38:24 +0000 (13:38 +0000)]
Get rid of 10.0.0.6 and replace it with 0.0.0.0 as my_ip address prior to
sending datagrams in clidgram.c
Richard Sharpe [Sun, 7 Jan 2001 13:07:26 +0000 (13:07 +0000)]
More bug fixen ...
Richard Sharpe [Sun, 7 Jan 2001 12:54:03 +0000 (12:54 +0000)]
Update the tree.c GTK+ App so it can walk down directories etc ...
Richard Sharpe [Sun, 7 Jan 2001 07:10:50 +0000 (07:10 +0000)]
More fixes and implementation bits and pieces for libsmbclient
Richard Sharpe [Sat, 6 Jan 2001 21:42:22 +0000 (21:42 +0000)]
Fix proto.h ...
Richard Sharpe [Sat, 6 Jan 2001 14:48:55 +0000 (14:48 +0000)]
Fix some more bugs in libsmbclient.c and add functionality to tree.c
Richard Sharpe [Sat, 6 Jan 2001 12:15:46 +0000 (12:15 +0000)]
Fix a minor problem with listing servers in a workgroup and add a
gtk+ test application that tests out some of this stuff ...
Richard Sharpe [Fri, 5 Jan 2001 22:32:53 +0000 (22:32 +0000)]
Fix a small type in libsmbclient.h ...
Richard Sharpe [Fri, 5 Jan 2001 22:30:04 +0000 (22:30 +0000)]
Arrgh, forgot to update proto.h with all the changes I have been making.
Here is an updated one.
David O'Neill [Fri, 5 Jan 2001 19:01:11 +0000 (19:01 +0000)]
Changes from APPLIANCE_HEAD:
source/rpc_server/srv_spoolss_nt.c
- fixed printer policy handle leak in the allow MS printer wizard
stuff.
- mimic behaviour of NT on open_printer_ex() calls by not allowing
call to succeed if connecting user doesn't have at least print
permissions to the printer. Unfortunately, this seems to trigger
a anonymous connection re-using bug so subsequent connects to the
printer by a different user from the same machine always fail.
Blame Tim. =^)
David O'Neill [Fri, 5 Jan 2001 18:57:28 +0000 (18:57 +0000)]
Sync up smb.conf.default with APPLIANCE_HEAD and SAMBA_2_2
David O'Neill [Fri, 5 Jan 2001 18:05:52 +0000 (18:05 +0000)]
Add SuSE 7.1 packaging (from SAMBA_2_2).
David O'Neill [Fri, 5 Jan 2001 17:59:31 +0000 (17:59 +0000)]
Sync up packaging updates that didn't make it to HEAD.
David O'Neill [Fri, 5 Jan 2001 17:50:50 +0000 (17:50 +0000)]
Merge ... documentation updates to HEAD. These got missed somewhere along
the way.
Richard Sharpe [Fri, 5 Jan 2001 13:43:19 +0000 (13:43 +0000)]
The latest changes to libsmbclient ...
It can now do a directory listing for workgroups, servers, and shares, and,
with a bit more effort, it will be able to list directories and files.
I also does not request a username and password for the IPC$ share, but it
should if the first attempt to connect fails.
Richard Sharpe [Fri, 5 Jan 2001 13:11:29 +0000 (13:11 +0000)]
Needed a callback arg on cli_list ...
Tim Potter [Fri, 5 Jan 2001 00:17:36 +0000 (00:17 +0000)]
Added extra argument to calls to smbw_share_add()
David O'Neill [Thu, 4 Jan 2001 19:27:08 +0000 (19:27 +0000)]
Changes from APPLIANCE_HEAD:
source/Makefile.in
- changes to ctags and etags rules that somehow got lost along the way.
source/include/proto.h
- make proto
source/smbd/sec_ctx.c
source/smbd/password.c
- merge debugs for debugging user groups and NT token stuff.
source/lib/util_str.c
- capitalise domain name returned from parse_domain_user()
source/nsswitch/wb_client.c
- fix broken conditional in debug statement.
source/include/rpc_secdes.h
source/include/rpc_spoolss.h
source/printing/nt_printing.c
source/lib/util_seaccess.c
- fix printer permission bugs related to ACE masks for printers.
This adds mapping of generic access rights to object specific
rights for NT printers. Still need to work out whether or not to
ignore ACEs with certain flags set, though. See comments in
util_seaccess.c:check_ace() for details.
source/printing/nt_printing.c
source/printing/printing.c
- use PRINTER_ACCESS_ADMINISTER instead of JOB_ACCESS_ADMINISTER
until we sort out printer/printjob permission stuff.
Richard Sharpe [Thu, 4 Jan 2001 11:35:55 +0000 (11:35 +0000)]
I need a callback arg for cli_NetServerEnum and cli_RNetShareEnum, so I had
to modifiy any routine that calls it to pass NULL and so forth.
Should have no impact. It compiles OK.
Richard Sharpe [Wed, 3 Jan 2001 05:19:21 +0000 (05:19 +0000)]
Add a new file clidgram with routines that are used by the libsmbclient code.
These routines handle the sending of dgrams in ways that don't bind us to
the nmbd code, but we may merge the two routines at some stage.
Also fix Makefile.in so the new code is compiled ...
Let's see whether or not it compiles on other architectures ...
Seems OK under Linux.
Richard Sharpe [Wed, 3 Jan 2001 01:25:05 +0000 (01:25 +0000)]
We only want to mark mailslot packets as loopback packets if they are to
the DGRAM_PORT, since we want to actually send those to other ports.
They might be for the client library running on the Samba server!
Tim Potter [Tue, 2 Jan 2001 23:42:36 +0000 (23:42 +0000)]
Return an empty directory for a stat on a share we aren't allowed to
connect to. This gives a permission denied when a cd is attempted, but
not a permission denied in the directory listing one level up.
Tim Potter [Tue, 2 Jan 2001 23:41:15 +0000 (23:41 +0000)]
Return EACCES for bad password.
Richard Sharpe [Tue, 2 Jan 2001 14:24:46 +0000 (14:24 +0000)]
Make the use of generate_name_trn_id conform to the usage elsewhere ...
Richard Sharpe [Tue, 2 Jan 2001 14:00:27 +0000 (14:00 +0000)]
Comment out unused generate_name_trn_id ...
Tim Potter [Tue, 2 Jan 2001 04:23:17 +0000 (04:23 +0000)]
Fixed -d option for rpcclient.