5 void ads_msgfree(ADS_STRUCT
*ads
, LDAPMessage
*msg
);
6 char *ads_get_dn(ADS_STRUCT
*ads
, TALLOC_CTX
*mem_ctx
, LDAPMessage
*msg
);
8 char *ads_pull_string(ADS_STRUCT
*ads
, TALLOC_CTX
*mem_ctx
, LDAPMessage
*msg
,
10 char **ads_pull_strings(ADS_STRUCT
*ads
, TALLOC_CTX
*mem_ctx
,
11 LDAPMessage
*msg
, const char *field
,
13 char **ads_pull_strings_range(ADS_STRUCT
*ads
,
15 LDAPMessage
*msg
, const char *field
,
16 char **current_strings
,
17 const char **next_attribute
,
20 bool ads_pull_uint32(ADS_STRUCT
*ads
, LDAPMessage
*msg
, const char *field
,
22 bool ads_pull_guid(ADS_STRUCT
*ads
, LDAPMessage
*msg
, struct GUID
*guid
);
23 bool ads_pull_sid(ADS_STRUCT
*ads
, LDAPMessage
*msg
, const char *field
,
25 int ads_pull_sids(ADS_STRUCT
*ads
, TALLOC_CTX
*mem_ctx
,
26 LDAPMessage
*msg
, const char *field
, struct dom_sid
**sids
);
27 bool ads_pull_sd(ADS_STRUCT
*ads
, TALLOC_CTX
*mem_ctx
,
28 LDAPMessage
*msg
, const char *field
, struct security_descriptor
**sd
);
29 char *ads_pull_username(ADS_STRUCT
*ads
, TALLOC_CTX
*mem_ctx
,
31 int ads_pull_sids_from_extendeddn(ADS_STRUCT
*ads
,
35 enum ads_extended_dn_flags flags
,
36 struct dom_sid
**sids
);
38 ADS_STATUS
ads_find_machine_acct(ADS_STRUCT
*ads
, LDAPMessage
**res
,
40 ADS_STATUS
ads_find_printer_on_server(ADS_STRUCT
*ads
, LDAPMessage
**res
,
42 const char *servername
);
43 ADS_STATUS
ads_find_printers(ADS_STRUCT
*ads
, LDAPMessage
**res
);
44 ADS_STATUS
ads_find_user_acct(ADS_STRUCT
*ads
, LDAPMessage
**res
,
47 ADS_STATUS
ads_do_search(ADS_STRUCT
*ads
, const char *bind_path
, int scope
,
49 const char **attrs
, LDAPMessage
**res
);
50 ADS_STATUS
ads_search(ADS_STRUCT
*ads
, LDAPMessage
**res
,
51 const char *expr
, const char **attrs
);
52 ADS_STATUS
ads_search_dn(ADS_STRUCT
*ads
, LDAPMessage
**res
,
53 const char *dn
, const char **attrs
);
54 ADS_STATUS
ads_do_search_all_args(ADS_STRUCT
*ads
, const char *bind_path
,
55 int scope
, const char *expr
,
56 const char **attrs
, void *args
,
58 ADS_STATUS
ads_do_search_all(ADS_STRUCT
*ads
, const char *bind_path
,
59 int scope
, const char *expr
,
60 const char **attrs
, LDAPMessage
**res
);
61 ADS_STATUS
ads_do_search_retry(ADS_STRUCT
*ads
, const char *bind_path
,
64 const char **attrs
, LDAPMessage
**res
);
65 ADS_STATUS
ads_search_retry(ADS_STRUCT
*ads
, LDAPMessage
**res
,
66 const char *expr
, const char **attrs
);
67 ADS_STATUS
ads_search_retry_dn(ADS_STRUCT
*ads
, LDAPMessage
**res
,
70 ADS_STATUS
ads_search_retry_extended_dn_ranged(ADS_STRUCT
*ads
, TALLOC_CTX
*mem_ctx
,
73 enum ads_extended_dn_flags flags
,
76 ADS_STATUS
ads_search_retry_sid(ADS_STRUCT
*ads
, LDAPMessage
**res
,
77 const struct dom_sid
*sid
,
81 LDAPMessage
*ads_first_entry(ADS_STRUCT
*ads
, LDAPMessage
*res
);
82 LDAPMessage
*ads_next_entry(ADS_STRUCT
*ads
, LDAPMessage
*res
);
83 LDAPMessage
*ads_first_message(ADS_STRUCT
*ads
, LDAPMessage
*res
);
84 LDAPMessage
*ads_next_message(ADS_STRUCT
*ads
, LDAPMessage
*res
);
85 void ads_process_results(ADS_STRUCT
*ads
, LDAPMessage
*res
,
86 bool (*fn
)(ADS_STRUCT
*,char *, void **, void *),
88 void ads_dump(ADS_STRUCT
*ads
, LDAPMessage
*res
);
90 struct GROUP_POLICY_OBJECT
;
91 ADS_STATUS
ads_parse_gpo(ADS_STRUCT
*ads
,
95 struct GROUP_POLICY_OBJECT
*gpo
);
96 ADS_STATUS
ads_search_retry_dn_sd_flags(ADS_STRUCT
*ads
, LDAPMessage
**res
,
100 ADS_STATUS
ads_do_search_all_sd_flags(ADS_STRUCT
*ads
, const char *bind_path
,
101 int scope
, const char *expr
,
102 const char **attrs
, uint32 sd_flags
,
104 ADS_STATUS
ads_get_tokensids(ADS_STRUCT
*ads
,
107 struct dom_sid
*user_sid
,
108 struct dom_sid
*primary_group_sid
,
109 struct dom_sid
**sids
,
111 ADS_STATUS
ads_get_joinable_ous(ADS_STRUCT
*ads
,