1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-10 13:57:47 +03:00

768 Commits

Author SHA1 Message Date
Tim Potter
7418351427 Fix for only specifying one command with -c -
Jelmer Vernooij
1a68ead433 Remove obsolete files -
Jelmer Vernooij
f035cba2cf Remove obsolete files -
Tim Potter
7406fabe7c Merge typo fix. -
Tim Potter
7edaf93796 Merge NTSTATUS vs WERROR return for cli_srvsvc_net_srv_get_info() -
Jelmer Vernooij
5de622968d Add -V option (to print out version) to utilities where possible
(pdbedit already has a -V option..)
-
Martin Pool
5d09aea6f7 Check return code of string_to_sid. (Merge from HEAD) -
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
94976a4128 merge desired_access for open_printer_ex from HEAD, allowing cupsaddsmb to
work again!

Andrew Bartlett
-
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).
-
Jeremy Allison
1e752b48a1 Merge tpot's changes to request the correct sizes for user dispinfo
from HEAD. I had to do this for him as he was *so* tired, the poor
chap, plus he has this bad leg, plus the dog ate his homework etc. etc.
Jeremy.
-
Jeremy Allison
e20cb9ca55 Remove NULL buffer checks before rpcstr_pull() as they're now done
inside this function. Merge from HEAD (tpot).
Jeremy.
-
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.
-
Jeremy Allison
49739be1e2 Merge tridge's client priv code from HEAD.
Jeremy
-
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.
-
Jeremy Allison
30a33920b4 Merging tridge's privillage client changes from HEAD.
Jeremy.
-
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
0fb724b321 *lots of small merges form HEAD
*sync up configure.in
*don't build torture tools in make all
*make sure to remove torture tools as part of make clean
-
Gerald Carter
7a4c874842 merging some rpcclient and net functionality from HEAD -
Gerald Carter
25a9681ddd [merge]
* removed unused variable from rpcclient code
* added container option to net command (patch from SuSE)
* Makefile patch for examples/VFS from SuSE
-
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
9b70fa868e Merge from HEAD:
- fstring/pstring mixups
 - the detection code that found them (disabled)
 - a bit of whitespace
 - a static

Andrew Bartlett
-
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
a4f7777ca0 Merge from HEAD - idra's fix for the fact that the shutdown command takes two 1
byte boolean flags, not a 16 bit bitmask.

Andrew Bartlett
-
Andrew Bartlett
3a7458f947 Merge from HEAD - make Samba compile with -Wwrite-strings without additional
warnings.  (Adds a lot of const).

Andrew Bartlett
-
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
aa8439a49e Finish adding strings to all talloc_init() calls.
Jeremy.
-
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.
-
Jeremy Allison
09a218a9f6 Forward port the change to talloc_init() to make all talloc contexts
named. Ensure we can query them.
Jeremy.
-
Tim Potter
77b403434f Merge from HEAD:
>fix rpcclient querygroup command (from 2.2 and head)
-
Simo Sorce
ea2154b269 fix rpcclient querygroup command (from 2.2 and head) -
Simo Sorce
8877ff2482 make querygroup in rpcclient working, same fix as per 2.2 tree -
Jeremy Allison
f755711df8 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.
-