mirror of
https://github.com/samba-team/samba.git
synced 2025-11-22 16:23:49 +03:00
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 commit is contained in:
committed by
Gerald (Jerry) Carter
parent
2047e2a985
commit
3da9f80c28
@@ -248,20 +248,6 @@ typedef uint64_t NTTIME;
|
||||
|
||||
#define SID_MAX_SIZE ((size_t)(8+(MAXSUBAUTHS*4)))
|
||||
|
||||
/* SID Types */
|
||||
enum SID_NAME_USE {
|
||||
SID_NAME_USE_NONE = 0,
|
||||
SID_NAME_USER = 1, /* user */
|
||||
SID_NAME_DOM_GRP, /* domain group */
|
||||
SID_NAME_DOMAIN, /* domain sid */
|
||||
SID_NAME_ALIAS, /* local group */
|
||||
SID_NAME_WKN_GRP, /* well-known group */
|
||||
SID_NAME_DELETED, /* deleted account: needed for c2 rating */
|
||||
SID_NAME_INVALID, /* invalid account */
|
||||
SID_NAME_UNKNOWN, /* unknown sid type */
|
||||
SID_NAME_COMPUTER /* sid for a computer */
|
||||
};
|
||||
|
||||
#define LOOKUP_NAME_ISOLATED 1 /* Look up unqualified names */
|
||||
#define LOOKUP_NAME_REMOTE 2 /* Ask others */
|
||||
#define LOOKUP_NAME_ALL (LOOKUP_NAME_ISOLATED|LOOKUP_NAME_REMOTE)
|
||||
@@ -287,8 +273,14 @@ typedef struct dom_sid {
|
||||
uint32 sub_auths[MAXSUBAUTHS];
|
||||
} DOM_SID;
|
||||
|
||||
#define dom_sid2 dom_sid
|
||||
#define dom_sid28 dom_sid
|
||||
|
||||
#include "librpc/ndr/misc.h"
|
||||
#include "librpc/ndr/security.h"
|
||||
#include "librpc/ndr/libndr.h"
|
||||
#include "librpc/gen_ndr/unixinfo.h"
|
||||
#include "librpc/gen_ndr/lsa.h"
|
||||
|
||||
struct lsa_dom_info {
|
||||
BOOL valid;
|
||||
@@ -300,7 +292,7 @@ struct lsa_dom_info {
|
||||
|
||||
struct lsa_name_info {
|
||||
uint32 rid;
|
||||
enum SID_NAME_USE type;
|
||||
enum lsa_SidType type;
|
||||
const char *name;
|
||||
int dom_idx;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user