Jeremy Allison [Wed, 24 Jan 2001 19:34:53 +0000 (19:34 +0000)]
smbd/process.c: & type with 0xff for paranioa sake...
smbd/reply.c smbd/service.c: cause all "add home service" calls to go through a
winbindd aware function.
Jeremy.
(This used to be commit
a72d12e992e2755e925032aef1aa99be74bf6652)
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.
(This used to be commit
a958f7822e095367efb8749b6f1f2e110ffb8866)
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.
(This used to be commit
be61c98832d0a8969e608fd22da2035e454ec788)
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
(This used to be commit
158430ba6a030061bc7d7b84126c6f7ea0041c91)
Gerald Carter [Wed, 24 Jan 2001 15:41:07 +0000 (15:41 +0000)]
fixed typo in debug statement
jerry
(This used to be commit
a28d384e4d7aff1578f22947d34338b75ceab76d)
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.
(This used to be commit
68614bac5a1a4109fdfb728aeae6956b13c64d8f)
Jeremy Allison [Tue, 23 Jan 2001 22:21:46 +0000 (22:21 +0000)]
Fix from Kenichi Okuyama for memory leak on Realloc fail.
Jeremy.
(This used to be commit
6e568332254cf60d6a1f411df960ac2ec5f4bf8e)
Gerald Carter [Tue, 23 Jan 2001 22:14:33 +0000 (22:14 +0000)]
increase MAX_POL_HNDS (merge from 2.2)
--jerry
(This used to be commit
a946d13e0ce8afb509ff24bc8035c7c4d09bcf8b)
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
(This used to be commit
22d6c2c163dd578365bff85ef95abfa59fe356ea)
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".
(This used to be commit
02f154e729b0e8465d3e1e2ac794e6ab3844ce57)
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.
(This used to be commit
0ccc552203d6432cde844c5946b203b27f257b1a)
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.
(This used to be commit
394e17645b777be767cd1c69be3f5efe7a703d85)
Tim Potter [Tue, 23 Jan 2001 17:32:47 +0000 (17:32 +0000)]
Patch to get smbcacls and rpcclient to compile together.
(This used to be commit
5a9870f22d4995ec1fc242169ffc1e85da04a3c4)
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.
(This used to be commit
2844ec3d511680609d6794b8718001a1bda9e89f)
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
(This used to be commit
2d09b53b3a9201c2f52306fc12ab01a92e712db2)
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()
(This used to be commit
0235fbef37b400a2bf875163878e497282cd1739)
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.
(This used to be commit
50c5ee3c7b41add594e151aa301143a5a60351dc)
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)
(This used to be commit
0233ba442643ad13b3707b63046691287fd2b449)
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
(This used to be commit
f07f4e9c7b9bb5230f10fffe50beab163b6f7790)
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.
(This used to be commit
0068b7741fd54706ef36ddbbc3092389d281e684)
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.
(This used to be commit
f125b9a94413fd481ae9f05ec5096ef79f0d49e4)
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.
(This used to be commit
1b6efd18943ef3ed0e2e061495d05cfdecd86c88)
Jeremy Allison [Wed, 17 Jan 2001 23:47:08 +0000 (23:47 +0000)]
Get the logic right thistime :-(.
Jeremy.
(This used to be commit
83596034cdecc7b03e35c0b4bb149e6bf9cebc70)
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.
(This used to be commit
b92ccc0c8e5d066eeb077dfced6e717cd741c7a6)
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.
(This used to be commit
7853b27bc1765d48d5f06837f8aca71a3a0d1e5d)
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.
(This used to be commit
767f73aee62438d74248facf7122b2c49645d5c7)
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
(This used to be commit
acbed88a195b32d251fd15fc8fdd069726659d64)
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
(This used to be commit
7b774b72c2857af9519012106714a9e2cb099da3)
Tim Potter [Tue, 16 Jan 2001 18:33:05 +0000 (18:33 +0000)]
Set the tdb->map_ptr to NULL if mmap() returns -1.
(This used to be commit
cef7f58ac5cc0c96e1027c7e5ecbb3fb72cb94b6)
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.
(This used to be commit
6a1f55b3255f216a5ddc73f94c6cb5a2490c3bbb)
Tim Potter [Tue, 16 Jan 2001 17:48:39 +0000 (17:48 +0000)]
Fix for no master browser present.
(This used to be commit
24c78fdf5fb940b32724474241c464206b83be2f)
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.
(This used to be commit
6d61f11788b8868e3396559307157edd1f39a84f)
Tim Potter [Mon, 15 Jan 2001 23:39:20 +0000 (23:39 +0000)]
New proto and some small changes to rpc_samr.h
(This used to be commit
7f31d4ab1da72fe1dd52c7ecc1c758e210b6d38d)
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.
(This used to be commit
76f08426a08881793b0ef32ccc4e13c54f26417f)
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.
(This used to be commit
13e4fd1d84ab1150446530b11c47c4d6617014cb)
Jeremy Allison [Mon, 15 Jan 2001 22:46:22 +0000 (22:46 +0000)]
Fixes for POSIX ACLS. ACL merge code.
Jeremy.
(This used to be commit
180e4a9cd05bcadb2f7c4c23d653724e867196f0)
Jeremy Allison [Mon, 15 Jan 2001 19:02:57 +0000 (19:02 +0000)]
Updated from 2.2.
Jeremy.
(This used to be commit
6fb5eb8b1eb7972ffafdb8a2b383c3eadf1a96ef)
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.
(This used to be commit
59229b9025cff54cbdd05e374616ffbf9c6fee33)
Tim Potter [Mon, 15 Jan 2001 17:46:02 +0000 (17:46 +0000)]
Compile fix for smbw_dir_add function.
(This used to be commit
d7920a670b7706fc1d794edcfe6baacc5bb26403)
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
(This used to be commit
30fb31a3ab05ab6bb6c89cb457e2216e34b963e6)
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.
(This used to be commit
5629b097d4f04ad45c66f270bd58f08d7c717353)
Herb Lewis [Fri, 12 Jan 2001 21:47:01 +0000 (21:47 +0000)]
merge from 2.0 branch for installing Using Samba book files
(This used to be commit
b04bd9ea2409ef02737fd570ce80daf167e41067)
Tim Potter [Fri, 12 Jan 2001 19:47:08 +0000 (19:47 +0000)]
Pass correctly formatted args to cli_spoolss_open_printer_ex()
(This used to be commit
635db9b6015a422505a5d8507c44e12f146597bc)
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()
(This used to be commit
a125eba0aac2bc6b37322a1e38e46eaac7e20d3a)
Tim Potter [Fri, 12 Jan 2001 18:19:57 +0000 (18:19 +0000)]
Memory leak fixes and uninitialised variables spotted by insure.
(This used to be commit
079f46aca453978a5c313e90f3b24620760ebafc)
Tim Potter [Fri, 12 Jan 2001 17:53:47 +0000 (17:53 +0000)]
Memory leak fixes spotted by insure.
(This used to be commit
8072ee62b082df5d06459667615bb3b78461ec0a)
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.
(This used to be commit
66bb40153a9ff38692356cadfad89cf91439032e)
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
(This used to be commit
7f559c1a7307b91218d5984f48f65e7dc0ab66b9)
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()
(This used to be commit
42674cc616dccbef090254a2c4a3ab0b4360e547)
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)
(This used to be commit
5358f8abc1e1dea591446e926c00821fadfe0d84)
Tim Potter [Thu, 11 Jan 2001 23:49:51 +0000 (23:49 +0000)]
RPC server fixes for RPC client changes merged from TNG.
(This used to be commit
793153ebde08db217a18882c5eec945b7b14de69)
Tim Potter [Thu, 11 Jan 2001 23:49:21 +0000 (23:49 +0000)]
Removed link errors between rpcclient and smbd.
(This used to be commit
e5b078ee7c0a65e89d692b0abe78cf5fdf0cfeab)
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
(This used to be commit
523c91935621ec2d200a79385046694806f7c837)
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.
(This used to be commit
e2193c3a360562dd66a16c8f23f8cf3eed20b8cf)
Tim Potter [Thu, 11 Jan 2001 23:11:16 +0000 (23:11 +0000)]
New makefile and proto for rpcclient.
(This used to be commit
fdf044c351e3ed22212a89c9f2559a44a53d0cdd)
Tim Potter [Thu, 11 Jan 2001 23:00:07 +0000 (23:00 +0000)]
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.
(This used to be commit
c292f4aa31c2d3b4b5b274ef8aded569bdf06fdd)
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.
(This used to be commit
54b34517ce5e51ac697eff4befdd313222b4fecd)
Tim Potter [Thu, 11 Jan 2001 22:51:54 +0000 (22:51 +0000)]
Merge of various fixes from the tng headers.
(This used to be commit
a6d4aad391d2a9e38cbb28d9ddc3e4ff454a759d)
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...
(This used to be commit
9a953514f2a2cfd3c43105dd6203bc3e36aff1b1)
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.
(This used to be commit
2300ac79f5eba84225288a87129b4df5bd471466)
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
(This used to be commit
3b9e68d6806b039d284533b64f9c41c9d4790a8b)
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
(This used to be commit
376601d17d53ef7bfaafa576bd770e554516e808)
Jeremy Allison [Thu, 11 Jan 2001 19:22:08 +0000 (19:22 +0000)]
Fix from John for growing messages.tdb.
Jeremy.
(This used to be commit
6dc83a8c665dd6774ce597cf7269ad4d8c5380cf)
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.
(This used to be commit
7ba0a2192b89954604dd793c537b4a17c2d1ac07)
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()
(This used to be commit
84247ba7d7048cc828edad282313bfd21bbc6b5d)
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()
(This used to be commit
385860107346de26b4bcbd33d5f131a0670f6f93)
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.
(This used to be commit
751483a155723581f987d46605b59cdeba34ad72)
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.
(This used to be commit
a578bdb6691fab2b8246be4a3bb80d3932b5bf19)
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.
(This used to be commit
44dc339fe757b2b5578b30e74aad8c1b12c23f5f)
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.
(This used to be commit
8abdf0e29fdb02a7929aa4395947b5023a7194a0)
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.
(This used to be commit
48a3afcd4716a456c3072bf41450b361e4379be8)
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.
(This used to be commit
1c0ae957f8f1abee7d22a18b6df092eb2a884ae1)
Richard Sharpe [Mon, 8 Jan 2001 02:47:30 +0000 (02:47 +0000)]
Add support for logging to wherever smb.conf specifies.
(This used to be commit
cc5a2db8a0c195b328b93fff566bc1120aeef54a)
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>
(This used to be commit
5650c143a706a0a65dfd55dea2248c6636a57912)
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
(This used to be commit
4c540393b33a5c49adafcc9320f591490b97192a)
Richard Sharpe [Sun, 7 Jan 2001 13:07:26 +0000 (13:07 +0000)]
More bug fixen ...
(This used to be commit
a13b5ef7bba86d42df98b4f493aa2ea9e1caa6c3)
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 ...
(This used to be commit
0490a0ed10cf6ded5b9483958eddd930ef32fb66)
Richard Sharpe [Sun, 7 Jan 2001 07:10:50 +0000 (07:10 +0000)]
More fixes and implementation bits and pieces for libsmbclient
(This used to be commit
991f6907ac200d53b95a206d65844a0c0830caae)
Richard Sharpe [Sat, 6 Jan 2001 21:42:22 +0000 (21:42 +0000)]
Fix proto.h ...
(This used to be commit
0219767c934eb2bf52b784ca84f01ae4b22ca2be)
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
(This used to be commit
d6cef8877a7ed80329b3ba67231a94601fcfd060)
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 ...
(This used to be commit
606c4aeceac0bd1823ec6376df3ca5016007ab38)
Richard Sharpe [Fri, 5 Jan 2001 22:32:53 +0000 (22:32 +0000)]
Fix a small type in libsmbclient.h ...
(This used to be commit
807e2e1faa23a36cd1abc07ac8a26d157099aba1)
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.
(This used to be commit
12639e2b36d8fab053436a2186e80a84a504bf25)
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. =^)
(This used to be commit
33fc7f4527c34b39b1a0f3fee2f0697ea74f79c4)
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
(This used to be commit
74dd0f58211129770f6e85d28a658e5fdff1ecae)
David O'Neill [Fri, 5 Jan 2001 18:05:52 +0000 (18:05 +0000)]
Add SuSE 7.1 packaging (from SAMBA_2_2).
(This used to be commit
69f28a868a7e78b8b93bbf7dcf21bf6fd813c12d)
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.
(This used to be commit
c6f7358535eb96112e055d60d39c1595601d3056)
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.
(This used to be commit
afad150bacfd02ec83c57ea9ba9152ff59fb7eee)
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.
(This used to be commit
38ff91c5059a32c7ad2fd6074697c7c7f68a878c)
Richard Sharpe [Fri, 5 Jan 2001 13:11:29 +0000 (13:11 +0000)]
Needed a callback arg on cli_list ...
(This used to be commit
d45e667a74fc2fcbf69c4819d480269c03dbfae4)
Tim Potter [Fri, 5 Jan 2001 00:17:36 +0000 (00:17 +0000)]
Added extra argument to calls to smbw_share_add()
(This used to be commit
d006e6adca0548dad334d871c5d440b1d32ac879)
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.
(This used to be commit
1dba9c5cd1e6389734c648f6903abcb7c8d5b2f0)
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.
(This used to be commit
7f862e387f935a2125481338eee850afcb8d82ba)
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.
(This used to be commit
f7466ba67cb6f863ee495e6de884e9b7a2e49430)
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!
(This used to be commit
05e2dd5e85d4aca1ccb9f6991e1415f85cbbdc1a)
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.
(This used to be commit
9255e526244578e092abc306491d5862469da775)
Tim Potter [Tue, 2 Jan 2001 23:41:15 +0000 (23:41 +0000)]
Return EACCES for bad password.
(This used to be commit
143006d32f0a0d339b870741b811ec49795b7099)
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 ...
(This used to be commit
46a3a56ecf411eb885aee2892e12d3846ce32ad6)
Richard Sharpe [Tue, 2 Jan 2001 14:00:27 +0000 (14:00 +0000)]
Comment out unused generate_name_trn_id ...
(This used to be commit
fb5798e1d9eb518f85e30680883c0460141b245d)