1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
Commit Graph

407 Commits

Author SHA1 Message Date
Tim Potter
9a02c6b4e8 Converted getprinterdriver to WERROR - it always returns dos error 6
(invalid handle) though.  )-:
(This used to be commit 7bfd1f35e4)
2002-01-07 03:33:46 +00:00
Tim Potter
2f25e5118f Converted enumprinters and enumports cmd functions to use WERROR
values returned from cli functions.  They are converted to NTSTATUS codes
using the error map functions.

Do buffer size loop checks by setting offered = 0 and using the return
value of needed in the next call.
(This used to be commit 4efbdda3fc)
2002-01-06 09:03:48 +00:00
Tim Potter
cd0772e51e spoolss rpc client cleanup:
- converted OpenPrinterEx and ClosePrinter to WERROR instead of NT_STATUS
 - doc
(This used to be commit 248d114f85)
2002-01-06 03:54:40 +00:00
Tim Potter
84dbcd6147 Display nicer message when server name could not be resolved.
(This used to be commit 950d8e3656)
2002-01-06 03:24:51 +00:00
Tim Potter
9c1ddeca6f Fixed crash bug in display_print_info_2()
(This used to be commit b70f870cd9)
2002-01-03 03:51:13 +00:00
Tim Potter
af8ed15401 Fixed crash bug in display_print_info_1()
(This used to be commit d1564fbf1f)
2002-01-03 02:48:23 +00:00
Tim Potter
a4c612078f Unicode byte ording fix from Benjamin Kuit <bj@it.uts.edu.au>
(This used to be commit 6b7e9d03cf)
2001-12-30 21:25:46 +00:00
Andrew Bartlett
72898d4821 Finish idra's cleanup of the RPC remote shutdown code.
(This used to be commit 79031b68ce)
2001-12-30 10:19:56 +00:00
Simo Sorce
f399e17542 remove unneaded memory leaking code.
(This used to be commit d2c663185e)
2001-12-30 08:37:34 +00:00
Jean-François Micouleau
52d50bac7a close some handles. not really necessary but doesn't hurt.
J.F.
(This used to be commit 55b9cd7af6)
2001-12-21 22:18:06 +00:00
Jean-François Micouleau
bead5bf57c added all level to samr_query_disp_info rpcclient side.
J.F.
(This used to be commit d5f2e645e4)
2001-12-21 13:38:07 +00:00
Jean-François Micouleau
28eb6b91b2 put back the -l option to rpcclient.
that's the most useful option in this tool !

I love rpcclient ;-)

	J.F.
(This used to be commit 18dc4cd57a)
2001-12-21 13:30:55 +00:00
Tim Potter
203c2301eb Fix for null command description in rpcclient help. From Benjamin Kuit
<bj@it.uts.edu.au>.
(This used to be commit 60d1d0bfa9)
2001-12-21 01:16:37 +00:00
Andrew Tridgell
89dd1a00b6 lp_setup_logfile() doesn't exist any more
(This used to be commit aa52ae7354)
2001-12-20 23:46:05 +00:00
Jeremy Allison
9ed10f83d7 Removed global debugf. Replaced with lp_set_logfile(name).
Fixed winbindd to finally stop leaving log. file droppings :-).
Jeremy.
(This used to be commit 0bea6cf79a)
2001-12-20 22:27:05 +00:00
Jean-François Micouleau
9fc3e980e9 initialise strings
(This used to be commit cb61606b8e)
2001-12-18 00:27:46 +00:00
Jean-François Micouleau
9f59fc64b8 update the ldap support code. it compiles.
Ignacio you can update your howto ;-)

samsync: a small patch to try chaning challenges.

	J.F.
(This used to be commit c99bc30559)
2001-12-13 18:09:29 +00:00
Tim Potter
23b239625c Fix some compiler warnings.
(This used to be commit 216dff4380)
2001-12-13 00:02:37 +00:00
Jean-François Micouleau
a5ba214479 added a -V[erbose] option to samsync. Decode a lot of information
I'm looking at chaining the credentials

	J.F.
