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)
Tim Potter [Tue, 2 Jan 2001 04:23:17 +0000 (04:23 +0000)]
Fixed -d option for rpcclient.
(This used to be commit
44c5eb4def9a264f660b2398d28b72f54e6547e6)
Christopher R. Hertel [Sat, 30 Dec 2000 23:17:30 +0000 (23:17 +0000)]
The line was:
struct tdb_traverse_lock tl = { tdb->travlocks.next, 0, 0 };
The IRIX compiler complained that the first initialization value was not a
constant and errored out. Here's what it looks like now:
struct tdb_traverse_lock tl = { NULL, 0, 0 };
int ret, count = 0;
/* This was in the initializaton, above, but the IRIX compiler
* did not like it. crh
*/
tl.next = tdb->travlocks.next;
That worked.
Chris -)-----
(This used to be commit
e651d1d642cd1bfac11bec81a30915b95d4424c8)
Richard Sharpe [Tue, 26 Dec 2000 05:57:10 +0000 (05:57 +0000)]
First pass at the libsmbclient code ...
This code handles the basic stuff and compiles and links under Linux, but
I do not know about any other operating systems. Now onto directory
listing routines, including those that list workgroups, servers, etc.
Nothing is built automatically yet, you have to make client/testsmbc to build
the library and test program. Also, no make install targets are defined for
libsmbclient.so as yet, either.
Would be good if people test on operating systems other than Linux.
(This used to be commit
51c0436a50e9f9274cee9de043bbefc93aff8011)
Gerald Carter [Thu, 21 Dec 2000 23:38:47 +0000 (23:38 +0000)]
merge from appliance head
(This used to be commit
393c5f14e0858dcb3d6cb26eb5643b520c2c9686)
Tim Potter [Thu, 21 Dec 2000 23:36:25 +0000 (23:36 +0000)]
Return appropriate exit codes for various situations:
0 for success
1 if operation failed
2 command line parse error
(This used to be commit
b4773618acb60b62b20b01ff7ba749984c1379fb)
Tim Potter [Thu, 21 Dec 2000 23:33:57 +0000 (23:33 +0000)]
Documentation updates for smbcacls program.
(This used to be commit
f9450cd7b7352a206dc05d8ad2a7b86a2586b892)
Tim Potter [Thu, 21 Dec 2000 23:27:51 +0000 (23:27 +0000)]
If extra arguments passed make yodl docs for these files rather than *.yo
(This used to be commit
b57fbcca06c7a69863f69628745f8fcbc13419bd)
Gerald Carter [Thu, 21 Dec 2000 23:23:34 +0000 (23:23 +0000)]
merge from appliance head
(This used to be commit
4671a313775f052ae949ba441db7e0060bed0b75)
Tim Potter [Thu, 21 Dec 2000 22:58:26 +0000 (22:58 +0000)]
Tim Potter [Thu, 21 Dec 2000 06:21:26 +0000 (06:21 +0000)]
Don't call string_to_sid after cli_lsa_lookup_names() fails.
Can't use space as a ACL separator as it breaks NT user/group names that
contain spaces (i.e most of the default ones).
The MSDN is contradictory over the exact ordering of ACE entries in an ACL.
However NT4 gives a "The information may have been modified by a computer
running Windows NT 5.0" if denied ACEs do not appear before allowed ACEs.
Sort ACE list before calling cli_set_secdesc().
(This used to be commit
01a89978ff4b9fcc813c4f251ddfe23c0485a696)
Tim Potter [Thu, 21 Dec 2000 05:28:39 +0000 (05:28 +0000)]
Some systems seem to only accept a ntcreate&x with a unicode filename
despite samba negotiating ascii filenames. Retry with unicode pathnames
if the ascii version fails.
Convert all forward slashes to backslashes in the filename argument.
(This used to be commit
935b77573ec82bece6211a9f61c800ef1c8c9aa4)
Tim Potter [Thu, 21 Dec 2000 05:22:15 +0000 (05:22 +0000)]
Added a cli_nt_create_uni() to do a ntcreate&x with a unicode filename,
regardless of the settings negotiated in the flags2 smb field.
(This used to be commit
c4476c6315a6e99dd4a1d0e3185a0d17c073205d)
Tim Potter [Thu, 21 Dec 2000 00:30:32 +0000 (00:30 +0000)]
Replace magic number with constant.
(This used to be commit
1a228868cf14418894b798f19955df3276bd1089)
Tim Potter [Thu, 21 Dec 2000 00:12:59 +0000 (00:12 +0000)]
Cleaned up SidToString() and StringToSid() exit paths.
Can now use user%password format in $USER environment variable. -U option
is now optional.
(This used to be commit
e21f2ef4fbfae1451d77b53291a78646dee9cfce)
Jeremy Allison [Wed, 20 Dec 2000 20:43:48 +0000 (20:43 +0000)]
Removed uninitialised variable.
Jeremy.
(This used to be commit
56a93567a106f25e87df093e1861f6bdd1d3196a)
Andrew Tridgell [Wed, 20 Dec 2000 03:22:51 +0000 (03:22 +0000)]
implemented a much nicer name_status() interface. It now returns a
list of structures rather than the dodgy parsing code we had before
this also gets smbw working correctly with no initial workgroup (using
name_status_find on __MSBROWSE__ returns)
(This used to be commit
f2be88a8738a39ca5c98936edb7537cd701348a1)
Jeremy Allison [Tue, 19 Dec 2000 23:57:48 +0000 (23:57 +0000)]
Fixed bug found by Gerald. If a Samba server joins a domain and is set
to search for a DC to authenticate to using the "*" syntax than ensure
that for the first hour after the password change is searches for the
PDC using the 1B name not the 1C name as domain replication may not
have occured.
Jeremy.
(This used to be commit
c25533de9918ed9b0c79fd039e11d1b79f513db0)
Jeremy Allison [Tue, 19 Dec 2000 20:00:28 +0000 (20:00 +0000)]
Split set_nt_acls into owner set (which uses chown) and permission set
(which currently uses chmod) in preparation for ACL creation.
Jeremy.
(This used to be commit
0f39895ab007a7300aed6c011c487593ee8c91f0)
Jeremy Allison [Tue, 19 Dec 2000 18:41:51 +0000 (18:41 +0000)]
Split the one sys_acl_free call into sys_acl_free_TYPE calls, to allow
easier wrapping of non-POSIX ACL interfaces.
Jeremy.
(This used to be commit
1a31b4eb082b23d60e3d9040b3c0110eef1f9385)
Jeremy Allison [Mon, 18 Dec 2000 20:03:15 +0000 (20:03 +0000)]
A couple more UMR fixes.
Jeremy.
(This used to be commit
a83702c99f1ecd6e68f8c178b20823fce6d4c6c6)
Jeremy Allison [Mon, 18 Dec 2000 07:24:48 +0000 (07:24 +0000)]
Cast prs_alloc_mem to correct type.
Jeremy.
(This used to be commit
e0931cda809e4bb48bd97cad6d7ab5fb6dc53eb2)
Jeremy Allison [Mon, 18 Dec 2000 07:22:10 +0000 (07:22 +0000)]
Fix typos in new group sid check.
Jeremy.
(This used to be commit
c48e95297e63c8b6f0c6686e5bcfa52229710dbc)
Tim Potter [Mon, 18 Dec 2000 06:09:40 +0000 (06:09 +0000)]
Added query info policy call.
(This used to be commit
dcea2a4bc0503822667b73d19c4f0a59b15715a5)
Jeremy Allison [Mon, 18 Dec 2000 06:02:31 +0000 (06:02 +0000)]
Merged Tim's fixes from appliance-head.
Jeremy.
(This used to be commit
26f873540c2299600cb80eb059fcdaf70ec82473)
Tim Potter [Mon, 18 Dec 2000 05:27:44 +0000 (05:27 +0000)]
Streamlined exit path.
Allow NULL to be passed to cli_lsa_initialise() which creates an anonymous
connection to the server.
(This used to be commit
8ccd06ee9635e81bdefa8ae58a88c39f132b371c)
Jeremy Allison [Sat, 16 Dec 2000 00:34:58 +0000 (00:34 +0000)]
Fixed chown/chgrp setting from smbcacls.
Jeremy.
(This used to be commit
43ca0d991cc6489be16722a7ea89e01a42f2ca2f)
Jeremy Allison [Sat, 16 Dec 2000 00:08:05 +0000 (00:08 +0000)]
Added -C username and -G username that allow a user (usually Administrator)
to change the ownership or group ownership of a file to any arbitrary user
from the UNIX command line.
This will show the people who quote NT manuals at us about how this is
"impossible" how their operating system really works :-).
Jeremy.
(This used to be commit
12f88c9ba731bdded626b9d011cfc8d2ba09010e)
Jeremy Allison [Sat, 16 Dec 2000 00:06:05 +0000 (00:06 +0000)]
Documented -C and -G options to smbcacls.
Jeremy.
(This used to be commit
89708be73ad8829ee2e9637db2e2be6493493396)
Jeremy Allison [Fri, 15 Dec 2000 23:02:01 +0000 (23:02 +0000)]
Never free anything in the rpc_parse/prs_XXX functions. Do it in the enclosing
function.
lib/util_unistr.c: Check lengths *before* reading source - prevent uninitialised
memory reads.
Jeremy.
(This used to be commit
ce4f461965c872fbfc9fe5f6b98aed58bb3dd67a)
Jeremy Allison [Fri, 15 Dec 2000 21:29:06 +0000 (21:29 +0000)]
Added lock backouts on fail.
When chaining together long lines of bloody "if" statements, which should
logically be separated, and one of them allocates memory, remember to
*free* it *WHETHER OR NOT THE IF STATEMENTS SUCCEEDED* !!!!
Yes I do consider this a bug in the coding style of Tridge, Rusty, Tim et al. :-).
I'm just pissed 'cos this took 4 hours to track down even with an insure error report
stating me in the face and also Ben Woodward looking over the code with me :-).
Jeremy.
(This used to be commit
506b5e34c3ba16768dbc82ba21044787de160c45)
Jean-François Micouleau [Fri, 15 Dec 2000 09:31:56 +0000 (09:31 +0000)]
lib/util_unistr.c:
rewrote unistr2_to_ascii() to correct a bug seen on SGI boxes.
rpc_parse/parse_misc.c:
rpc_parse/parse_prs.c:
rewrote of BUFFER5 handling to NOT byteswap when it was already in
network byte order.
rpc_parse/parse_samr.c:
cleanup of samr_io_q_lookup_domain(), remove the over-parsing by 2
bytes.
rpc_server/srv_lsa.c:
UNISTR2 strings need to be NULL terminated to pleased W2K.
rpc_server/srv_spoolss_nt.c:
use snprintf instead of safe_strcpy as we want the string
truncated at 32 chars.
That should fix SUN and SGI box not able to act as printserver and the
problem with joining from a W2K wks.
J.F.
(This used to be commit
69fe739303b105f2c488f266f13977da1b6b201d)
Jeremy Allison [Fri, 15 Dec 2000 01:47:37 +0000 (01:47 +0000)]
Fixed memory leak in JOB_INFO_2 code.
Jeremy.
(This used to be commit
d0d31eead3367485bbac684d881839029010975d)
Jeremy Allison [Fri, 15 Dec 2000 01:02:11 +0000 (01:02 +0000)]
Fixed memory leaks in lsa_XX calls. Fixed memory leaks in smbcacls. Merged
in fixes from appliance-head and 2.2. Fixed multiple connection.tdb open
problem.
Jeremy.
(This used to be commit
0a40bc83e14c69a09948ec09bb6fc5026c4f4c14)
David O'Neill [Thu, 14 Dec 2000 19:31:24 +0000 (19:31 +0000)]
Changes from APPLIANCE_HEAD:
- add some debugs for comparing two security descriptors.
(source/rpc_parse/parse_sec.c)
(This used to be commit
505a8a2277f2bc761bd2b170fafbcb3afd982d92)
Jeremy Allison [Thu, 14 Dec 2000 18:37:01 +0000 (18:37 +0000)]
Updates from appliance-head.
Jeremy.
(This used to be commit
15ae2c335b52e34c06d8f4f9ebad28078292b208)
Tim Potter [Thu, 14 Dec 2000 05:38:05 +0000 (05:38 +0000)]
Renamed parameters and variables called acl to the_acl as it conflicts
with a Solaris system call.
(This used to be commit
5e547ddcb526be5562db9213c5b36e505e735a2e)
Tim Potter [Thu, 14 Dec 2000 04:57:14 +0000 (04:57 +0000)]
Updated smbcacls documentation.
(This used to be commit
bd87398b5a9421add8db8b455d02ccd6b2624f58)
Tim Potter [Thu, 14 Dec 2000 03:27:53 +0000 (03:27 +0000)]
Cache lsa connection and policy handle for resolving names and sids.
(This used to be commit
09d2d972fd6f70bdf62f25936494968ef597b98b)
Gerald Carter [Wed, 13 Dec 2000 21:49:31 +0000 (21:49 +0000)]
inverted dword value
jerry
(This used to be commit
0e5c1df2841ee0dd44bb5c52af90ca98649a4d55)
David O'Neill [Wed, 13 Dec 2000 21:24:06 +0000 (21:24 +0000)]
Changes from APPLIANCE_HEAD:
- trivial typo in definition of enum_printing[]
(source/param/loadparm.c)
- fixed printer status display bug. When no jobs existed in queue, the
clients were not properly notified of printer status. This caused
native tools for pausing/unpausing a print queue to not work.
(source/printing/printing.c)
(This used to be commit
c533e77f1912618230a938458980a9339924fe06)
Jeremy Allison [Wed, 13 Dec 2000 19:55:48 +0000 (19:55 +0000)]
Added proto definition for new RPC calls.
Added printing fix from appliance-head.
Jeremy.
(This used to be commit
f4c7f9ddb906b67ee4397e7707309356085476d1)
Tim Potter [Wed, 13 Dec 2000 13:10:22 +0000 (13:10 +0000)]
I think it's time to go home.
(This used to be commit
fde66badf143cde40af35e86d55acb48dc754cdd)
Tim Potter [Wed, 13 Dec 2000 13:04:49 +0000 (13:04 +0000)]
OK so I shouldn't have added cli_pipe.o to LIBSMB_OBJ.
(This used to be commit
a724850eb83e61450f112c0b2e6e3492c2a72863)
Tim Potter [Wed, 13 Dec 2000 12:54:57 +0000 (12:54 +0000)]
Add libsmb/cli_lsarpc.o and rpc_client/cli_pipe.o to LIBSMB_OBJ. Not so
sure about the latter...
Modified SMBCACLS_OBJ
(This used to be commit
c130d5b0f6a23b4fe19accad8a49ac58a1a8b0b1)
Tim Potter [Wed, 13 Dec 2000 12:53:42 +0000 (12:53 +0000)]
Convert names to sids when modifying ACLs. Convert sids to names when
displaying ACLs.
(This used to be commit
5001bbc64be62af1597eb334e5b530b415d62a6b)
Tim Potter [Wed, 13 Dec 2000 12:52:21 +0000 (12:52 +0000)]
Lightweight rpc client library. Uses only routines in libsmb and
rpc_client/cli_pipe.c
Only cli_lsa_open_policy(), cli_lsa_close(), cli_lsa_lookup_names()
and cli_lsa_lookup_sids() implemented so far.
(This used to be commit
129d5a155a73d926868d74f8447c1e93b429388d)
Tim Potter [Wed, 13 Dec 2000 12:39:55 +0000 (12:39 +0000)]
Server side changes for dynamic names in lsa_lookup_names
(This used to be commit
5c5c3a8a08efe8c2f36a55b1383e9d3dd9eca4a5)
Tim Potter [Wed, 13 Dec 2000 12:13:22 +0000 (12:13 +0000)]
make proto
Updates for dynamic sized lookup names/sids
(This used to be commit
34743c157632b1784bd15e3ca97380b1f9754e46)
Tim Potter [Wed, 13 Dec 2000 11:53:37 +0000 (11:53 +0000)]
Wrong length for unistr2 in init_q_lookup_names()
Removed some more static arrays and replaced with tallocated memory
blocks.
(This used to be commit
1db0f31ae00bf9c91eb7d02c96bf766d04c7bdef)
Jeremy Allison [Wed, 13 Dec 2000 06:33:53 +0000 (06:33 +0000)]
Two tdb bugfixes. First one - ensure that traverse lock is moved before deleting
dead records, else the record is just marked for deletion, not actually deleted.
Second, ensure allocated record is marked as "in use" before free list lock is
released, else other processes in the freelist merge code may try and merge it.
Jeremy.
(This used to be commit
dd959fa325c5df8ce0407d8debea76602c8e71cf)
Tim Potter [Wed, 13 Dec 2000 04:19:48 +0000 (04:19 +0000)]
Added support for SERVICESF shared variable to change configuration file
used in lp_load().
(This used to be commit
4d80ee4f41ac3d61579c9cf23cb815d7fe5da5db)
Jeremy Allison [Tue, 12 Dec 2000 20:41:02 +0000 (20:41 +0000)]
Fixed bug noticed by JF. se_access_check needs user SID as first in token.
Jeremy.
(This used to be commit
f0d7867801e3f78bfc55fdb36ca965e35457f51b)
Jeremy Allison [Tue, 12 Dec 2000 19:44:50 +0000 (19:44 +0000)]
Fixed processing of dfree script (was truncating).
Jeremy.
(This used to be commit
1e719a807669876b4d11f4653e9712f25fcba20b)
David O'Neill [Tue, 12 Dec 2000 18:03:50 +0000 (18:03 +0000)]
Brief documentation on using the virtual printer code
(This used to be commit
03dd90ab923ec88cdada8c5d725d9482bd9826f2)
Gerald Carter [Tue, 12 Dec 2000 16:50:23 +0000 (16:50 +0000)]
more fixes from Simo. Also fixed the password expiration field
in the tdbsam to never expire (we don't support this yet).
jerry
(This used to be commit
3b7d0fe7eb3a9275d2713d7b3325de0ab510ea62)
Tim Potter [Tue, 12 Dec 2000 06:14:01 +0000 (06:14 +0000)]
Don't print out the security descriptor type as it is automatically
calculated by the new make_sec_desc() function.
(This used to be commit
6fd5dc81458317e106f5ea24958cefe4146c90a6)
Tim Potter [Tue, 12 Dec 2000 06:06:10 +0000 (06:06 +0000)]
Better error checking for ACL parsing.
Print an error when attempting to delete a non-existent ACL.
(This used to be commit
d119782d0d8d2738650da47fa11134d26134ce17)
Tim Potter [Tue, 12 Dec 2000 06:05:13 +0000 (06:05 +0000)]
Fix error string.
(This used to be commit
73b237e639717019c596954c745b7e4d038ddc8c)
Tim Potter [Tue, 12 Dec 2000 05:58:34 +0000 (05:58 +0000)]
Fixed some accidentally reversed patches.
(This used to be commit
fa604bc85ea6989c794747f668be8a4e62527b79)
Tim Potter [Tue, 12 Dec 2000 05:29:47 +0000 (05:29 +0000)]
Compile fix for new arg to create_nt_token()
(This used to be commit
806185ca8cc8d28f16745a1db9427f52eb8d22e4)
Jeremy Allison [Tue, 12 Dec 2000 02:45:11 +0000 (02:45 +0000)]
Merged in Tim's changes : Removed static limit of MAX_LOOKUP_SIDS in rpc server and client
lsa_lookup_names() and lsa_lookup_sids().
Jeremy.
(This used to be commit
9e9c71c8b3194b7cd02fea0b6a000d4f2940d905)
Jeremy Allison [Tue, 12 Dec 2000 02:36:14 +0000 (02:36 +0000)]
Removed the special casing of SIDs in se_access_check. This is now done (correctly)
when the NT_USER_TOKEN is *created*.
Jeremy.
(This used to be commit
27d72ed1cf8ece2bede812341279ba5a7262ace4)