Changeset 740 for vendor/current/source3/winbindd/winbindd.h
- Timestamp:
- Nov 14, 2012, 12:59:34 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source3/winbindd/winbindd.h
r594 r740 28 28 #include "librpc/gen_ndr/wbint.h" 29 29 30 #include "talloc_dict.h" 31 #include "smb_ldap.h" 32 33 #include "../lib/util/tevent_ntstatus.h" 34 30 35 #ifdef HAVE_LIBNSCD 31 36 #include <libnscd.h> … … 42 47 43 48 struct sid_ctr { 44 DOM_SID*sid;49 struct dom_sid *sid; 45 50 bool finished; 46 51 const char *domain; … … 93 98 fstring homedir; /* User Home Directory */ 94 99 fstring shell; /* User Login Shell */ 95 DOM_SIDuser_sid; /* NT user and primary group SIDs */96 DOM_SIDgroup_sid;100 struct dom_sid user_sid; /* NT user and primary group SIDs */ 101 struct dom_sid group_sid; 97 102 }; 98 103 … … 132 137 int sock; 133 138 struct tevent_queue *queue; 134 struct rpc_pipe_client *rpccli;139 struct dcerpc_binding_handle *binding_handle; 135 140 136 141 struct timed_event *lockout_policy_event; … … 146 151 fstring alt_name; /* alt Domain name, if any (FQDN for ADS) */ 147 152 fstring forest_name; /* Name of the AD forest we're in */ 148 DOM_SIDsid; /* SID for this domain */153 struct dom_sid sid; /* SID for this domain */ 149 154 uint32 domain_flags; /* Domain flags from netlogon.h */ 150 155 uint32 domain_type; /* Domain type from netlogon.h */ … … 156 161 bool internal; /* BUILTIN and member SAM */ 157 162 bool online; /* is this domain available ? */ 158 time_t startup_time; /* When we set "startup" true. */163 time_t startup_time; /* When we set "startup" true. monotonic clock */ 159 164 bool startup; /* are we in the first 30 seconds after startup_time ? */ 160 165 … … 205 210 /* The child pid we're talking to */ 206 211 207 struct winbindd_child child;212 struct winbindd_child *children; 208 213 209 214 /* Callback we use to try put us back online. */ … … 215 220 216 221 struct winbindd_domain *prev, *next; 222 }; 223 224 struct wb_acct_info { 225 fstring acct_name; /* account name */ 226 fstring acct_desc; /* account name */ 227 uint32_t rid; /* domain-relative RID */ 217 228 }; 218 229 … … 234 245 TALLOC_CTX *mem_ctx, 235 246 uint32 *num_entries, 236 struct acct_info **info);247 struct wb_acct_info **info); 237 248 238 249 /* get a list of domain local groups */ … … 240 251 TALLOC_CTX *mem_ctx, 241 252 uint32 *num_entries, 242 struct acct_info **info);253 struct wb_acct_info **info); 243 254 244 255 /* convert one user or group name to a sid */ … … 248 259 const char *name, 249 260 uint32_t flags, 250 DOM_SID*sid,261 struct dom_sid *sid, 251 262 enum lsa_SidType *type); 252 263 … … 254 265 NTSTATUS (*sid_to_name)(struct winbindd_domain *domain, 255 266 TALLOC_CTX *mem_ctx, 256 const DOM_SID*sid,267 const struct dom_sid *sid, 257 268 char **domain_name, 258 269 char **name, … … 261 272 NTSTATUS (*rids_to_names)(struct winbindd_domain *domain, 262 273 TALLOC_CTX *mem_ctx, 263 const DOM_SID*domain_sid,274 const struct dom_sid *domain_sid, 264 275 uint32 *rids, 265 276 size_t num_rids, … … 271 282 NTSTATUS (*query_user)(struct winbindd_domain *domain, 272 283 TALLOC_CTX *mem_ctx, 273 const DOM_SID*user_sid,284 const struct dom_sid *user_sid, 274 285 struct wbint_userinfo *user_info); 275 286 … … 279 290 NTSTATUS (*lookup_usergroups)(struct winbindd_domain *domain, 280 291 TALLOC_CTX *mem_ctx, 281 const DOM_SID*user_sid,282 uint32 *num_groups, DOM_SID**user_gids);292 const struct dom_sid *user_sid, 293 uint32 *num_groups, struct dom_sid **user_gids); 283 294 284 295 /* Lookup all aliases that the sids delivered are member of. This is … … 287 298 TALLOC_CTX *mem_ctx, 288 299 uint32 num_sids, 289 const DOM_SID*sids,300 const struct dom_sid *sids, 290 301 uint32 *num_aliases, 291 302 uint32 **alias_rids); … … 294 305 NTSTATUS (*lookup_groupmem)(struct winbindd_domain *domain, 295 306 TALLOC_CTX *mem_ctx, 296 const DOM_SID*group_sid,307 const struct dom_sid *group_sid, 297 308 enum lsa_SidType type, 298 309 uint32 *num_names, 299 DOM_SID **sid_mem, char ***names,310 struct dom_sid **sid_mem, char ***names, 300 311 uint32 **name_types); 301 312 … … 324 335 bool (*init)(void); 325 336 326 bool (*get_sid_from_uid)(uid_t uid, DOM_SID*sid);327 bool (*get_sid_from_gid)(gid_t gid, DOM_SID*sid);328 329 bool (*get_uid_from_sid)( DOM_SID*sid, uid_t *uid);330 bool (*get_gid_from_sid)( DOM_SID*sid, gid_t *gid);337 bool (*get_sid_from_uid)(uid_t uid, struct dom_sid *sid); 338 bool (*get_sid_from_gid)(gid_t gid, struct dom_sid *sid); 339 340 bool (*get_uid_from_sid)(struct dom_sid *sid, uid_t *uid); 341 bool (*get_gid_from_sid)(struct dom_sid *sid, gid_t *gid); 331 342 332 343 /* Called when backend is unloaded */ … … 341 352 const char *domain_name; 342 353 const char *dns_name; 343 DOM_SIDsid;354 struct dom_sid sid; 344 355 uint32 trust_flags; 345 356 uint32 trust_attribs; … … 387 398 #define DOM_SEQUENCE_NONE ((uint32)-1) 388 399 400 #define winbind_event_context server_event_context 401 389 402 #endif /* _WINBINDD_H */
Note:
See TracChangeset
for help on using the changeset viewer.