1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

543 Commits

Author SHA1 Message Date
Tim Potter
4ccd34ef83 A new RPC pipe! The \pipe\echo named pipe is for testing large RPC
requests and responses and is only compiled in when --enable-developer
is passed to configure.  It includes server and client side code for
generating and responding to functions on this pipe.  The functions are:

 - AddOne: add one to the uint32 argument and return ig
 - EchoData: echo back a variable sized char array to the caller
 - SourceData: request a variable sized char array
 - SinkData: send a variable sized char array and throw it away

There's a win32 implementation of the client and server in the
junkcode CVS repository in the rpcecho-win32 subdirectory.
-
Volker Lendecke
ecd0ee4d24 This is the netlogon schannel client code. Try a
rpcclient -S pdc -U% -c "samlogon user password"

and it should work with the schannel. Needs testing platforms
different from NT4SP6.

Volker
-
Tim Potter
67bc6bccc2 SAMR lookupdomain rpc client patches from amber palekar <amber@nu3.net> -
Jelmer Vernooij
d5f9b0275c Revoke some of the popt patch from metze I applied earlier today. It added
some double options and broke some parameters.
-
Jelmer Vernooij
2ddfed298d Patch from metze to generalise POPT_COMMON_SAMBA, with some minor changes -
Tim Potter
ac3df9a805 Applied waider's patch to return DOS error codes for pipes that
support it.
-
Martin Pool
17567dd1d5 Patch from Ronan Waide:
> when doing "enumdomusers", rpcclient prints each one preceded by the
> word "group" instead of "user"
-
Andrew Bartlett
1f605fe77c safe_strcpy() -> fstrcpy() fix, and a cleanup to how rpcclient calls the
IP address resolving code.
-
Tim Potter
992b5eb4e0 Use PRINTER_ALL_ACCESS instead of MAXIMUM_ALLOWED_ACCESS in setprinter
command.  From Ronan Waide <waider@waider.ie>.
-
Tim Potter
018733eedd More const fixes and flow on fixes from yesterday's const-fest. -
Tim Potter
923425e497 Fixed up some const related compiler warnings. -
Tim Potter
30353da3e9 Added enumdomusers command. -
Tim Potter
7418351427 Fix for only specifying one command with -c -
Jelmer Vernooij
f035cba2cf Remove obsolete files -
Jelmer Vernooij
5de622968d Add -V option (to print out version) to utilities where possible
(pdbedit already has a -V option..)
-
Martin Pool
735c99dadb Doxygen janitor. No other changes. -
Martin Pool
bfb6104521 cmd_lsa_lookup_sids: Check return code from string_to_sid; skip SIDs
which are not valid.
-
Volker Lendecke
3b905f5a16 Dummy commit, I can't get through to samba-cvs@samba.org. It can't really
remember under what mail address I have to post.

My last commit to this file made it compile again, my fingers were a bit
too fast to really type this message.

Sorry for this confusion,

Volker
-
Volker Lendecke
fcfbb3c430 cmd_srvsvc.c -
Martin Pool
ada36d2fe3 Typo: /mized/mixed/ -
Martin Pool
9f9077346b Don't pstrcpy into an fstring. (Harmless in this case since it comes
from an environment variable.)
-
Martin Pool
d85a25e733 Start reworking rpcclient to use popt rather than next_token to parse
command lines.  This makes the code much simpler and also stops
trivial syntax errors from causing a crash.

Also fix support for semicolon-separated commands in -c, which is
promised by the manual but apparently never working due to an
off-by-one error.
-
Andrew Bartlett
512e65a6a6 Match Samba 2.2 by chosing the correct desired access, and getting cupsaddsmb
back working again.

Andrew Bartlett
-
Andrew Tridgell
3ddb5fb0dd added the 'lsaenumacctwithright' command to rpcclient. This allows you
to lookup what SIDs have a particular privilege (that is how
privileges are stored).
-
Tim Potter
d3962da61a Use new interface for cli_samr_query_dispinfo(). -
Tim Potter
cdc7c599c7 Remove NULL buffer checks before rpcstr_pull() as they're now done
inside this function.
-
Andrew Tridgell
bf99440398 added LsaRemoveAccountRights
this now gives us complete remove privileges control in the client
libs, so we are in good shape for starting on the server side.
-
Andrew Tridgell
2e5e659e09 cleaned up the lsa_enum_acct_rights function and added a
lsa_add_acct_rights function.

