/*buffers for outputs*/
char **domains = NULL;
char **names = NULL;
- uint32 *types = NULL;
+ enum SID_NAME_USE *types = NULL;
CacSidInfo *sids_out = NULL;
DOM_SID *unknown_out = NULL;
/*buffers for outputs*/
DOM_SID *sids = NULL;
- uint32 *types = NULL;
+ enum SID_NAME_USE *types = NULL;
CacSidInfo *sids_out = NULL;
char **unknown_out = NULL;
if(op->in.name && !op->in.sid) {
DOM_SID *user_sid = NULL;
- uint32 *type;
+ enum SID_NAME_USE *type;
/*lookup the SID*/
hnd->status = rpccli_lsa_lookup_names( pipe_hnd, mem_ctx, op->in.pol, 1, (const char **)&(op->in.name), NULL, &user_sid, &type);
/*look up the user's SID if we have to*/
if(op->in.name && !op->in.sid) {
DOM_SID *user_sid = NULL;
- uint32 *type;
+ enum SID_NAME_USE *type;
/*lookup the SID*/
hnd->status = rpccli_lsa_lookup_names( pipe_hnd, mem_ctx, op->in.pol, 1, (const char **)&(op->in.name), NULL, &user_sid, &type);
struct rpc_pipe_client *pipe_hnd = NULL;
DOM_SID *user_sid = NULL;
- uint32 *type = NULL;
+ enum SID_NAME_USE *type = NULL;
if(!hnd) {
return CAC_FAILURE;
struct rpc_pipe_client *pipe_hnd = NULL;
DOM_SID *user_sid = NULL;
- uint32 *type = NULL;
+ enum SID_NAME_USE *type = NULL;
if(!hnd) {
return CAC_FAILURE;
struct rpc_pipe_client *pipe_hnd = NULL;
DOM_SID *user_sid = NULL;
- uint32 *type = NULL;
+ enum SID_NAME_USE *type = NULL;
if(!hnd) {
return CAC_FAILURE;
struct rpc_pipe_client *pipe_hnd = NULL;
DOM_SID *user_sid = NULL;
- uint32 *type = NULL;
+ enum SID_NAME_USE *type = NULL;
if(!hnd) {
return CAC_FAILURE;
{
char **domains = NULL;
char **names = NULL;
- uint32 *types = NULL;
+ enum SID_NAME_USE *types = NULL;
struct rpc_pipe_client *pipe_hnd = find_lsa_pipe_hnd(ipc_cli);
sid_to_string(str, sid);
DOM_SID *sid,
const char *str)
{
- uint32 *types = NULL;
+ enum SID_NAME_USE *types = NULL;
DOM_SID *sids = NULL;
BOOL result = True;
struct rpc_pipe_client *pipe_hnd = find_lsa_pipe_hnd(ipc_cli);
{
NTSTATUS result;
DOM_SID *sids = NULL;
- uint32 *types = NULL;
+ enum SID_NAME_USE *types = NULL;
const char *full_name;
struct rpc_pipe_client *cli;
POLICY_HND lsa_policy;
/* Return rid and type if lookup successful */
sid_copy(sid, &sids[0]);
- *type = (enum SID_NAME_USE)types[0];
+ *type = types[0];
return NT_STATUS_OK;
}
const char **names;
DOM_SID *sids;
TALLOC_CTX *mem_ctx = NULL;
- uint32 *name_types;
+ enum SID_NAME_USE *name_types;
if (!PyArg_ParseTuple(args, "O", &py_names))
return NULL;
TALLOC_CTX *mem_ctx,
POLICY_HND *pol, int num_sids,
const DOM_SID *sids,
- char ***domains, char ***names, uint32 **types)
+ char ***domains,
+ char ***names,
+ enum SID_NAME_USE **types)
{
prs_struct qbuf, rbuf;
LSA_Q_LOOKUP_SIDS q;
goto done;
}
- if (!((*types) = TALLOC_ARRAY(mem_ctx, uint32, num_sids))) {
+ if (!((*types) = TALLOC_ARRAY(mem_ctx, enum SID_NAME_USE, num_sids))) {
DEBUG(0, ("cli_lsa_lookup_sids(): out of memory\n"));
result = NT_STATUS_NO_MEMORY;
goto done;
(*names)[i] = talloc_strdup(mem_ctx, name);
(*domains)[i] = talloc_strdup(mem_ctx, dom_name);
- (*types)[i] = t_names.name[i].sid_name_use;
+ (*types)[i] = (enum SID_NAME_USE)t_names.name[i].sid_name_use;
if (((*names)[i] == NULL) || ((*domains)[i] == NULL)) {
DEBUG(0, ("cli_lsa_lookup_sids(): out of memory\n"));
const char **names,
const char ***dom_names,
DOM_SID **sids,
- uint32 **types)
+ enum SID_NAME_USE **types)
{
prs_struct qbuf, rbuf;
LSA_Q_LOOKUP_NAMES q;
goto done;
}
- if (!((*types = TALLOC_ARRAY(mem_ctx, uint32, num_names)))) {
+ if (!((*types = TALLOC_ARRAY(mem_ctx, enum SID_NAME_USE, num_names)))) {
DEBUG(0, ("cli_lsa_lookup_sids(): out of memory\n"));
result = NT_STATUS_NO_MEMORY;
goto done;
sid_append_rid(sid, dom_rid);
}
- (*types)[i] = t_rids[i].type;
+ (*types)[i] = (enum SID_NAME_USE)t_rids[i].type;
if (dom_names == NULL) {
continue;
DOM_SID *sid, const char *name)
{
POLICY_HND pol;
- uint32 *sid_types;
+ enum SID_NAME_USE *sid_types;
NTSTATUS result;
DOM_SID *sids;
POLICY_HND pol;
NTSTATUS result = NT_STATUS_UNSUCCESSFUL;
DOM_SID *sids;
- uint32 *types;
+ enum SID_NAME_USE *types;
int i;
if (argc == 1) {
DOM_SID *sids;
char **domains;
char **names;
- uint32 *types;
+ enum SID_NAME_USE *types;
int i;
if (argc == 1) {
enum SID_NAME_USE *type)
{
DOM_SID *sids = NULL;
- uint32 *types = NULL;
+ enum SID_NAME_USE *types = NULL;
struct rpc_pipe_client *pipe_hnd;
POLICY_HND lsa_pol;
NTSTATUS result = NT_STATUS_UNSUCCESSFUL;
DOM_SID *alias_sids;
char **domains;
char **names;
- uint32 *types;
+ enum SID_NAME_USE *types;
int i;
result = rpccli_samr_open_alias(pipe_hnd, mem_ctx, domain_pol,
for (i=0; i<num_server_aliases; i++) {
char **names;
char **domains;
- uint32 *types;
+ enum SID_NAME_USE *types;
int j;
struct full_alias *alias = &server_aliases[i];
fstring name)
{
POLICY_HND pol;
- uint32 *sid_types;
+ enum SID_NAME_USE *sid_types;
NTSTATUS result;
char **domains, **names;
DOM_SID *sid, const char *name)
{
POLICY_HND pol;
- uint32 *sid_types;
+ enum SID_NAME_USE *sid_types;
NTSTATUS result;
DOM_SID *sids;
NTSTATUS result = NT_STATUS_OK;
const char **dom_names;
DOM_SID *sids;
- uint32_t *types;
+ enum SID_NAME_USE *types;
ZERO_STRUCT(pol);
struct con_struct *csp = NULL;
char **domains;
char **names;
- uint32 *types;
+ enum SID_NAME_USE *types;
*ppdomain = NULL;
*ppname = NULL;
NTSTATUS nt_status;
struct con_struct *csp = NULL;
DOM_SID *sids = NULL;
- uint32 *types = NULL;
+ enum SID_NAME_USE *types = NULL;
csp = create_cs(ctx, &nt_status);
if (csp == NULL) {
{
char **domains = NULL;
char **names = NULL;
- uint32 *types = NULL;
+ enum SID_NAME_USE *types = NULL;
sid_to_string(str, sid);
/* convert a string to a SID, either numeric or username/group */
static BOOL StringToSid(DOM_SID *sid, const char *str)
{
- uint32 *types = NULL;
+ enum SID_NAME_USE *types = NULL;
DOM_SID *sids = NULL;
BOOL result = True;
{
char **domains = NULL;
char **names = NULL;
- uint32 *types = NULL;
+ enum SID_NAME_USE *types = NULL;
sid_to_string(str, sid);
/* convert a string to a SID, either numeric or username/group */
static BOOL StringToSid(DOM_SID *sid, const char *str)
{
- uint32 *types = NULL;
+ enum SID_NAME_USE *types = NULL;
DOM_SID *sids = NULL;
BOOL result = True;