sfrench/samba-autobuild/.git
23 years agoI committed this change to the cliffs archive a while back and have heard
Christopher R. Hertel [Sat, 15 Jul 2000 20:57:24 +0000 (20:57 +0000)]
I committed this change to the cliffs archive a while back and have heard
no complaints.  ;)

Basically, instead of ignoring single-line C-style comments in IDL source
files this change allows token.awk to ignore both single- and multi-line
C-style comments.

Chris -)-----
(This used to be commit 34f69f09f840b8990b718e8585785e2a6ad7c314)

23 years agoLots of changes but no real progress in functionality.
Gerald Carter [Sat, 15 Jul 2000 08:37:17 +0000 (08:37 +0000)]
Lots of changes but no real progress in functionality.
more changes to remove the ncarpc_l_* stuff.

Fixed some cut and paste errors from TNG

There are very subtle bugs in this code.  I'll work on simplifying
them in round two or three.

--jerry
(This used to be commit f8509356178deb7e78836d1f5aceb96677ac738b)

23 years agoreverted a some previous additions.
Gerald Carter [Sat, 15 Jul 2000 08:33:43 +0000 (08:33 +0000)]
reverted a some previous additions.
Removed msrpc_local struct

--jerry
(This used to be commit b2317babb557f5bce390c7162c9936f5d46f4da3)

23 years agoa few changes to Makefile.in to clean up dependencies for rpcclient
Gerald Carter [Fri, 14 Jul 2000 17:04:57 +0000 (17:04 +0000)]
a few changes to Makefile.in to clean up dependencies for rpcclient

--jerry
(This used to be commit 9206d593603af959700794d252da8d07082012ef)

23 years agoMore functions merged from TNG for rpcclient. They don't all work
Gerald Carter [Fri, 14 Jul 2000 17:04:04 +0000 (17:04 +0000)]
More functions merged from TNG for rpcclient.  They don't all work
currently as I have to do something about the policy handle caching
issues.

--jerry
(This used to be commit 233b074f490b3b01f3a462284aa8117536df0082)

23 years agocleaned up access to prs_struct variables. Replaced all calls
Gerald Carter [Fri, 14 Jul 2000 17:01:49 +0000 (17:01 +0000)]
cleaned up access to prs_struct variables.  Replaced all calls

prs_free_data() => prs_mem_free
prs_realloc_data => prs_grow

--jerry
(This used to be commit 3d00e969df1800dadbb91fd8c410e9ce87188551)

23 years agoremoved references to loopback RPC connections.
Gerald Carter [Fri, 14 Jul 2000 16:59:41 +0000 (16:59 +0000)]
removed references to loopback RPC connections.
added a few more kfunctions from TNG for rpcclient

--jerry
(This used to be commit 549d1d262115aeb2cd4d3f0122a5771be17752bb)

23 years agoremoved prs_data(), prs_free_data(), and prs_realloc_data()
Gerald Carter [Fri, 14 Jul 2000 16:58:03 +0000 (16:58 +0000)]
removed prs_data(), prs_free_data(), and prs_realloc_data()
as these were unneeded and replaced by the real functions
already in HEAD.

Added a few more functions to parse_spoolss.c to help with the
rpcclient merge from TNG.
(This used to be commit 3bc9af4c1dbdb664970541f6091982ffccc87b31)

23 years agoFixed a bug in cmd_interp.c where if user%pass was entered on
Gerald Carter [Fri, 14 Jul 2000 16:54:07 +0000 (16:54 +0000)]
Fixed a bug in cmd_interp.c where if user%pass was entered on
the command line, the password would still be cached in memory
in plain text for the lifetime of the rpcclient command line session.

removed loopback connection functions from msrpc-client.c since
we don't support that in the server code now anyways.  simplify,
simplify, ...

--jerry
(This used to be commit 8599e1bc394b1caee2483ec72d439a34d3f30629)

23 years agomake proto
Gerald Carter [Fri, 14 Jul 2000 16:31:06 +0000 (16:31 +0000)]
make proto
and a few changes to ntdomain for rpcclient printing functions

--jerry
(This used to be commit eb3f545f54eabb8b2b9a735808ebf49808ea85eb)

23 years agoadding more spoolss command into rpcclient. They don't all work
Gerald Carter [Fri, 14 Jul 2000 16:29:22 +0000 (16:29 +0000)]
adding more spoolss command into rpcclient.  They don't all work
currently.  More to come later.

--jerry
(This used to be commit 0faf21662db5b24b7fd57736ea53772e3baca5df)

