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

129 Commits

Author SHA1 Message Date
Günther Deschner
2b84f4119d Use rpccli_lsa_EnumAccounts() in net and rpcclient.
Guenther
(This used to be commit bdbcfa4419)
2008-02-14 01:32:56 +01:00
Günther Deschner
0ba3d44f73 Use rpccli_lsa_EnumTrustDom all over the place.
Guenther
(This used to be commit a25e7ffbca)
2008-02-13 00:29:37 +01:00
Günther Deschner
e2b3aad817 Collect all init_lsa_string varients in one place.
Guenther
(This used to be commit f4581e9f44)
2008-02-12 22:05:39 +01:00
Günther Deschner
1a27d29686 Add cmd_lsa_get_username command to rpcclient.
Guenther
(This used to be commit 66aac1d7f2)
2008-02-11 20:49:38 +01:00
Günther Deschner
7b50295400 Use rpccli_lsa_LookupPrivDisplayName() in net and rpcclient.
Guenther
(This used to be commit be932cbdfa)
2008-02-11 19:16:05 +01:00
Günther Deschner
0ddbeba833 Only call display_lsa_query_info on success in rpcclient.
Guenther
(This used to be commit dad7ae3e1a)
2008-02-11 10:52:51 +01:00
Günther Deschner
976fba87eb Use rpccli_lsa_EnumPrivs() in net and rpcclient.
Guenther
(This used to be commit bb24cccfc8)
2008-02-11 10:49:30 +01:00
Günther Deschner
da3e2d4c27 Testing revealed some errors, reverting some of the lsa changes.
Guenther
(This used to be commit ac1e4f1eb2)
2008-02-09 02:05:39 +01:00
Günther Deschner
2b1d74981b Fix rpccli_lsa_QueryTrustedDomainInfoByName() caller in rpcclient.
Guenther
(This used to be commit bdda909777)
2008-02-08 22:57:56 +01:00
Günther Deschner
ba00160eb8 Use rpccli_lsa_OpenAccount() in rpcclient.
Guenther
(This used to be commit 04d7977905)
2008-02-08 22:44:28 +01:00
Günther Deschner
bdf2e4f23f Use rpccli_lsa_CreateAccount() in rpcclient.
Guenther
(This used to be commit 43ab24c11e)
2008-02-08 22:38:34 +01:00
Günther Deschner
d748baa1c1 Use rpccli_lsa_QueryInfoPolicy and rpccli_lsa_QueryInfoPolicy2 in rpcclient.
Guenther
(This used to be commit 35494a3336)
2008-02-08 10:02:51 +01:00
Günther Deschner
e5769f356a Remove some wrong checks for policy handles in rpcclient.
Guenther
(This used to be commit 235e440ae6)
2008-02-04 22:12:41 +01:00
Günther Deschner
649d1a82ca Use rpccli_lsa_QuerySecurity() in rpcclient.
Guenther
(This used to be commit c07be0f1a9)
2008-02-04 22:12:40 +01:00
Günther Deschner
e021eb6d7b Use NDR_PRINT_UNION_STRING instead of NDR_PRINT_UNION_DEBUG in rpcclient.
Guenther
(This used to be commit 2c045a8c81)
2008-01-15 23:07:10 +01:00
Günther Deschner
c6f2bbb59f Fix rpcclient display_trust_dom_info().
Guenther
(This used to be commit 54bdd22a07)
2008-01-14 15:39:51 +01:00
Günther Deschner
08946cc546 Remove some more hand written LSA rpc.
(rpccli_lsa_open_trusted_domain,
rpccli_lsa_query_trusted_domain_info,
cli_lsa_query_domain_info_policy).

