diff options
author | Luke Leighton <lkcl@samba.org> | 1997-10-27 19:00:38 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1997-10-27 19:00:38 +0000 |
commit | aee261e784915df4283e3bffaadac54ee36ec49e (patch) | |
tree | 3a2ef98c607713b82ac78321d45910c9ce2692f9 /source3/include | |
parent | 6fc83d5c36ab92a832d32ebbeab5111086826e10 (diff) | |
download | samba-aee261e784915df4283e3bffaadac54ee36ec49e.tar.gz samba-aee261e784915df4283e3bffaadac54ee36ec49e.tar.bz2 samba-aee261e784915df4283e3bffaadac54ee36ec49e.zip |
added LSA_Q_CLOSE and LSA_R_CLOSE (also to smb.h). implemented in smbclient.
updated Query Info Policy to report domain name and domain sid for info levels
3 and 5.
fixed bug in dom_sid_to_string (idauths decoded wrong). fixed bug in DOM_SID:
subauths are 32 bit not 16.
(This used to be commit 2f3cca23e2465ca6a3a31fda005af1fd74f6af92)
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/proto.h | 4 | ||||
-rw-r--r-- | source3/include/smb.h | 21 |
2 files changed, 23 insertions, 2 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index e0d5d31f40..669ed5fd8d 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -380,6 +380,10 @@ char* lsa_io_q_open_pol(BOOL io, LSA_Q_OPEN_POL *r_q, char *q, char *base, int a char* lsa_io_r_open_pol(BOOL io, LSA_R_OPEN_POL *r_p, char *q, char *base, int align, int depth); void make_q_query(LSA_Q_QUERY_INFO *q_q, LSA_POL_HND *hnd, uint16 info_class); char* lsa_io_q_query(BOOL io, LSA_Q_QUERY_INFO *q_q, char *q, char *base, int align, int depth); +void make_q_close(LSA_Q_CLOSE *q_c, LSA_POL_HND *hnd); +char* lsa_io_q_close(BOOL io, LSA_Q_CLOSE *q_c, char *q, char *base, int align, int depth); +void make_r_close(LSA_R_CLOSE *q_r, LSA_POL_HND *hnd); +char* lsa_io_r_close(BOOL io, LSA_R_CLOSE *r_c, char *q, char *base, int align, int depth); char* lsa_io_r_query(BOOL io, LSA_R_QUERY_INFO *r_q, char *q, char *base, int align, int depth); char* lsa_io_q_lookup_sids(BOOL io, LSA_Q_LOOKUP_SIDS *q_s, char *q, char *base, int align, int depth); char* lsa_io_r_lookup_sids(BOOL io, LSA_R_LOOKUP_SIDS *r_s, char *q, char *base, int align, int depth); diff --git a/source3/include/smb.h b/source3/include/smb.h index e9734f379d..057a0b7550 100644 --- a/source3/include/smb.h +++ b/source3/include/smb.h @@ -364,7 +364,7 @@ typedef struct sid_info uint8 sid_rev_num; /* SID revision number */ uint8 num_auths; /* number of sub-authorities */ uint8 id_auth[6]; /* Identifier Authority */ - uint16 sub_auths[MAXSUBAUTHS]; /* pointer to sub-authorities. */ + uint32 sub_auths[MAXSUBAUTHS]; /* pointer to sub-authorities. */ } DOM_SID; @@ -632,10 +632,27 @@ typedef struct lsa_r_query_info } dom; - uint32 status; /* return code */ + uint32 status; /* return code */ } LSA_R_QUERY_INFO; +/* LSA_Q_CLOSE */ +typedef struct lsa_q_close_info +{ + LSA_POL_HND pol; /* policy handle */ + +} LSA_Q_CLOSE; + +/* LSA_R_CLOSE */ +typedef struct lsa_r_close_info +{ + LSA_POL_HND pol; /* policy handle. should be all zeros. */ + + uint32 status; /* return code */ + +} LSA_R_CLOSE; + + #define MAX_REF_DOMAINS 10 /* DOM_R_REF */ |