23 years agoDon't return winbind groups or users when responding to samr_enum_dom_users
Tim Potter [Thu, 13 Jul 2000 04:33:25 +0000 (04:33 +0000)]
Don't return winbind groups or users when responding to samr_enum_dom_users
and samr_enum_dom_aliases commands.  Unfortunately the algorithm for
determining winbind groups from normal groups is simply to check for the
presence of the lp_winbind_separator() character.  )-:
(This used to be commit 363a9c45bf0a7d3266ccdf4eeb0b9f5e3d38389f)

23 years agoUninitialised variables.
Tim Potter [Thu, 13 Jul 2000 01:21:21 +0000 (01:21 +0000)]
Uninitialised variables.
(This used to be commit a895868912a24589de3a904ca537cf3367a645bf)

23 years agowe are now sure the printer_info_2 timestamp is updated everytime
Jean-François Micouleau [Wed, 12 Jul 2000 16:11:33 +0000 (16:11 +0000)]
we are now sure the printer_info_2 timestamp is updated everytime
required.

J.F.
(This used to be commit 08b41bab177affac088c981d7c620728e8e6e9b0)

23 years ago- The printers are indexed by the sharename in both get_a_printer() and
Jean-François Micouleau [Wed, 12 Jul 2000 14:10:40 +0000 (14:10 +0000)]
- The printers are indexed by the sharename in both get_a_printer() and
add_a_printer() now.

- correctly unpack the private part of a devmode and remove a memleak

- correctly retrieve the pair(value,data) for getprinterdata

- handle null devicemode in printer_info_2

I still have some bugs but I'm not crashing anymore NT4SP6 d/c build :-)

        J.F.
(This used to be commit 493f7d11acf753ba24c88e6cbb73d86a8595a66a)

23 years agoAn improved version of the Negative Query Response fix. The earlier fix
Christopher R. Hertel [Wed, 12 Jul 2000 04:25:12 +0000 (04:25 +0000)]
An improved version of the Negative Query Response fix.  The earlier fix
only did a short-cut on an rcode of 3, which is 'name not found'.  This
does a short-cut on any non-zero rcode.  It also puts out a DEBUG message
(if DEBUGLEVEL is >= 3) detailing the error.

Chris -)-----
(This used to be commit d8656304d51844335e72babe852673f2dececfdc)

23 years agoTypo. It said "DEGUG" in the comments. I dunno how to degug, or gug for
Christopher R. Hertel [Wed, 12 Jul 2000 03:51:06 +0000 (03:51 +0000)]
Typo.  It said "DEGUG" in the comments.  I dunno how to degug, or gug for
that matter.  crh
(This used to be commit 6ee63ecfa5f9c984f51c15597a50e085ab722e87)

23 years ago#ifndef RPCCLIENT_TEST
Gerald Carter [Tue, 11 Jul 2000 16:28:59 +0000 (16:28 +0000)]
#ifndef RPCCLIENT_TEST
use old prs_unistr()
#else
use new prs_unistr() which handles UNMARSHALL
#endif /* RPCCLIENT_TEST */

jerry
(This used to be commit fb0e1fb9e31db135eeb8e949a7ad0826906ba1ff)

23 years agoAllow name lookup to fail and fall back to using the "Everyone" SID
Jeremy Allison [Tue, 11 Jul 2000 01:05:24 +0000 (01:05 +0000)]
Allow name lookup to fail and fall back to using the "Everyone" SID
as SD owner. Allows smbd to work without winbindd running.
Check for security implications !
Jeremy.
(This used to be commit 9bd64da1e26a1b4a2df2b0537feb604a40762bb1)

23 years agoAdd local fallback for name lookup if no winbindd running...
Jeremy Allison [Tue, 11 Jul 2000 01:04:09 +0000 (01:04 +0000)]
Add local fallback for name lookup if no winbindd running...
Jeremy.
(This used to be commit d85deb9e4e9c9784006292d3cb5a6b7b408ff972)

23 years agoEnsure correct driver paths are returned in INFO_2 struct.
Jeremy Allison [Mon, 10 Jul 2000 22:30:13 +0000 (22:30 +0000)]
Ensure correct driver paths are returned in INFO_2 struct.
Jeremy.
(This used to be commit 7a95c289cd0b4615d2a5aa8a148c767b57460ffa)

23 years agomake proto
Gerald Carter [Mon, 10 Jul 2000 19:58:18 +0000 (19:58 +0000)]
make proto
(This used to be commit ae85cc43fec26be6184e863569a94cab0afc425a)

23 years agospoolenum commend (when compiled with the new prs_unistr())
Gerald Carter [Mon, 10 Jul 2000 19:57:30 +0000 (19:57 +0000)]
spoolenum commend (when compiled with the new prs_unistr())
now works.   :-)

jerry
(This used to be commit 588aadb29fbb7cc0e81ac19f95e97101a64dbd8e)

