Volker Lendecke
bb283af16f
Revert "s3: Do not directly reference the ndr_table_* in rpcclient"
...
This reverts commit 70c698fd54
.
2009-11-08 19:43:47 +01:00
Volker Lendecke
70c698fd54
s3: Do not directly reference the ndr_table_* in rpcclient
2009-11-08 00:28:36 +01:00
Matthias Dieter Wallnöfer
607ceff234
s3/s4 - Adapt the IDL changes on various locations
2009-10-08 09:50:19 +02:00
Günther Deschner
2c84de40b3
s3-rpcclient: allow to set query size for samr enum calls.
...
Guenther
2009-06-08 19:47:26 +02:00
Günther Deschner
86d087fccc
s3-rpcclient: use get_domain_handle() fn in enum domain users & groups.
...
Guenther
2009-05-25 13:52:50 +02:00
Günther Deschner
b5bec1a6d7
s3-secdesc: use SEC_FLAG_MAXIMUM_ALLOWED instead of SEC_RIGHTS_MAXIMUM_ALLOWED.
...
Guenther
2009-04-21 12:40:47 +02:00
Andrew Bartlett
f28f113d8e
Rework Samba3 to use new libcli/auth code (partial)
...
This commit is mostly to cope with the removal of SamOemHash (replaced
by arcfour_crypt()) and other collisions (such as changed function
arguments compared to Samba3).
We still provide creds_hash3 until Samba3 uses the credentials code in
netlogon server
Andrew Bartlett
2009-04-14 16:23:35 +10:00
Günther Deschner
531af136f9
s3: remove POLICY_HND.
...
Guenther
2009-03-18 23:22:29 +01:00
Günther Deschner
2390ea274b
s3-rpcclient: more uses of is_valid_policy_hnd in spoolss and samr commands.
...
Guenther
2009-02-25 14:19:24 +01:00
Günther Deschner
46f55ef5bc
s3-samr: avoid all init_samr_user* functions.
...
Guenther
2009-01-06 16:02:10 +01:00
Günther Deschner
8be38511a3
s3-rpcclient: add setuserinfo to set passwords using level 18,21,23,24,25,26.
...
Guenther
2008-12-05 14:27:03 +01:00
Günther Deschner
e97149087a
s3-samr: fix rpcclient after idl change.
...
Guenther
2008-12-05 14:27:03 +01:00
Günther Deschner
e9269e57fc
s3-rpcclient: add get_domain_handle for samr commands.
...
Guenther
2008-12-05 14:27:02 +01:00
Günther Deschner
798c4b3e6a
s3-samr: use samr_DomainServerState in client tools.
...
Guenther
2008-12-02 00:37:39 +01:00
Günther Deschner
65dc1eeceb
s3: fix various samr callers.
...
Guenther
2008-10-15 17:11:27 +02:00
Jelmer Vernooij
cb78d4593b
Cope with changed signature of http_timestring().
2008-10-11 23:57:44 +02:00
Volker Lendecke
82b5f54f96
Refactoring: rpcclient uses ndr_syntax_id instead of pipe_idx
...
(This used to be commit 85db87c451
)
2008-07-21 14:36:27 +02:00
Günther Deschner
7139745b01
rpcclient: add samr chgpasswd command.
...
Guenther
(This used to be commit b90ae34372
)
2008-06-25 23:58:50 +02:00
Günther Deschner
14d500c0e7
rename rpccli_samr_chgpasswd3 to rpccli_samr_chgpasswd_user3.
...
Guenther
(This used to be commit b1209a039b
)
2008-06-25 23:58:50 +02:00
Günther Deschner
059293cbf4
rename rpccli_samr_chgpasswd_user to rpccli_samr_chgpasswd_user2.
...
Guenther
(This used to be commit 5b4650d56c
)
2008-06-25 23:58:50 +02:00
Günther Deschner
12b9be6d5e
rpcclient: Add tiny fix for cmd_samr_get_dispinfo_idx().
...
Guenther
(This used to be commit c15b5d73ba
)
2008-04-24 22:01:51 +02:00
Günther Deschner
bd8cb7b564
rpcclient: Add getdispinfoidx command.
...
Guenther
(This used to be commit 7d8461d080
)
2008-04-22 23:11:53 +02:00
Volker Lendecke
e1102b8f48
Introduce rpccli_set_timeout()
...
Reduce dependency on "cli" member of rpc_pipe_client struct
(This used to be commit 2e4c1ba389
)
2008-04-20 00:14:26 +02:00
Günther Deschner
be9b46b2ce
Remove some dead code in rpcclient.
...
Guenther
(This used to be commit c7ae1a9b53
)
2008-04-04 01:44:16 +02:00
Günther Deschner
29f44dc144
Move rpccli_try_samr_connects out of rpcclient.
...
Guenther
(This used to be commit f550cdb6f2
)
2008-04-04 01:40:29 +02:00
Günther Deschner
4369c14a66
Re-add support for the samr parameters string.
...
(dialin settings, terminal server settings, etc.)
Guenther
(This used to be commit c4f248df8e
)
2008-03-31 20:55:40 +02:00
Günther Deschner
7269a504fd
Add my copyright.
...
Guenther
(This used to be commit d078a87571
)
2008-02-27 19:38:48 +01:00
Tim Potter
9053bdf57c
Fix off-by-one bugs in subcommand argument passing.
...
(This used to be commit d85a2782a4
)
2008-02-18 10:15:53 +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
4c7943cd62
Add querydispinfo2 and querydispinfo3 to rpcclient.
...
Guenther
(This used to be commit f776840dca
)
2008-02-12 21:35:42 +01:00
Günther Deschner
8823c7453d
Use rpccli_samr_QueryUserInfo() in rpcclient.
...
Guenther
(This used to be commit 5bfa5cac63
)
2008-02-12 18:08:01 +01:00
Günther Deschner
b88982a5c8
Use rpccli_samr_EnumDomainUsers in net and rpcclient.
...
Guenther
(This used to be commit bcf2cd324c
)
2008-02-12 11:36:33 +01:00
Günther Deschner
0ed6c373f1
Use rpccli_samr_EnumDomainGroups in rpcclient.
...
Guenther
(This used to be commit e76c350dab
)
2008-02-12 11:17:53 +01:00
Günther Deschner
cf20a28dd6
Use rpccli_samr_EnumDomainAliases() in net and rpcclient.
...
Guenther
(This used to be commit d034d34faa
)
2008-02-12 11:10:59 +01:00
Günther Deschner
3038a77f40
Minor fix for querydispinfo display in rpcclient.
...
Guenther
(This used to be commit 6cb59410c2
)
2008-02-08 23:02:48 +01:00
Günther Deschner
ab346de340
Add cmd_samr_enum_domains command to rpcclient.
...
Guenther
(This used to be commit f429153de2
)
2008-02-08 23:01:16 +01:00
Jeremy Allison
114596b966
Fix warning and use of uninitialized variable.
...
gd please check !
Jeremy.
(This used to be commit 90fb59cb44
)
2008-02-08 11:40:55 -08:00
Günther Deschner
406ee0effc
Use rpccli_samr_LookupNames() in rpcclient.
...
Guenther
(This used to be commit 64d11fad9b
)
2008-02-08 15:30:35 +01:00
Günther Deschner
e3757bcd1b
Use rpccli_samr_LookupRids() in net and rpcclient.
...
Guenther
(This used to be commit 72fc4ffa38
)
2008-02-08 12:07:06 +01:00
Günther Deschner
781776d864
Use rpccli_samr_QueryDisplayInfo() all over the place.
...
Guenther
(This used to be commit 66b79add35
)
2008-02-08 00:10:55 +01:00
Günther Deschner
ca790c96d2
Remove trailing whitespace in samr client and server.
...
Guenther
(This used to be commit 0b630db298
)
2008-02-07 14:40:39 +01:00
Günther Deschner
1c788bc365
Use rpccli_samr_GetGroupsForUser() all over the place.
...
Guenther
(This used to be commit d1c669920e
)
2008-02-07 14:25:18 +01:00
Günther Deschner
1ec50b50e1
Use rpccli_samr_QueryGroupInfo() in rpcclient.
...
Guenther
(This used to be commit 6a3b06291b
)
2008-02-07 14:04:11 +01:00
Günther Deschner
9c22a27aad
Let rpccli_samr_chgpasswd3 use rpccli_samr_ChangePasswordUser3 internally.
...
Guenther
(This used to be commit ffbfd19ad7
)
2008-02-07 10:07:00 +01:00
Günther Deschner
282f6a3e4e
Add cmd_samr_query_aliasinfo command to rpcclient.
...
Guenther
(This used to be commit ecc4e5fb38
)
2008-02-07 10:02:57 +01:00
Günther Deschner
498e6786e4
Use rpccli_samr_QueryDomainInfo() in rpcclient.
...
Guenther
(This used to be commit ed16b2f63b
)
2008-02-06 02:08:27 +01:00
Günther Deschner
75dc740ee3
Use SAMR_CONNECT_W2K for samr_Connect4 in rpcclient.
...
Guenther
(This used to be commit c0ebdb555d
)
2008-02-05 13:23:56 +01:00
Günther Deschner
2823c1eab1
Use rpccli_samr_QueryGroupMember() all over the place.
...
Guenther
(This used to be commit 1793ed10df
)
2008-02-05 13:19:47 +01:00
Günther Deschner
0c6b6b461c
Use rpccli_samr_GetAliasMembership() in winbindd and rpcclient.
...
Guenther
(This used to be commit 5c16716285
)
2008-02-05 10:13:08 +01:00
Günther Deschner
527c18a2a2
Use rpccli_samr_LookupDomain() in rpcclient.
...
Guenther
(This used to be commit 2d4d052257
)
2008-02-05 10:09:56 +01:00
Günther Deschner
2e73c54fe3
Use rpccli_samr_GetMembersInAlias() in net and rpcclient.
...
Guenther
(This used to be commit 3f48f9e671
)
2008-02-05 10:05:53 +01:00
Günther Deschner
270ba9c238
Use rpccli_samr_Connect2() all over the place.
...
Guenther
(This used to be commit bdf8d56262
)
2008-02-04 22:12:40 +01:00
Günther Deschner
24692c83a9
Use rpccli_samr_Connect4() in rpcclient.
...
Guenther
(This used to be commit c05b5709e4
)
2008-02-04 19:13:15 +01:00
Günther Deschner
5fd0b0f944
Use rpccli_samr_QuerySecurity() for rpcclient.
...
Guenther
(This used to be commit 845d9ea9f6
)
2008-02-02 13:37:19 +01:00
Günther Deschner
ddbe4ea6b7
Use rpccli_samr_CreateUser2() all over the place.
...
Guenther
(This used to be commit 701af69118
)
2008-02-01 16:29:20 +01:00
Günther Deschner
cc1350a353
Use rpccli_samr_CreateDomainGroup() in net and rpcclient.
...
Guenther
(This used to be commit 7b7b10adca
)
2008-02-01 16:29:20 +01:00
Günther Deschner
99ebfd810f
Use rpccli_samr_CreateDomAlias() in net and rpcclient.
...
Guenther
(This used to be commit 1248ec89d2
)
2008-02-01 16:29:20 +01:00
Günther Deschner
37b56c0113
Use rpccli_samr_OpenUser() all over the place.
...
Guenther
(This used to be commit da90eb7653
)
2008-02-01 12:30:15 +01:00
Günther Deschner
2c7428e64e
Use rpccli_samr_OpenAlias() in net and rpcclient.
...
Guenther
(This used to be commit f66facc0f8
)
2008-02-01 12:29:58 +01:00
Günther Deschner
482eaa8e5c
Use rpccli_samr_OpenGroup() all over the place.
...
Guenther
(This used to be commit d019fc69a9
)
2008-02-01 12:29:35 +01:00
Günther Deschner
42960f817a
Use rpccli_samr_OpenDomain() all over the place.
...
Guenther
(This used to be commit e4e9d72724
)
2008-02-01 12:29:10 +01:00
Günther Deschner
e4a64da293
Use rpccli_samr_DeleteUser() in net and rpcclient.
...
Guenther
(This used to be commit 5bd8f7067d
)
2008-02-01 10:17:38 +01:00
Günther Deschner
e33db782d2
Use rpccli_samr_DeleteDomAlias() in net and rpcclient.
...
Guenther
(This used to be commit bbed3aed51
)
2008-02-01 10:15:39 +01:00
Günther Deschner
8303e8cf80
Use rpccli_samr_DeleteDomainGroup() in net and rpcclient.
...
Guenther
(This used to be commit 8cc094ddb5
)
2008-02-01 10:14:10 +01:00
Günther Deschner
5334b364c2
Remove rpccli_samr_close and use pidl generated function instead.
...
Guenther
(This used to be commit 64f0889401
)
2008-01-31 11:09:11 +01:00
Günther Deschner
242a57b624
Remove rpccli_samr_get_dom_pwinfo() and rpccli_samr_get_usrdom_pwinfo().
...
Guenther
(This used to be commit 29690d1860
)
2008-01-25 15:24:27 +01:00
Günther Deschner
92183450f1
Trying to avoid defining new SAMR acct creation flags when we already have them with different
...
names. Matt, Jeremy, please check.
Guenther
(This used to be commit d4a9e46edf
)
2008-01-25 01:04:30 +01:00
Jeremy Allison
a0186fb78d
Forward ported version of Matt Geddes <musicalcarrion@gmail.com>
...
patch for adding acct_flags to rpccli_samr_create_dom_user().
Jerry please test.
Jeremy.
(This used to be commit 7d94f97947
)
2008-01-23 13:54:02 -08:00
Günther Deschner
a92eb76688
Finally enable pidl generated SAMR & NETLOGON headers and clients.
...
Guenther
(This used to be commit f7100156a7
)
2008-01-17 16:54:46 +01:00
Michael Adam
f3603d5a5a
Convert add_sid_to_array() add_sid_to_array_unique() to return NTSTATUS.
...
Michael
(This used to be commit 6b2b9a60ef
)
2008-01-09 01:47:10 +01:00
Michael Adam
1394b91888
Fix an error when accessing unallocated sid in error path.
...
Michael
(This used to be commit 2a0585d309
)
2007-12-18 16:33:35 +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
Günther Deschner
0439fdd777
Replace "unknown" with access_mask when calling samr_CreateUser2().
...
Guenther
(This used to be commit cfc6e7a2e6
)
2007-12-11 15:26:09 +01:00
Jeremy Allison
30191d1a57
RIP BOOL. Convert BOOL -> bool. I found a few interesting
...
bugs in various places whilst doing this (places that assumed
BOOL == int). I also need to fix the Samba4 pidl generation
(next checkin).
Jeremy.
(This used to be commit f35a266b3c
)
2007-10-18 17:40:25 -07: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
Michael Adam
c97fe37ea3
r25294: Tidy up callers of unistr2_to_ascii() to pass sizeof(target_area) to
...
the maxeln parameter instead of sizeof(target_area) - 1 (or even
sizeof(fstring) - 1 in some places.
I hope these were really all there were.
Michael
(This used to be commit 9a28be220d
)
2007-10-10 12:30:58 -05:00
Volker Lendecke
87165a81d9
r24167: Fix Coverity ID 365
...
We checked argc>=3 some lines above
(This used to be commit fa385e9f3c
)
2007-10-10 12:29:17 -05:00
Volker Lendecke
d5ca533043
r24068: Fix Coverity id 366 (dead code). We have checked for argc >= 3 above.
...
(This used to be commit b876bca6bc
)
2007-10-10 12:29:01 -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
Jeremy Allison
be8b0685a5
r22589: Make TALLOC_ARRAY consistent across all uses.
...
Jeremy.
(This used to be commit 8968808c3b
)
2007-10-10 12:19:49 -05:00
Michael Adam
992fac30a5
r22489: Add a deletedomgroup command to rpcclient (samr).
...
Corresponding to deletedomuser.
Michael
(This used to be commit 9775de56b8
)
2007-10-10 12:19:38 -05:00
Jeremy Allison
8e00e9d7a6
r21609: Fix memory leaks in error code paths (and one in winbindd_group.c).
...
Patch from Zack Kirsch <zack.kirsch@isilon.com>.
Jeremy.
(This used to be commit df07a662e3
)
2007-10-10 12:18:16 -05:00
Günther Deschner
9918e74984
r21320: Display query_user info level 16 in rpcclient.
...
Guenther
(This used to be commit bc77622134
)
2007-10-10 12:17:56 -05:00
Günther Deschner
52b5ca933b
r21117: Add rpccli_samr_chgpasswd_user to rpcclient for testing.
...
Guenther
(This used to be commit 4036cb5169
)
2007-10-10 12:17:40 -05:00
Jeremy Allison
63609fbb04
r20090: Fix a class of bugs found by James Peach. Ensure
...
we never mix malloc and talloc'ed contexts in the
add_XX_to_array() and add_XX_to_array_unique()
calls. Ensure that these calls always return
False on out of memory, True otherwise and always
check them. Ensure that the relevent parts of
the conn struct and the nt_user_tokens are
TALLOC_DESTROYED not SAFE_FREE'd.
James - this should fix your crash bug in both
branches.
Jeremy.
(This used to be commit 0ffca7559e
)
2007-10-10 12:16:24 -05:00
Günther Deschner
dbcb4b1266
r19355: Add getdispenumindex2 wrapper for rpcclient.
...
Guenther
(This used to be commit 27c35848eb
)
2007-10-10 12:15:31 -05:00
Günther Deschner
fb183ebd92
r19353: Add "timeout" command for rpcclient.
...
Guenther
(This used to be commit 4106a56d3f
)
2007-10-10 12:15:30 -05:00
Günther Deschner
258f7b50dc
r19340: Wait longer then 10 seconds for a samr_query_groupmem lookup to succeed.
...
Guenther
(This used to be commit 37dd019e21
)
2007-10-10 12:15:29 -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
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
Günther Deschner
5cadb91622
r18732: Fix build warning as pointed out by Volker.
...
Guenther
(This used to be commit fccaff3713
)
2007-10-10 12:00:53 -05:00
Jim McDonough
47bb2e1839
r18702: re-enable non-decimal specification of rid
...
(This used to be commit f3ff074046
)
2007-10-10 12:00:49 -05:00
Günther Deschner
5864fb9fc5
r18677: quickly add samr_GetDisplayEnumerationIndex for debugging to rpcclient.
...
Guenther
(This used to be commit bd546edc48
)
2007-10-10 12:00:46 -05:00
Günther Deschner
a812e2d7db
r18619: Add rpcclient helper for samr_querydispinfo2|3 for testing.
...
Guenther
(This used to be commit 1a307954e5
)
2007-10-10 11:52:00 -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
fbdcf2663b
r16945: Sync trunk -> 3.0 for 3.0.24 code. Still need
...
to do the upper layer directories but this is what
everyone is waiting for....
Jeremy.
(This used to be commit 9dafb7f48c
)
2007-10-10 11:19:14 -05:00
Volker Lendecke
8961048d24
r16339: Fix Klocwork ID
...
277 278 (cmd_*)
485 487 488 (ldap.c)
Volker
(This used to be commit 5b1eba76b3
)
2007-10-10 11:17:36 -05:00
Günther Deschner
0fe21ac560
r15442: Add some more client rpc for the querydominfo calls (from samba4 idl).
...
Also return the hostname for the level 6 call (to be consistent with the
server name in level 2).
Guenther
(This used to be commit 41b72e77ae
)
2007-10-10 11:16:44 -05:00
Günther Deschner
20204ab040
r14646: Adding samr querygroup infolevels 2 & 5.
...
Guenther
(This used to be commit 6c4fe819c6
)
2007-10-10 11:15:42 -05:00