Christian Ambach
7936fb0ab8
Fix bug #8807 - dcerpc_lsa_lookup_sids_noalloc() crashes when groups has more than 1000 groups
...
Use correct talloc heirarchy.
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-03-13 12:17:31 -07:00
Volker Lendecke
1bf126c0b3
s3: Remove some superfluous ()
2012-03-09 17:21:11 +01:00
Andrew Bartlett
3d15137653
s3-talloc Change TALLOC_ARRAY() to talloc_array()
...
Using the standard macro makes it easier to move code into common, as
TALLOC_ARRAY isn't standard talloc.
2011-06-09 12:40:08 +02:00
Günther Deschner
9824e2e5ee
s3-rpc_client: add and use rpc_client/rpc_client.h.
...
Guenther
2011-04-13 22:23:59 +02:00
Michael Adam
e0681441af
s3:rpc_client: fix argument order of call to lsa_open_policy2 in rpccli_lsa_open_policy2
...
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Tue Mar 29 01:34:28 CEST 2011 on sn-devel-104
2011-03-29 01:34:28 +02:00
Günther Deschner
d2d3ac66ec
s3-rpc_client: actually call lsa_open_policy2() in rpccli_lsa_open_policy2().
...
Found by Sumit Bose <sbose@redhat.com>, thanks!
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Mar 23 20:12:38 CET 2011 on sn-devel-104
2011-03-23 20:12:38 +01:00
Volker Lendecke
70c75b9ddf
s3: Fix a typo
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Mar 11 13:15:00 CET 2011 on sn-devel-104
2011-03-11 13:15:00 +01:00
Andreas Schneider
da9cd736d2
s3-rpc_client: Fixed an uninitialized variable.
...
Signed-off-by: Günther Deschner <gd@samba.org>
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Feb 10 18:32:08 CET 2011 on sn-devel-104
2011-02-10 18:32:08 +01:00
Günther Deschner
5efe6566a0
s3-rpc_client: no need to include ../librpc/gen_ndr/ndr_lsa_c.h anymore.
...
Guenther
2011-01-18 23:54:31 +01:00
Andreas Schneider
93da0aab97
s3-rpc_client: Fixed status check of dcerpc_lsa_lookup_sids_noalloc.
...
Autobuild-User: Andreas Schneider <asn@samba.org>
Autobuild-Date: Mon Jan 17 17:35:50 CET 2011 on sn-devel-104
2011-01-17 17:35:50 +01:00
Andreas Schneider
296a958c57
s3-rpc_client: Fixed return values of dcerpc_lsa_lookup_sids_generic.
2011-01-17 16:50:55 +01:00
Andreas Schneider
3f21b971a9
s3-rpc_client: Fixed the dcerpc_lsa_LookupNames4 client_revision.
...
The spec states that the ClientRevision value MUST be one of the
following: LSA_CLIENT_REVISION_1 or LSA_CLIENT_REVISION_2.
LSA_CLIENT_REVISION_2 means Windows 2000 and newer.
Signed-off-by: Günther Deschner <gd@samba.org>
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Jan 10 19:05:31 CET 2011 on sn-devel-104
2011-01-10 19:05:31 +01:00
Andreas Schneider
b1df95cbc5
s3-rpc_client: Fixed the dcerpc_lsa_LookupNames4 lookup_options.
...
Use the enum value in dcerpc_lsa_LookupNames4 for _lookup_options.
Signed-off-by: Günther Deschner <gd@samba.org>
2011-01-10 18:20:55 +01:00
Andreas Schneider
e02916c453
s3-rpc_client: Fixed the dcerpc_lsa_LookupSids3 client_revision.
...
The spec states that the ClientRevision value MUST be one of the
following: LSA_CLIENT_REVISION_1 or LSA_CLIENT_REVISION_2.
LSA_CLIENT_REVISION_2 means Windows 2000 and newer.
Signed-off-by: Günther Deschner <gd@samba.org>
2011-01-10 18:20:55 +01:00
Andreas Schneider
a53e0831d2
s3-rpc_client: Fixed the dcerpc_lsa_LookupSids3 lookup_options.
...
Use the enum value in dcerpc_lsa_LookupSids3 for _lookup_options.
Signed-off-by: Günther Deschner <gd@samba.org>
2011-01-10 18:20:55 +01:00
Andreas Schneider
fd1fff608c
s3-rpc_client: Added dcerpc_lsa_lookup_names.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2011-01-10 18:20:55 +01:00
Andreas Schneider
c91e756f8d
s3-rpc_client: Added dcerpc_lsa_lookup_sids and dcerpc_lsa_lookup_sids3.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2011-01-10 18:20:55 +01:00
Andreas Schneider
8f14229b28
s3-rpc_client: Added dcerpc_lsa_open_policy2.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2011-01-10 18:20:55 +01:00
Andreas Schneider
2f819505af
s3-rpc_client: Added dcerpc_lsa_open_policy.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2011-01-10 18:20:54 +01:00
Volker Lendecke
8d28ae10d2
s3: Correctly calculate the wbinfo -s result
2010-11-24 16:07:55 +01:00
Andrew Bartlett
f768b32e37
libcli/security Provide a common, top level libcli/security/security.h
...
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
2010-10-12 05:54:10 +00:00
Günther Deschner
102a70e809
s3-util: use shared dom_sid_dup.
...
Guenther
2010-09-20 14:05:07 -07:00
Günther Deschner
e978a3d3f4
s3-lsa: separate out init_lsa headers.
...
Guenther
2010-08-25 22:50:39 +02:00
Andreas Schneider
30d25210a9
s3-rpc_client: Use the right memory context for array elements.
2010-07-05 15:59:05 +02:00
Andrew Bartlett
cba7f8b827
s3:dom_sid Global replace of DOM_SID with struct dom_sid
...
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>
2010-05-21 10:39:59 +02:00
Günther Deschner
230b880d14
s3-rpc_client: move protos to cli_lsarpc.h
...
Guenther
2010-05-18 21:42:41 +02:00
Günther Deschner
3d679a3b5f
s3-rpc: Avoid including every pipe's client and server stubs everywhere in samba.
...
Guenther
2009-11-26 20:03:17 +01:00
Volker Lendecke
92a16b91e8
fix bogus "out of memory" winbind msg
...
Signed-off-by: Michael Adam <obnox@samba.org>
2009-11-13 11:36:06 +01:00
Günther Deschner
a4b5c792c5
s3-rpc_client: fix non initialized structure in rpccli_lsa_lookup_sids_noalloc.
...
Guenther
2009-09-18 21:32:45 +02:00
Günther Deschner
2f9adf04e4
s3-rpc_client: add rpccli_lsa_lookup_sids3 wrapper.
...
Guenther
2009-09-14 06:49:58 +02:00
Günther Deschner
ff968712ba
s3-rpc_client: add rpccli_lsa_lookup_names4 wrapper.
...
Guenther
2009-09-14 06:49:58 +02:00
Günther Deschner
531af136f9
s3: remove POLICY_HND.
...
Guenther
2009-03-18 23:22:29 +01:00
Günther Deschner
e2fa47a04c
s3-lsa: avoid all init_lsa* functions.
...
Guenther
2009-01-06 16:02:13 +01:00
Volker Lendecke
41525152f5
Remove some fully outdated sample code
...
(This used to be commit 0df0e81784
)
2008-07-21 14:36:30 +02:00
Volker Lendecke
9048cafbea
Move srv_name_slash from cli_state to rpc_pipe_client
...
(This used to be commit a9061e52e1
)
2008-04-20 00:14:13 +02:00
Günther Deschner
dc2274819e
Fix rpccli_lsa_lookup_sids_noalloc.
...
When looking up e.g. a trusted doamin account, there is just no name.
Michael, please check.
Guenther
(This used to be commit ea3cfadc25
)
2008-04-03 00:27:02 +02:00
Günther Deschner
fd62e5688b
Use existing srv_name_slash.
...
Guenther
(This used to be commit 5f2b3145fc
)
2008-03-12 16:35:41 +01:00
Volker Lendecke
03451a516a
Fix coverity ID 525, 526, 527, 528, 529 and 530
...
Upon failure to allocate one of the arrays, further down the TALLOC_FREE would
have looked at the variables given to it without initizalizing.
(This used to be commit 6cac312731
)
2008-03-05 22:36:18 +01:00
Günther Deschner
7269a504fd
Add my copyright.
...
Guenther
(This used to be commit d078a87571
)
2008-02-27 19:38:48 +01:00
Günther Deschner
d9a465b8df
Use rpccli_lsa_LookupSids() in rpccli_lsa_lookup_sids_noalloc().
...
Guenther
(This used to be commit b62eddbc4e
)
2008-02-18 10:03:49 +01:00
Günther Deschner
e655a10736
Use rpccli_lsa_LookupNames() inside of rpccli_lsa_lookup_names.
...
Guenther
(This used to be commit 5c0a2d697f
)
2008-02-18 10:01:24 +01:00
Günther Deschner
ad5794ad5c
Remove unused marshalling for LSA_REMOVE_ACCT_RIGHTS.
...
Guenther
(This used to be commit 80e39330bf
)
2008-02-14 15:29:51 +01:00
Günther Deschner
d64ae7328a
Remove unused marshalling for LSA_ENUM_ACCT_RIGHTS.
...
Guenther
(This used to be commit 34c0e64026
)
2008-02-14 15:11:35 +01:00
Günther Deschner
25bc71f117
Remove unused marshalling for LSA_ADD_ACCT_RIGHTS.
...
Guenther
(This used to be commit 15b97d1aaf
)
2008-02-14 14:40:27 +01:00
Günther Deschner
c6cd8ec909
Remove unused marshalling for LSA_LOOKUP_PRIV_VALUE.
...
Guenther
(This used to be commit 8125d8557f
)
2008-02-14 13:53:27 +01:00
Günther Deschner
341e5ea3eb
Remove unused marshalling for LSA_ENUMPRIVSACCOUNT.
...
Guenther
(This used to be commit 004598bc13
)
2008-02-14 13:13:09 +01:00
Günther Deschner
8f7cc004ff
Remove unused marshalling for LSA_ENUM_ACCOUNTS.
...
Guenther
(This used to be commit 8c476ad516
)
2008-02-14 01:34:34 +01:00
Günther Deschner
2600cb6b9b
Remove unused marshalling for LSA_ENUM_TRUST_DOM.
...
Guenther
(This used to be commit 90b07714dd
)
2008-02-13 00:37:19 +01:00
Günther Deschner
76f654e21c
Remove unused marshalling for LSA_PRIV_GET_DISPNAME.
...
Guenther
(This used to be commit d853f4f263
)
2008-02-11 19:16:05 +01:00
Günther Deschner
0e4088e626
Let rpccli_lsa_open_policy[2] be convenience wrappers around their pidl equivalents.
...
Guenther
(This used to be commit 4ca3b1c02e
)
2008-02-11 17:50:18 +01:00