23 years agoFixed a bug in parsing the command line.
Gerald Carter [Mon, 10 Jul 2000 19:56:15 +0000 (19:56 +0000)]
Fixed a bug in parsing the command line.

jerry
(This used to be commit ebcb7473c6b62266c30e276d02186d8e50a5629a)

23 years agoincluded a a new prs_unistr(). Is currently #if'd out (denoted
Gerald Carter [Mon, 10 Jul 2000 19:55:39 +0000 (19:55 +0000)]
included a a new prs_unistr().  Is currently #if'd out (denoted
by RPCCLIENT_TEST) in order to not break anything in the smbd
code (and to give time to review it).  Originally written by JF.
In effect, this checkin makes no changes to parse_prs.c at all.

jerry
(This used to be commit 4f431ea1f5d1d3b868d0bb56a299070e608c2512)

23 years agoAdded wbinfo and .libs
Tim Potter [Mon, 10 Jul 2000 06:42:47 +0000 (06:42 +0000)]
Added wbinfo and .libs
(This used to be commit da67a5099ebfb68172c1c419103665f571e82157)

23 years agoFixes for various compile warnings on Solaris 8.
Tim Potter [Mon, 10 Jul 2000 06:41:04 +0000 (06:41 +0000)]
Fixes for various compile warnings on Solaris 8.
(This used to be commit 898a483cdab1ed7d8ff902c0dc0e0620440ae4cd)

23 years agoMoved winbind client functions from various odd locations to
Tim Potter [Mon, 10 Jul 2000 05:40:43 +0000 (05:40 +0000)]
Moved winbind client functions from various odd locations to
nsswitch/wb_client.c

Merge of nsswitch/common.c rename to nsswitch/wb_common.c from TNG.
(This used to be commit f866c18f6be65db67d9d2a6c0b42e1af3b421e6c)

23 years agomake proto
Tim Potter [Mon, 10 Jul 2000 05:17:01 +0000 (05:17 +0000)]
make proto
(This used to be commit 5f355a24430dcb260de52e8a0ca21e80cae53089)

23 years agoRe-instated lanman printing security checks (oops).
Tim Potter [Mon, 10 Jul 2000 05:08:21 +0000 (05:08 +0000)]
Re-instated lanman printing security checks (oops).

A user can now pause, resume or delete their own job even if they don't
have the Manage Documents privilege.

Added call to se_access_check() for changing printer properties.  The Full
Access privilege is required for the user to perform this.

Several uninitialised variables and memory leaks plugged.

Modified default ACL created on new printers to be Everyone / Print instead
of Everyone / Full Access.  This required some random stuffing around with
the value of the revision field to correspond with the ACL that NT produces
when setting the same permission on the printer.

Fixed dodgy function call in printing/printfsp.c
(This used to be commit 2abce4dcfa351051df6e5f789b34fa99c9b81c22)

23 years agoSpelling fixes.
Tim Potter [Mon, 10 Jul 2000 04:57:09 +0000 (04:57 +0000)]
Spelling fixes.
(This used to be commit c1d242f1dd5b6addbe5d2df22e4759f6682fd9ef)

23 years agoFix for passing NULL pointer as an array parameter in
Tim Potter [Mon, 10 Jul 2000 04:56:30 +0000 (04:56 +0000)]
Fix for passing NULL pointer as an array parameter in
domain_client_validate()
(This used to be commit 3ee111bff78826a5ee419554d4ef2b2b2d3ae7aa)

23 years agoAdded some useful debugging stuff.
Tim Potter [Mon, 10 Jul 2000 04:54:09 +0000 (04:54 +0000)]
Added some useful debugging stuff.

Fixes for se_access_check() when you are the owner of the object.
(This used to be commit 1478198b709b26d0007a8ff0586c34fc6f37a9d2)

23 years agoQuick change to short-circuit WINS queries if the WINS server returns a
Christopher R. Hertel [Sun, 9 Jul 2000 02:10:24 +0000 (02:10 +0000)]
Quick change to short-circuit WINS queries if the WINS server returns a
Negative Name Query Response.  We should't wait through the timeouts and
retry twice if we've been told "No Such Entry".
(This used to be commit 2bbd16903db02aacb729d1ad140056b180e2a776)

23 years agoJust a few changes due to bringing some partial files back
Gerald Carter [Fri, 7 Jul 2000 06:24:16 +0000 (06:24 +0000)]
Just a few changes due to bringing some partial files back
from TNG to HEAD.

--jerry
(This used to be commit ddef41c13484f488657ea36a510b52cefc7c8643)