This allows us to add privileges remotely to accounts using rpcclient.
-
Jim McDonough
5d43346761 revert accidentally committed changes -
Jim McDonough
97133f7168 Properly display popt errors. Also fix debug to be -d for consistency with other progs. -
Andrew Tridgell
e3d00fa47d reverted this patch till I sort out the craziness with UNIHDR -
Andrew Tridgell
b9eff31b14 This removes the 3rd argument from init_unistr2(). There were 240
calls to init_unistr2() in the code and every one of them got the 3rd
argument incorrect, so I thought it best just to remove the argument.

The incorrect usage was caused by callers using strlen() to determine
the length of the string. The 3rd argument to init_unistr2() was
supposed to be the character length, not the byte length of the
string, so for non-english this could come out wrong.

I also removed the bogus 'always allocate at least 256 bytes'
hack. There may be some code that relies on this, but if there is then
the code is broken and needs fixing.
-
Andrew Tridgell
665cc9b1ac allow a couple of LSA functions to take a username instead of a SID,
They still accept a SID, it just can be tedious to have to type SIDs
instead of names all the time.
-
Gerald Carter
4a6d8280ea * removed unused variable from rpcclient code
* added container option to net command (patch from SuSE)
* Makefile patch for examples/VFS from SuSE
-
Andrew Tridgell
65bac11d71 added cli_lsa_enum_account_rights() call. Note that this is in
principal similar to the existing cli_lsa_enum_privsaccount() call,
except that cli_lsa_enum_account_rights() doesn't require a call to
open_account first. There is also the minor matter that
cli_lsa_enum_account_rights() works whereas
cli_lsa_enum_privsaccount() doesn't!

this call can be used to find what privileges an account or group
has. This is a first step towards proper privileges support in Samba.
-
Andrew Bartlett
9b76123732 A couple more fstring/pstring issues - and move from sizeof(fstring) to
sizeof(var) in slprintf statements, so as to ensure we don't get mixups there.

Also remove fstrcpy() into a variable that is about to be printed into anyway.

Andrew Bartlett
-
Tim Potter
451286febd Display an error message when the server cannot be resolved when running at
debug level 0.
-
Andrew Bartlett
92a777d0ea BIG patch...
This patch makes Samba compile cleanly with -Wwrite-strings.
 - That is, all string literals are marked as 'const'.  These strings are
always read only, this just marks them as such for passing to other functions.

What is most supprising is that I didn't need to change more than a few lines of code (all
in 'net', which got a small cleanup of net.h and extern variables).  The rest
is just adding a lot of 'const'.

As far as I can tell, I have not added any new warnings - apart from making all
of tdbutil.c's function const (so they warn for adding that const string to
struct).

Andrew Bartlett
-
Simo Sorce
c5892b656d the shutdown call does not have a 16 bit flags, but 2 byte representing booleans
this commit change the structure and code to reflect this

some test revelead I'm right.

some other revelead currently the abort shutdown does not work against my test machine even if it returns successfully ... need investigation
-
Jeremy Allison
784d15761c Finish adding strings to all talloc_init() calls.
Jeremy.
-
Jeremy Allison
842e08e52a Forward port the change to talloc_init() to make all talloc contexts
named. Ensure we can query them.
Jeremy.
-
Simo Sorce
8877ff2482 make querygroup in rpcclient working, same fix as per 2.2 tree -
Jeremy Allison
82b8f749a3 Removed global_myworkgroup, global_myname, global_myscope. Added liberal
dashes of const. This is a rather large check-in, some things may break.
It does compile though :-).
Jeremy.
-
Jim McDonough
101727335f Add getdata and getdataex commands -
Gerald Carter
f20de1f9b0 deldriver fix -
Jim McDonough
6d1d2849a7 Add enumdataex command -
Jim McDonough
a22fdf26fe Implement enumdata command -
Jim McDonough
a2e17d4344 Add enumkey command (EnumPrinterKey api) -
Jeremy Allison
10024ed06e Merge of scalable printing code fix... Needs testing.
Also tidied up some of Richard's code (I don't think he uses the compiler
flags -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual like
I do :-) :-).
Jeremy.
-
Tim Potter
1e054e3db6 Merge of get_dc_list() api change. This was slightly more intrusive
than the version in APPLIANCE so watch out for boogs.
-