(This used to be commit d49c8e4d3d)
2001-12-12 15:25:22 +00:00
Tim Potter
6a60668fe2 SAMR query sec obj returns different results depending on which sam handle
it is passed.  Not sure what these different contexts are called or what
they are used for.

 - if a rid is specified to samquerysecobj then use the sam user policy
    handle for that rid
 - if -d is specified then use the sam domain policy handle
 - otherwise just use the sam connect policy handle

JF, any ideas about this?
(This used to be commit 4ef50ef9f7)
2001-12-11 03:03:45 +00:00
Tim Potter
44d423419a Grr - people who put const everywhere should fix up all the warnings they
generate.
(This used to be commit d1ebd259c8)
2001-12-11 02:23:14 +00:00
Tim Potter
31611dd2f4 Removed unused variable.
(This used to be commit 1dc0e9096d)
2001-12-11 02:22:42 +00:00
Tim Potter
b872787f01 Doing some research into ACLs on the LSA and SAM policy objects.
- added lsaquerysecobj to rpcclient
 - renamed querysecobj to samquerysecobj
 - removed duplicated display_sec_acl() code from cmd_spoolss.c and
   cmd_samr.c and moved it into display_sec.c
(This used to be commit 59b2e3f408)
2001-12-11 02:17:26 +00:00
Tim Potter
d032059df9 Compile fix.
(This used to be commit 83caa883d7)
2001-12-11 00:11:11 +00:00
Jean-François Micouleau
ecf7017eca added enum alias groups to rpcclient
(This used to be commit d4bc8f02f7)
2001-12-10 22:30:31 +00:00
Tim Potter
4f53486d78 Added client and server code for the GetPrintProcessorDirectory SPOOLSS
rpc.  This was supposed to fix a printer driver download bug but it didn't
but it seemed a shame to trash all this code so I'm commiting it #ifdef'ed
out in case someone needs it one day.
(This used to be commit bef4365647)
2001-12-10 05:03:17 +00:00
Andrew Bartlett
3ea7519b06 This change reworkes the connection code for both rpcclient and net new
'net' untility.

This should make it easier to port rpcclient code across to net.

It also allows SPNEGO (the NTLMSSP subsystem in particular) to work, becouse
it kills off the early destruction of the clear-text password.

Andrew Bartlett
(This used to be commit eee925861a)
2001-12-03 07:42:18 +00:00
Jean-François Micouleau
633ee99afa added queryuseraliases to rpcclient
and some comments to the samr server code, to explain what we should
return here.

	J.F.
(This used to be commit 06cb20a46d)
2001-12-02 01:45:50 +00:00
Jean-François Micouleau
d383b618b4 added samr_query_sec_obj. and put back some code to display a security
descriptor.

added to samr_lookup_name the choice to select the either the builtin
(s-1-5-32) domain or our current domain (s-1-5-21-x-y-z)

	J.F.
(This used to be commit d9d1486165)
2001-12-02 00:00:21 +00:00
Tim Potter
6d9adfe73c Renamed sid field in SEC_ACE to trustee to be more in line with MS's
definitions.
(This used to be commit 9712d3f15a)
2001-11-30 01:04:15 +00:00
Tim Potter
5c7016d5cb dyn_CONFIGFILE fixups.
(This used to be commit 7d10fa2082)
2001-11-26 02:01:00 +00:00
Andrew Tridgell
ad2974cd05 added "net join" command
this completes the first stage of the smbd ADS support
(This used to be commit 058a5aee90)
2001-11-24 14:16:41 +00:00
Jean-François Micouleau
ca477a61e7 added lsaenumprivsaccount and lsalookupprivvalue to rpcclient
and more to come ...

	J.F.