23 years agoMore rpcclient merge issues:
Gerald Carter [Fri, 7 Jul 2000 06:20:46 +0000 (06:20 +0000)]
More rpcclient merge issues:

        * fixes some readline bugs from the merge
        * first attempt at commands (spoolenum almost works)
        * no changes to existing functions in HEAD; only additions
          of new functions.  I'll weed out what I can as I go.

--jerry
(This used to be commit 61d2aad5dc2b212b11c981f1eca47efa627e9fc8)

23 years agoMore rpcclient merge issues:
Gerald Carter [Fri, 7 Jul 2000 06:18:00 +0000 (06:18 +0000)]
More rpcclient merge issues:

* fixes some readline bugs from the merge
* first attempt at commands (spoolenum almost works)
* no changes to existing functions in HEAD; only additions
  of new functions.  I'll weed out what I can as I go.

--jerry
(This used to be commit 12e2a21e1bc4c6fa02606d21cea4cb5a8b4d41a9)

23 years agoprinting/nt_printing.c: (From JF) use the driver name - already given to us.
Jeremy Allison [Thu, 6 Jul 2000 23:31:46 +0000 (23:31 +0000)]
printing/nt_printing.c: (From JF) use the driver name - already given to us.
printing/printing.c: priority needs to be 1 not zero (found by checked build).
rpc_server/srv_spoolss_nt.c: Log invalid handle access, also print out if this is a different
pid handle. This will help track down client access after a connection
is closed.
Jeremy.
(This used to be commit 4ff949228c40b6abb2008df8db985562ac2895d2)

23 years agose_access_check() tests.
Tim Potter [Thu, 6 Jul 2000 07:12:13 +0000 (07:12 +0000)]
se_access_check() tests.
(This used to be commit bba912cad8dfcef3dbc1db020304ab29fd71d5cb)

23 years agoDon't check NT permissions when printing from lanman.
Tim Potter [Thu, 6 Jul 2000 07:10:32 +0000 (07:10 +0000)]
Don't check NT permissions when printing from lanman.
(This used to be commit e84607eedf3be454f8f709c70cafc5ded4ea951d)

23 years agoImplemented NT printer descriptor checking. Yay!
Tim Potter [Thu, 6 Jul 2000 07:06:05 +0000 (07:06 +0000)]
Implemented NT printer descriptor checking.  Yay!

User details are passed into the printing back end from the spoolss code.
For each print operation these details are checked using the
se_access_check() function using information from the winbind daemon.

Fixed bug in nt_printing_setsec() where the user and group SIDs were
trashed if the permissions were changed from NT.  It is necessary to merge
these sids from the previous value of the security descriptor before
storing it in the tdb.
(This used to be commit 8d42661d424d80e1048d08b5cad3281643231d62)

23 years agoMoved authenticated pipe user details into a current_user struct.
Tim Potter [Thu, 6 Jul 2000 07:01:37 +0000 (07:01 +0000)]
Moved authenticated pipe user details into a current_user struct.
(This used to be commit 3c4a5f624bfa69eb81d998530d9227e158edd109)

23 years agoMoved printer ACE mask values from nt_printing.h to rpc_spoolss.h
Tim Potter [Thu, 6 Jul 2000 07:00:24 +0000 (07:00 +0000)]
Moved printer ACE mask values from nt_printing.h to rpc_spoolss.h
(This used to be commit 9245af1ea18babae09a92af634428a63ec55438e)

23 years agoInclude nss.h if present or define enough values to allow client access to
Tim Potter [Thu, 6 Jul 2000 06:59:27 +0000 (06:59 +0000)]
Include nss.h if present or define enough values to allow client access to
winbind.
(This used to be commit 669bd8dc1ab4690cf21310fe0310f1716e4a0197)

23 years agoRewrite of se_access_check() function. Added comments and fixed a bunch of
Tim Potter [Thu, 6 Jul 2000 06:57:22 +0000 (06:57 +0000)]
Rewrite of se_access_check() function.  Added comments and fixed a bunch of
bugs.  I think there is a problem though with the permissions granted when
SEC_RIGHTS_MAXIMUM_ALLOWED is passed as the permissions requested.
(This used to be commit 27d821913c87dddd44a0690f4b191c9d2445817e)

23 years agoPass either an authenticated pipe or SMB user in a current_user struct down
Tim Potter [Thu, 6 Jul 2000 06:53:47 +0000 (06:53 +0000)]
Pass either an authenticated pipe or SMB user in a current_user struct down
to the printing back end functions.
(This used to be commit a2751a269e05d5e46d4b22d6082a5898cdb4526f)

23 years agoPass pipes_struct rather than vuid down to startdocprinter, setprinter and
Tim Potter [Thu, 6 Jul 2000 06:51:55 +0000 (06:51 +0000)]
Pass pipes_struct rather than vuid down to startdocprinter, setprinter and
setjob spoolss server commands.
(This used to be commit f35745137451f769a0723cb0665ba0b9d4801ad8)