Guenther
(This used to be commit 5bfb33f1c5)
2008-01-14 15:29:52 +01:00
Günther Deschner
463fd6b3a8 Use some more pidl generated LSA rpc in rpcclient.
Guenther
(This used to be commit 153e4dd162)
2008-01-14 15:29:36 +01:00
Volker Lendecke
2e07c2ade8 s/sid_to_string/sid_to_fstring/
least surprise for callers
(This used to be commit eb523ba776)
2007-12-15 22:47:30 +01:00
Volker Lendecke
7b01537679 Replace sid_string_static with sid_string_tos
In utils/ I was a bit lazy...
(This used to be commit 60e830b0f4)
2007-12-15 22:09:36 +01:00
Volker Lendecke
1011b32678 Remove some statics
(This used to be commit 1fab16ffb8)
2007-11-27 14:18:47 +01:00
Gerald (Jerry) Carter
e5a951325a [GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.
(This used to be commit 5c6c8e1fe9)
2007-10-10 15:34:30 -05:00
Jelmer Vernooij
277c1baee9 r25572: Fix warnings (values are always true).
(This used to be commit 2c77c3c58e)
2007-10-10 12:31:15 -05:00
Michael Adam
91b276e4ea r25285: Fix some more callers of unistr2_to_ascii to use the size of
destination instead of source as maxlen.

Michael
(This used to be commit 76cb05deec)
2007-10-10 12:30:57 -05:00
Michael Adam
3b5666bb00 r25281: Fix a caller of unistr2_to_ascii():
The maxlen parameter should be set to the size of the
destination, not to the size of the soruce.

Michael
(This used to be commit 841ff0beee)
2007-10-10 12:30:57 -05:00
Andrew Tridgell
5e54558c6d r23784: use the GPLv3 boilerplate as recommended by the FSF and the license text
(This used to be commit b0132e94fc)
2007-10-10 12:28:22 -05:00
Jeremy Allison
d824b98f80 r23779: Change from v2 or later to v3 or later.
Jeremy.
(This used to be commit 407e6e695b)
2007-10-10 12:28:20 -05:00
Günther Deschner
6024286ee7 r23628: Add LSA lookupnames_level to rpcclient.
Guenther
(This used to be commit dee99e4045)
2007-10-10 12:23:38 -05:00
Günther Deschner
7eb828135b r23627: Allow to pass down the lookup-level to rpccli_lsa_lookup_names().
Guenther
(This used to be commit e9a7512a9f)
2007-10-10 12:23:38 -05:00
Volker Lendecke
bb5c820542 r19013: Fix some 64-bit warnings.
Jelmer, Jerry, in cmd_unixinfo.c:159 there is still the warning that "info" is
being used uninitialized which I don't really know how to fix.

Any hints?

Volker
(This used to be commit 4a5d11e194)
2007-10-10 12:15:02 -05:00
Gerald Carter
05ba38f754 r18747: replace rpccli_lsa_close() with rpccli_lsa_Close()
(This used to be commit 50d74ce048)
2007-10-10 12:00:54 -05:00
Jelmer Vernooij
4db7642caa r18745: Use the Samba4 data structures for security descriptors and security descriptor
buffers.

Make security access masks simply a uint32 rather than a structure
with a uint32 in it.
(This used to be commit b41c52b9db)
2007-10-10 12:00:54 -05:00
Gerald Carter
2b27c93a9a r18271: Big change:
* 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 3da9f80c28)
2007-10-10 11:51:18 -05:00
Jelmer Vernooij
995205fc60 r18188: merge 3.0-libndr branch
(This used to be commit 1115745cae)
2007-10-10 11:43:56 -05:00
Jeremy Allison
2b8abc030b r16644: Fix bug #3887 reported by jason@ncac.gwu.edu
by converting the lookup_XX functions to correctly
return SID_NAME_TYPE enums.
Jeremy.
(This used to be commit ee2b2d96b6)
2007-10-10 11:19:05 -05:00
Günther Deschner
c8baac2fd6 r15553: minor rpcclient cleanup: length is already set in data_blob.
Guenther
(This used to be commit a80f366057)
2007-10-10 11:16:59 -05:00
Günther Deschner
655b04e4f8 r15041: Adding rpc client calls to manipulate auditing policies on remote CIFS
servers. Also add a new "net rpc audit" tool. The lsa query infolevels
were taken from samb4 IDL, the lsa policy flags and categories are
partly documented on msdn. I need to cleanup the double
lsa_query_info_policy{2}{_new} calls next.

Guenther
(This used to be commit 0fed66926f)
2007-10-10 11:15:59 -05:00
Günther Deschner
e443866f76 r14144: allow to set sec_info in rpcclients lsa_query_secobj.
Guenther
(This used to be commit 18ee669c60)
2007-10-10 11:15:13 -05:00
Gerald Carter
0af1500fc0 r13316: Let the carnage begin....
Sync with trunk as off r13315
(This used to be commit 17e63ac4ed)
2007-10-10 11:06:23 -05:00
Günther Deschner
5ffc3b18ef r12131: Fix it really, this time :)
Guenther
(This used to be commit 4a506dbc3c)
2007-10-10 11:05:46 -05:00
Günther Deschner
09c1b2a20e r12130: display domain GUID.
Guenther
(This used to be commit 8e63da0366)
2007-10-10 11:05:46 -05:00
Günther Deschner
1b624b69bd r11858: Fill in the clientside TRUSTED_DOMAIN_INFO_EX query.
Guenther
(This used to be commit 02f13dee6d)
2007-10-10 11:05:31 -05:00
Günther Deschner
4c34e1b7e2 r11857: Fix the build.
Guenther
(This used to be commit 6508cb1c80)
2007-10-10 11:05:31 -05:00
Volker Lendecke
f0dab6ba20 r11286: Fix a potential segfault
(This used to be commit f4c310d556)
2007-10-10 11:05:10 -05:00
Gerald Carter
54abd2aa66 r10656: BIG merge from trunk. Features not copied over
* \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 939c3cb5d7)
2007-10-10 11:04:48 -05:00
Günther Deschner
f245e77644 r7537: Print passwords in display charset.
Guenther
(This used to be commit f3bdc20ba3)
2007-10-10 10:57:11 -05:00
Günther Deschner
4bc39f05b7 r7391: - Added client-support for various lsa_query_trust_dom_info-calls and a
rpcclient-tester for some info-levels.

  Jerry, I tried to adopt to prs_pointer() where possible and to not
  interfere with your work for usrmgr.

- Add "net rpc trustdom vampire"-tool.

  This allows to retrieve Interdomain Trust(ed)-Relationships from
  NT4-Servers including cleartext-passwords (still stored in the local
  secrets.tdb).

  The net-hook was done in cooperation with Lars Mueller
  <lmuelle@suse.de>.

  To vampire trusted domains simply call:

        net rpc trustdom vampire -S nt4dc -Uadmin%pass

Guenther
(This used to be commit 5125852939)
2007-10-10 10:57:07 -05:00
Gerald Carter
66df8431ec r5726: merge LsaLookupPrivValue() code from trunk
(This used to be commit 277203b535)
2007-10-10 10:55:57 -05:00
Jim McDonough
de1c756430 r5592: Oops, accidentally committed test version of rpcclient. Reverting changes.
(This used to be commit a5fe34ca7d)
2007-10-10 10:55:49 -05:00
Jim McDonough
ac1cc87122 r5591: Implement "net rpc trustdom del", including client side of
samr_remove_sid_from_foreign_domain.
(This used to be commit 8360695fc0)
2007-10-10 10:55:49 -05:00