(This used to be commit 1748d5a2af)
2001-11-24 00:13:41 +00:00
Tim Potter
79b34d1b11 Removed TimeInit() call from every client program (except for one place
in smbd/process.c where the timezone is reinitialised.  Was replaced with
check for a static is_initialised boolean.
(This used to be commit 8fc772c9e5)
2001-11-23 00:52:29 +00:00
Jean-François Micouleau
fbfd27a495 added lsa_enum_sids to rpcclient
fixed lsa_enum_rpivs server code. This time it works as W2K.
fixed smbgroupedit to compile and work.

	J.F.
(This used to be commit 646651018a)
2001-11-22 23:50:16 +00:00
Jean-François Micouleau
33e20222e0 add another command to rpcclient: getdispname. Show the full description
of a privilege.

	J.F.
(This used to be commit 84035ae72f)
2001-11-22 16:54:48 +00:00
Jean-François Micouleau
2e8ae88785 add a command to rpcclient: enumprivs
J.F.
(This used to be commit fa63cb78e3)
2001-11-22 16:12:43 +00:00
Jean-François Micouleau
b03e162127 samr_querydom_info level 1: found the meaning of the unknow fields. And
discovered that our reply is short by 4 bytes since day 1 of this code.

Added a decode function to rpcclient too.

splitted the STRING2 fields filling while trying to understand the win9x
userlist bug. (didn't fix the bug, but the reply looks closer to NT).

        J.F.
(This used to be commit bfbe7f377e)
2001-11-21 23:25:30 +00:00
Martin Pool
f741f65673 Store some path names in global variables initialized to configure
default, rather than in preprocessor macros.
(This used to be commit 79ec88f0da)
2001-11-19 02:49:53 +00:00
Tim Potter
06ff349e21 FALSE -> False
(This used to be commit 7c6529c081)
2001-11-15 05:26:22 +00:00
Tim Potter
cf1d442f40 Fixed some compiler warnings.
(This used to be commit 7c3090fb20)
2001-11-05 01:41:16 +00:00
Tim Potter
35e44b3a83 Allow the logon level to be passed to cli_netlogon_sam_logon() rather than
the validation level.
(This used to be commit c79e94ea27)
2001-10-30 05:41:07 +00:00
Tim Potter
160950ae0e Display some errors if the initial connection to the server could not be
made.
(This used to be commit c3f5df8d67)
2001-10-30 04:21:53 +00:00
Tim Potter
5c3ccf7766 Added samlogon command to test against win2k native mode server. I think
there's a bug in the marshalling of net_sam_logon.
(This used to be commit 7c5ac46b8a)
2001-10-30 01:49:44 +00:00
Tim Potter
879ecfae58 Converted a bunch of functions to use sscanf %i instead of atoi to
allow hex or decimal rids to be specified.
(This used to be commit d93488b953)
2001-10-29 05:38:02 +00:00
Jean-François Micouleau
f78a8a613f samr querydispinfo can change level, start index and max entries.
added level 4 decoding.

	J.F.
(This used to be commit 0573caa91b)
2001-10-22 06:30:18 +00:00
Jean-François Micouleau
0968ee87e1 allow the samr commands to work back and the help too ;-)
J.F.
(This used to be commit 0157fdc8a2)
2001-10-22 06:13:38 +00:00
Andrew Tridgell
a689b24db1 the next step in the intl changeover. This should get us compiling agian,
and also completes the switch to lang_tdb.c. SWAT should now work
with a po file in the lib/ directory

also removed useless SYSLOG defines in many files
(This used to be commit 5296b20ad8)
2001-10-14 12:10:29 +00:00
Tim Potter
6b09d3d067 Moved from include subdir.
(This used to be commit f6f0a444fa)
2001-10-12 05:59:41 +00:00
Tim Potter
439c7e0ca2 Some old stuff hanging around since the CIFS conference. Big cleanup of
rpcclient code.  Refactored cmd_* functions to move common mem_ctx and pipe
opening stuff up one level.  Moved rpcclient.h into rpcclient directory and
out of includes/smb.h
(This used to be commit a40facba96)
2001-10-12 05:56:23 +00:00