23 years agoAdded global_sid_NULL S-1-0-0 to list of global sids.
Tim Potter [Thu, 6 Jul 2000 06:48:54 +0000 (06:48 +0000)]
Added global_sid_NULL S-1-0-0 to list of global sids.
(This used to be commit f49905e74c6e3891b5816b136fd1d0d77c392e2f)

23 years agoMake prototypes for functions returning an enum nss_status.
Tim Potter [Thu, 6 Jul 2000 06:48:01 +0000 (06:48 +0000)]
Make prototypes for functions returning an enum nss_status.
(This used to be commit dac9c934ac3932fb9870417e8f712a880dd25e45)

23 years agoChanged checking for WINBINDD_OK return value instead of NSS_STATUS_SUCCESS
Tim Potter [Thu, 6 Jul 2000 06:47:38 +0000 (06:47 +0000)]
Changed checking for WINBINDD_OK return value instead of NSS_STATUS_SUCCESS
when looking up sids from winbindd.
(This used to be commit 79fb877bf13ba462ad0a878d8975f8b5183e3ea3)

23 years agoMoved lib/util_seaccess.o from LIB_OBJ to SMBD1_OBJ as it is only used by
Tim Potter [Thu, 6 Jul 2000 06:43:30 +0000 (06:43 +0000)]
Moved lib/util_seaccess.o from LIB_OBJ to SMBD1_OBJ as it is only used by
smbd.
(This used to be commit 539c32fa423bee9be34eeda96fad5398f7cf982b)

23 years agonew protos
Andrew Tridgell [Thu, 6 Jul 2000 03:54:22 +0000 (03:54 +0000)]
new protos
(This used to be commit bd323fa503b1ad7ab9ca35b2f93774541b02e8e3)

23 years agothe smbw sample prog
Andrew Tridgell [Thu, 6 Jul 2000 03:54:07 +0000 (03:54 +0000)]
the smbw sample prog
(This used to be commit 0afcc0d3368472ed4b49167dc4b7d907b0ccdc25)

23 years agodon't need shmem any more
Andrew Tridgell [Thu, 6 Jul 2000 03:53:49 +0000 (03:53 +0000)]
don't need shmem any more
(This used to be commit a81371a4fd6f7972b054bea90428d1d2fd6d1d22)

23 years agowrote a little sample smbw program
Andrew Tridgell [Thu, 6 Jul 2000 03:52:47 +0000 (03:52 +0000)]
wrote a little sample smbw program
build using "make bin/smbw_sample"

this is to show people how to use smbw
(This used to be commit 7d7ceaa9219ba88075cac23eb42b163903537c70)

23 years agoadded -L option
Andrew Tridgell [Thu, 6 Jul 2000 03:39:11 +0000 (03:39 +0000)]
added -L option
(This used to be commit ae80ca637cd4de6d18f995a4b6e1e1e21ab63581)

23 years agogot smbw to compile again on Linux
Andrew Tridgell [Thu, 6 Jul 2000 02:28:44 +0000 (02:28 +0000)]
got smbw to compile again on Linux
(This used to be commit 614fd4119ce5aa37acd03321dc6ef263ae16bdc5)

23 years agoBracked unbracketed macro arguments while looking for another bug.
Tim Potter [Thu, 6 Jul 2000 01:30:41 +0000 (01:30 +0000)]
Bracked unbracketed macro arguments while looking for another bug.
(This used to be commit 873774e36dfc877727133a86fbc2c2ddc2d563cd)

23 years agoMerge of wbinfo program from TNG.
Tim Potter [Wed, 5 Jul 2000 11:24:26 +0000 (11:24 +0000)]
Merge of wbinfo program from TNG.
(This used to be commit 659e4d88ff9dbf1fa9cd8904470c4a8d02d8674b)

23 years agothe dummy field in driver_info_6 is before the driver version and not
Jean-François Micouleau [Tue, 4 Jul 2000 22:51:05 +0000 (22:51 +0000)]
the dummy field in driver_info_6 is before the driver version and not
after.

I don't know who broke all that code, but I'm  ******** (censured)

J.F.
(This used to be commit 1fae158529ca0d1cb01ff422638418ce0dbd8dbf)

23 years agodriver_info_6 had a prs_align() that should not have been there.
Jean-François Micouleau [Tue, 4 Jul 2000 21:58:45 +0000 (21:58 +0000)]
driver_info_6 had a prs_align() that should not have been there.

J.F.
(This used to be commit a882dd225e464b300cedb52eb43f57f3a56c5b31)

