1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-16 00:23:52 +03:00

added the LSA privileges server backend stubs. Right now they just log

what was requested.
This commit is contained in:
Andrew Tridgell
-
parent 203959f1c2
commit 64ac6c2bcb
4 changed files with 209 additions and 4 deletions

View File

@@ -2301,6 +2301,19 @@ BOOL lsa_io_r_enum_acct_rights(const char *desc, LSA_R_ENUM_ACCT_RIGHTS *r_c, pr
return True;
}
/*******************************************************************
Inits an LSA_R_ENUM_ACCT_RIGHTS structure.
********************************************************************/
void init_r_enum_acct_rights(LSA_R_ENUM_ACCT_RIGHTS *q_r,
uint32 count,
const char **rights)
{
DEBUG(5, ("init_r_enum_acct_rights\n"));
q_r->count = count;
init_unistr2_array(&q_r->rights, count, rights);
}
/*******************************************************************
Inits an LSA_Q_ADD_ACCT_RIGHTS structure.
@@ -2316,7 +2329,6 @@ void init_q_add_acct_rights(LSA_Q_ADD_ACCT_RIGHTS *q_q,
q_q->pol = *hnd;
init_dom_sid2(&q_q->sid, sid);
init_unistr2_array(&q_q->rights, count, rights);
q_q->count = 5;
}
@@ -2357,6 +2369,15 @@ BOOL lsa_io_r_add_acct_rights(const char *desc, LSA_R_ADD_ACCT_RIGHTS *r_c, prs_
return True;
}
/*******************************************************************
Inits an LSA_R_ADD_ACCT_RIGHTS structure.
********************************************************************/
void init_r_add_acct_rights(LSA_R_ADD_ACCT_RIGHTS *q_r)
{
DEBUG(5, ("init_r_add_acct_rights\n"));
/* oh what a silly function! */
}
/*******************************************************************
Inits an LSA_Q_REMOVE_ACCT_RIGHTS structure.
@@ -2417,3 +2438,11 @@ BOOL lsa_io_r_remove_acct_rights(const char *desc, LSA_R_REMOVE_ACCT_RIGHTS *r_c
return True;
}
/*******************************************************************
Inits an LSA_R_REMOVE_ACCT_RIGHTS structure.
********************************************************************/
void init_r_remove_acct_rights(LSA_R_REMOVE_ACCT_RIGHTS *q_r)
{
DEBUG(5, ("init_r_remove_acct_rights\n"));
}