summaryrefslogtreecommitdiffstats
path: root/source3/utils/net_rpc_rights.c
Commit message (Collapse)AuthorAgeFilesLines
* s3-talloc Change TALLOC_ARRAY() to talloc_array()Andrew Bartlett2011-06-091-2/+2
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_ARRAY isn't standard talloc.
* s3-lib Replace StrCaseCmp() with strcasecmp_m()Andrew Bartlett2011-05-181-1/+1
| | | | | | | strcasecmp_m() never needs to call to talloc, and via next_codepoint() still has an ASCII fast-path bypassing iconv() calls. Andrew Bartlett
* s3-rpc_client: add and use rpc_client/rpc_client.h.Günther Deschner2011-04-131-0/+1
| | | | Guenther
* s3-net: prefer dcerpc_lsa_X functions in "net rpc rights".Günther Deschner2011-02-021-45/+84
| | | | Guenther
* s3-net: use status variable in "net rpc rights".Günther Deschner2011-02-021-95/+95
| | | | Guenther
* libcli/security Provide a common, top level libcli/security/security.hAndrew Bartlett2010-10-121-0/+1
| | | | | | | | | | | | | | This will reduce the noise from merges of the rest of the libcli/security code, without this commit changing what code is actually used. This includes (along with other security headers) dom_sid.h and security_token.h Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Oct 12 05:54:10 UTC 2010 on sn-devel-104
* s3-lsa: separate out init_lsa headers.Günther Deschner2010-08-251-0/+1
| | | | Guenther
* s3:dom_sid Global replace of DOM_SID with struct dom_sidAndrew Bartlett2010-05-211-11/+11
| | | | | | | | | | This matches the structure that new code is being written to, and removes one more of the old-style named structures, and the need to know that is is just an alias for struct dom_sid. Andrew Bartlett Signed-off-by: Günther Deschner <gd@samba.org>
* s3-rpc_client: move protos to cli_lsarpc.hGünther Deschner2010-05-181-0/+1
| | | | Guenther
* s3 net: Fix compile warningsKai Blin2010-01-191-12/+17
|
* s3/net: split up some printable stings to ease i18nBjörn Jacke2010-01-181-10/+10
| | | | | | If we put strings like "Usage:" into separate _() macros and not the whole "Usage:..." string we can cover much more messages by only one single translation. The drawback is that the message in the sources looks less pretty.
* s3-rpc: Avoid including every pipe's client and server stubs everywhere in ↵Günther Deschner2009-11-261-0/+1
| | | | | | samba. Guenther
* Revert "s3: Make run_rpc_command take strings instead of a ndr_interface_table"Volker Lendecke2009-11-081-16/+13
| | | | This reverts commit 53f2a1595e76db9fe1b42db65b51895b73365993.
* s3: Make run_rpc_command take strings instead of a ndr_interface_tableVolker Lendecke2009-11-081-13/+16
|
* s3 net: i18n support for net rpc rightsKai Blin2009-08-101-44/+52
|
* s3-secdesc: use SEC_FLAG_MAXIMUM_ALLOWED instead of SEC_RIGHTS_MAXIMUM_ALLOWED.Günther Deschner2009-04-211-5/+5
| | | | Guenther
* s3: remove POLICY_HND.Günther Deschner2009-03-181-10/+10
| | | | Guenther
* s3/net: Display error message if user does not exist.Karolin Seeger2009-01-091-1/+4
| | | | | | | | net rpc rights grant: Verify if the username can be resolved to a SID and display a proper error message if it does not. Otherwise users might think setting privileges worked fine, but in fact it does not. Karolin
* Refactoring: net_sh_run uses ndr_syntax_id instead of pipe_idxVolker Lendecke2008-07-211-3/+3
| | | | (This used to be commit 85c8363d5179e7053adc05e8abce2fb26cf9b968)
* Refactoring: run_rpc_command uses ndr_syntax_id instead of pipe_idxVolker Lendecke2008-07-211-3/+3
| | | | (This used to be commit 850166ec0d17eb85a0c921dc3b966fac0677af4a)
* net: Rename functable3 to functable, get rid of old functablesKai Blin2008-06-101-2/+2
| | | | (This used to be commit bb7c5fc4ec77db4073d3beccf12af12910b6bd07)
* net: Make "net rpc rights" use functable3Kai Blin2008-06-101-26/+59
| | | | (This used to be commit b0e373e595d66bd92b685dd98fc8967d45532e41)
* net: Use true/false instead of True/False.Kai Blin2008-05-201-5/+5
| | | | (This used to be commit a8b567aac3b0e39cfe67fb97167b10312ca5e73a)
* net: more whitespace cleanupKai Blin2008-05-101-44/+44
| | | | (This used to be commit ef0184d580500734fc7af51e1c790b075180a3d0)
* net: Remove globalsKai Blin2008-05-101-24/+28
| | | | (This used to be commit 1e9319cf88b65a2a8d4f5099a1fe5297e405ed2e)
* Add my copyright.Günther Deschner2008-02-271-0/+1
| | | | | Guenther (This used to be commit d078a8757182d84dfd3307a2e1b751cf173aaa97)
* Use rpccli_lsa_RemoveAccountRights() in net and rpcclient.Günther Deschner2008-02-141-3/+18
| | | | | Guenther (This used to be commit 78200d88924bbef3df7185fc3a0e1753160a592f)
* Use rpccli_lsa_EnumAccountRights in net and rpcclient.Günther Deschner2008-02-141-14/+19
| | | | | Guenther (This used to be commit 6e9195329d9f2b26c959f64485902c032f140ec8)
* Use rpccli_lsa_AddAccountRights in net and rpcclient.Günther Deschner2008-02-141-2/+17
| | | | | Guenther (This used to be commit e94ded74d6541d1d8954cfbbbd577ca0c83ecd4c)
* Use rpccli_lsa_EnumAccounts() in net and rpcclient.Günther Deschner2008-02-141-25/+30
| | | | | Guenther (This used to be commit bdbcfa4419a54b98ea577b0052894ddaa06890ce)
* Collect all init_lsa_string varients in one place.Günther Deschner2008-02-121-5/+0
| | | | | Guenther (This used to be commit f4581e9f4482566fba9436d5ae058b8d840fa394)
* Use rpccli_lsa_LookupPrivDisplayName() in net and rpcclient.Günther Deschner2008-02-111-13/+35
| | | | | Guenther (This used to be commit be932cbdfa51eefafe79a81fa393ffea1fa4e25e)
* Use rpccli_lsa_EnumPrivs() in net and rpcclient.Günther Deschner2008-02-111-11/+12
| | | | | Guenther (This used to be commit bb24cccfc87dd8b97cc68a0dd205dc338f21f37d)
* Stop Coverity complaining about uninitialized variables.Jeremy Allison2008-01-111-3/+3
| | | | | Jeremy. (This used to be commit 041f1d298c1e72adb263b32f454cdf3603e45416)
* s/sid_to_string/sid_to_fstring/Volker Lendecke2007-12-151-2/+2
| | | | | least surprise for callers (This used to be commit eb523ba77697346a365589101aac379febecd546)
* Replace sid_string_static by sid_string_dbg in DEBUGsVolker Lendecke2007-12-151-3/+3
| | | | (This used to be commit bb35e794ec129805e874ceba882bcc1e84791a09)
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-10-101-2/+1
| | | | (This used to be commit b0132e94fc5fef936aa766fb99a306b3628e9f07)
* r23779: Change from v2 or later to v3 or later.Jeremy Allison2007-10-101-1/+1
| | | | | Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
* r23627: Allow to pass down the lookup-level to rpccli_lsa_lookup_names().Günther Deschner2007-10-101-1/+1
| | | | | Guenther (This used to be commit e9a7512a9f630340004913f1379452eea8a9b6ae)
* r18747: replace rpccli_lsa_close() with rpccli_lsa_Close()Gerald Carter2007-10-101-5/+5
| | | | (This used to be commit 50d74ce0488a9bd0980cdc6d523a210f6238ef74)
* r18271: Big change:Gerald Carter2007-10-101-2/+2
| | | | | | | | | | | | * autogenerate lsa ndr code * rename 'enum SID_NAME_USE' to 'enum lsa_SidType' * merge a log more security descriptor functions from gen_ndr/ndr_security.c in SAMBA_4_0 The most embarassing thing is the "#define strlen_m strlen" We need a real implementation in SAMBA_3_0 which I'll work on after this code is in. (This used to be commit 3da9f80c28b1e75ef6d46d38fbb81ade6b9fa951)
* r16644: Fix bug #3887 reported by jason@ncac.gwu.eduJeremy Allison2007-10-101-2/+2
| | | | | | | by converting the lookup_XX functions to correctly return SID_NAME_TYPE enums. Jeremy. (This used to be commit ee2b2d96b60c668e37592c79e86c2fd851e15f69)
* r15657: Fix some Tru64 warningsVolker Lendecke2007-10-101-1/+1
| | | | (This used to be commit a85dfb9eff222142eb1f9d89beb3d156661dd047)
* r13316: Let the carnage begin....Gerald Carter2007-10-101-2/+53
| | | | | Sync with trunk as off r13315 (This used to be commit 17e63ac4ed8325c0d44fe62b2442449f3298559f)
* r12986: Use d_fprintf(stderr, ...) for any error message in net.Lars Müller2007-10-101-5/+5
| | | | | | | | | All 'usage' messages are still printed to stdout. Fix some compiler warnings for system() calls where we didn't used the return code. Add appropriate error messages and return with the error code we got from system() or NT_STATUS_UNSUCCESSFUL. (This used to be commit f650e3bdafc4c6bcd7eb4bcf8b6b885b979919eb)
* r10656: BIG merge from trunk. Features not copied overGerald Carter2007-10-101-65/+82
| | | | | | | | * \PIPE\unixinfo * winbindd's {group,alias}membership new functions * winbindd's lookupsids() functionality * swat (trunk changes to be reverted as per discussion with Deryck) (This used to be commit 939c3cb5d78e3a2236209b296aa8aba8bdce32d3)
* r6071: * clean up UNISTR2_ARRAY ( really just an array of UNISTR4 + count )Gerald Carter2007-10-101-13/+37
| | | | | | | * add some backwards compatibility to 'net rpc rights list' * verify privilege name in 'net rpc rights privileges <name>' in order to give back better error messages. (This used to be commit 0e29dc8aa384dfa6d2495beb8a9ffb5371e60a13)
* r5912: - Enhance net rpc rights utilitySimo Sorce2007-10-101-23/+131
| | | | | | | | - Make it possible to list users that are given a specific privilege - Make the lisitng interface a bit more usable by distinguishing between "keys" and "names", using user names directly still supported for backward compatibility (This used to be commit 9797b33f2377375875b2c473d9899f36fe75246b)
* r5653: Fixiing typos.John Terpstra2007-10-101-1/+1
| | | | (This used to be commit 7df1cfed723d1c22070b0a829946fe61d064e0d1)
* r4849: * finish SeAddUsers support in srv_samr_nt.cGerald Carter2007-10-101-11/+45
| | | | | | | | | | * define some const SE_PRIV structure for use when you need a SE_PRIV* to a privilege * fix an annoying compiler warngin in smbfilter.c * translate SIDs to names in 'net rpc rights list accounts' * fix a seg fault in cli_lsa_enum_account_rights caused by me forgetting the precedence of * vs. [] (This used to be commit d25fc84bc2b14da9fcc0f3c8d7baeca83f0ea708)