23 years agoSome more sec_ctx changes. Modified some fields in the pipe_struct
Tim Potter [Mon, 3 Jul 2000 06:52:31 +0000 (06:52 +0000)]
Some more sec_ctx changes.  Modified some fields in the pipe_struct
structure so authenticated pipe users can have their unix groups set when
become_authenticated_pipe_user() is called.
(This used to be commit 55c9bf124dc661df43bfe582ef14b1297aeaf0fa)

23 years agofirst pass at merging rpcclient from TNG to HEAD. You can get a
Gerald Carter [Mon, 3 Jul 2000 04:29:17 +0000 (04:29 +0000)]
first pass at merging rpcclient from TNG to HEAD.  You can get a
semi-connection and a rpcclient prompt, but no functionality there yet.
Will be a few more days on that.

I need to clean this up a little.  Will work on that some more.

--jerry
(This used to be commit 1b305cb3421eef575cc19bacf1fcc57537d7ea75)

23 years agofirst pass at merging rpcclient from TNG to HEAD. You can get a
Gerald Carter [Mon, 3 Jul 2000 04:28:29 +0000 (04:28 +0000)]
first pass at merging rpcclient from TNG to HEAD.  You can get a
semi-connection and a rpcclient prompt, but no functionality there yet.
Will be a few more days on that.

--jerry
(This used to be commit 269051aa0c52728278a1d290148564f11cf7f189)

23 years agofirst pass at merging rpcclient from TNG to HEAD. You can get a
Gerald Carter [Mon, 3 Jul 2000 04:26:37 +0000 (04:26 +0000)]
first pass at merging rpcclient from TNG to HEAD.  You can get a
semi-connection and a rpcclient prompt, but no functionality there yet.
Will be a few more days on that.

The changes to the header files were minor.  A few struct's and a few
additional fields to existing ones.  No deletions.  **minimal change
necessary** :-)  Well, maybe not minimal, but I tried.

All other programs compile, link and run ok from what I can tell so
I don;t think I broke anything.

--jerry
(This used to be commit cd7f0b0b91afd3331c0607ba2fcb3ccdd41ecebf)

23 years agofirst pass at merging rpcclient from TNG to HEAD. You can get a
Gerald Carter [Mon, 3 Jul 2000 04:24:31 +0000 (04:24 +0000)]
first pass at merging rpcclient from TNG to HEAD.  You can get a
semi-connection and a rpcclient prompt, but no functionality there yet.
Will be a few more days on that.

These files changed only with the addition of some support functions
from TNG

--jerry
(This used to be commit a04ea15f723e559db3c60bed03318cc7be851f69)

23 years agoRenamed generic_request() to winbindd_request()
Tim Potter [Mon, 3 Jul 2000 00:58:13 +0000 (00:58 +0000)]
Renamed generic_request() to winbindd_request()
(This used to be commit d9041958558fc8e3c7b0491eb0f7e45bee9d19c5)

23 years agoRe-ran autoconf
Tim Potter [Mon, 3 Jul 2000 00:57:15 +0000 (00:57 +0000)]
Re-ran autoconf
(This used to be commit 2003c11c3e1635fec4702f5a704b5ce9b0bc3f64)

23 years agoreverting Jeremy's changes to enumprinterdata.
Jean-François Micouleau [Sat, 1 Jul 2000 16:40:10 +0000 (16:40 +0000)]
reverting Jeremy's changes to enumprinterdata.

Jeremy, the out_max_value_len and out_max_data_len were good. Your change
is breaking NT4SP6 checked version.

        J.F.
(This used to be commit 5f2be8ba7dcd1eacc169e8d1d53c309e45a5cce6)

23 years agoFound that the minimum priority is 1 and not 0 on NT.
Jean-François Micouleau [Sat, 1 Jul 2000 09:34:37 +0000 (09:34 +0000)]
Found that the minimum priority is 1 and not 0 on NT.

Changed back the devicemode's devicename to "\\server\printer".

I'm 100% sure it is correct, it's what NT sends on the wire. And that's
the printer's name and NOT the port's name as it has to be unique. It must
also be a UNC because it's a remote printer (remote for the client).

        J.F.
(This used to be commit a7098c47b6ecbd7bb5df1330ea176aa4d463aad3)

23 years agoRemoved unneccessary ()'s afer &'s that made it look like we
Jeremy Allison [Sat, 1 Jul 2000 05:44:49 +0000 (05:44 +0000)]
Removed unneccessary ()'s afer &'s that made it look like we
don't know how the C language works :-).
Jeremy
(This used to be commit d47329649d4f92a52acac7de256d9d9b0afc33c8)

23 years agoMerge from TNG.
Tim Potter [Fri, 30 Jun 2000 06:48:47 +0000 (06:48 +0000)]
Merge from TNG.
(This used to be commit b46fc0ed040ff24bb4e348904fdb0e9788364837)

23 years agoAdded more args to smbclient wrapper - there's probably a better way
Tim Potter [Fri, 30 Jun 2000 06:18:42 +0000 (06:18 +0000)]
Added more args to smbclient wrapper - there's probably a better way
to do this.
(This used to be commit 8de200ecbcc3b5b257354a8f51ebefad4cabdb73)

23 years agoUpdated documentation for wbinfo and winbindd.
Tim Potter [Fri, 30 Jun 2000 06:10:36 +0000 (06:10 +0000)]
Updated documentation for wbinfo and winbindd.
(This used to be commit 8b814d1bb188f7d657fca6014d0b50d2bbc1ab1b)

23 years agoFixed oops with missing MANGLE_PATH directive.
Jeremy Allison [Fri, 30 Jun 2000 01:07:26 +0000 (01:07 +0000)]
Fixed oops with missing MANGLE_PATH directive.
Jeremy.
(This used to be commit fb6b5a964512dec37f85f8de39c0c06f702aabbd)

23 years agosimpler configure test
Andrew Tridgell [Thu, 29 Jun 2000 08:23:56 +0000 (08:23 +0000)]
simpler configure test
(This used to be commit 7752c14c313bf9b565828181647fb71457167d92)

23 years agoslightly saner defaults
Andrew Tridgell [Thu, 29 Jun 2000 08:22:00 +0000 (08:22 +0000)]
slightly saner defaults
(This used to be commit fae3acc574c6e78121e6a1d464b67a15fb025304)

23 years agoTidy up current spool code - added some JRATEST ifdefs to allow
Jeremy Allison [Thu, 29 Jun 2000 00:52:40 +0000 (00:52 +0000)]
Tidy up current spool code - added some JRATEST ifdefs to allow
experimentation with what is making spoolss.exe crash - may be removed
later.
Jeremy.
(This used to be commit f3fe384dc39ce49c639a7adf35179a50cb86abf0)

23 years agoRemoved extra uint32 field in auto-notify reply. This fixes some spoolss.exe
Jeremy Allison [Wed, 28 Jun 2000 16:52:59 +0000 (16:52 +0000)]
Removed extra uint32 field in auto-notify reply. This fixes some spoolss.exe
crashes but there are still more to work on.
Jeremy.
(This used to be commit aa49dc037fa4e7b00d1a33619da5450a4eda1b9e)

23 years agoChanging drivers using the properties page works - but only if getting/setting
Jeremy Allison [Mon, 26 Jun 2000 22:08:20 +0000 (22:08 +0000)]
Changing drivers using the properties page works - but only if getting/setting
security descriptors is disabled (as it is in this code).

If get/set sd's is enabled spooler.exe crashes on NT.

I'll investigate and fix that issue next.

Jeremy.
(This used to be commit 8c9ed874363e6a710bc0fe521bb8c4f7ee219587)

23 years agoFixed display of "Everyone" in SD's.
Jeremy Allison [Mon, 26 Jun 2000 17:41:06 +0000 (17:41 +0000)]
Fixed display of "Everyone" in SD's.
Jeremy.
(This used to be commit 3c7fdaa576c09dab2e4de78ed353b1fa1d65a40d)

23 years agofixed size alignment in talloc
Andrew Tridgell [Mon, 26 Jun 2000 08:18:42 +0000 (08:18 +0000)]
fixed size alignment in talloc
(This used to be commit 064cdb7ee69bff3af12d1e0b3c3b59207c594681)

23 years agolib/util_sid.c: Uninitialized memory read.
Jeremy Allison [Sat, 24 Jun 2000 00:15:08 +0000 (00:15 +0000)]
lib/util_sid.c: Uninitialized memory read.
rpc_parse/parse_spoolss.c: Added note about prs_align when marshalling a SEC_DESC...
rpc_server/srv_lsa.c: Tim - your changes broke the display of the 'everyone' group
when doing file access with no winbindd running. This is a partial
fix - more when I have analysed this more.
rpc_server/srv_spoolss_nt.c: Fix for the 'change driver' problem ! Hurrah !

Jeremy.
(This used to be commit 151b131ee01ef916c072bcdaa9943a2e984a0f45)

23 years agoFix a malloc of zero problem.
Jeremy Allison [Fri, 23 Jun 2000 19:57:42 +0000 (19:57 +0000)]
Fix a malloc of zero problem.
Jeremy.
(This used to be commit 2aa21db960666736331b18956422b7c13aad0f0f)

23 years agolib/util_unistr.c: Off-by-one fix for dos_PutUniStr from John Reilly jreilly@hp.com.
Jeremy Allison [Fri, 23 Jun 2000 17:31:38 +0000 (17:31 +0000)]
lib/util_unistr.c: Off-by-one fix for dos_PutUniStr from John Reilly jreilly@hp.com.
Memory leak fix for new sec_ctx code (sorry Tim :-).
Jeremy.
(This used to be commit edaf49c66d5a5ccf6689b358c301e208599a468f)

23 years agoDon't return a value for a void function.
Tim Potter [Fri, 23 Jun 2000 07:02:59 +0000 (07:02 +0000)]
Don't return a value for a void function.
(This used to be commit 66fd7da08ffbb3673925e8816f06f8983363036b)

23 years agoTest harness stuff for compiling things.
Tim Potter [Fri, 23 Jun 2000 07:00:43 +0000 (07:00 +0000)]
Test harness stuff for compiling things.
(This used to be commit 0af2a1ea69fcdf21243fc7e9a9de8914817d4880)

23 years agomake proto
Tim Potter [Fri, 23 Jun 2000 06:53:33 +0000 (06:53 +0000)]
make proto
(This used to be commit 927b7772a1246d60bccdf79cdb1f054c449c6bb6)

23 years agoSome compile fixes.
Tim Potter [Fri, 23 Jun 2000 06:47:11 +0000 (06:47 +0000)]
Some compile fixes.
(This used to be commit 4d0c09cb4f17b60ab99767d3e61f2ad50c6c5c30)

23 years agoGot a bit carried away deleting things.
Tim Potter [Fri, 23 Jun 2000 06:43:08 +0000 (06:43 +0000)]
Got a bit carried away deleting things.
(This used to be commit 211391d88e10d94edcc81b83fefcadb4a905ea56)

23 years agoRemoved unused variables.
Tim Potter [Fri, 23 Jun 2000 06:36:22 +0000 (06:36 +0000)]
Removed unused variables.
(This used to be commit a75e738211e744adb966bcbc24371554c9642220)

23 years agoAdded parenthesis around definition of PRINTER_ACE_PRINT.
Tim Potter [Fri, 23 Jun 2000 06:31:45 +0000 (06:31 +0000)]
Added parenthesis around definition of PRINTER_ACE_PRINT.
(This used to be commit 0dbc680e34922557a7b4ad62e898002218fa94b3)

23 years agoAdded return for become_authenticated_pipe_user() function.
Tim Potter [Fri, 23 Jun 2000 06:27:05 +0000 (06:27 +0000)]
Added return for become_authenticated_pipe_user() function.
(This used to be commit d0f55e04c9400481e4a981431715e167a8246e45)

23 years agoTests for new security context stuff.
Tim Potter [Fri, 23 Jun 2000 06:21:08 +0000 (06:21 +0000)]
Tests for new security context stuff.
(This used to be commit 85a68bc449a071d21e03ad4f54c1e784831a9bb5)

23 years agomake proto
Tim Potter [Fri, 23 Jun 2000 06:20:03 +0000 (06:20 +0000)]
make proto
(This used to be commit 2d3312249b3755e46d913dd40325b85db4aae62e)

23 years agoAdded MAX_SEC_CTX_DEPTH
Tim Potter [Fri, 23 Jun 2000 06:19:26 +0000 (06:19 +0000)]
Added MAX_SEC_CTX_DEPTH
(This used to be commit 2bf21395ba4999d0392d6f54093ddc8861323ddd)

23 years agoDelete OriginalDir stuff.
Tim Potter [Fri, 23 Jun 2000 05:57:48 +0000 (05:57 +0000)]
Delete OriginalDir stuff.
(This used to be commit 3d0f1845c8cefccfabcfd35694264c1e5f52c3af)

23 years agoMoved some static functions to sec_ctx.c
Tim Potter [Fri, 23 Jun 2000 05:57:20 +0000 (05:57 +0000)]
Moved some static functions to sec_ctx.c

Implemented become_root() and friends in terms of push/pop/set security
contexts.
(This used to be commit 0bcdcd0606fc2b6aba35b03255aad5bb2bd8e848)

23 years agoAdded smbd/sec_ctx.o to smbd objects.
Tim Potter [Fri, 23 Jun 2000 05:55:41 +0000 (05:55 +0000)]
Added smbd/sec_ctx.o to smbd objects.
(This used to be commit 11897939bcc073a24ff25c915beec7418a0bccfd)

23 years agoCall init_sec_ctx() instead of init_uid().
Tim Potter [Fri, 23 Jun 2000 05:54:49 +0000 (05:54 +0000)]
Call init_sec_ctx() instead of init_uid().

Delete OriginalDir stuff.
(This used to be commit db5e6ad3a69a6fd744d8a22066587908470e3815)