Changeset 740 for vendor/current/source4/auth/session.h
- Timestamp:
- Nov 14, 2012, 12:59:34 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source4/auth/session.h
r414 r740 22 22 #define _SAMBA_AUTH_SESSION_H 23 23 24 struct auth_session_info { 25 struct security_token *security_token; 26 struct auth_serversupplied_info *server_info; 27 DATA_BLOB session_key; 28 struct cli_credentials *credentials; 29 }; 30 24 #include "librpc/gen_ndr/security.h" 31 25 #include "librpc/gen_ndr/netlogon.h" 26 #include "librpc/gen_ndr/auth.h" 32 27 33 28 struct tevent_context; 34 29 struct ldb_context; 30 struct ldb_dn; 35 31 /* Create a security token for a session SYSTEM (the most 36 32 * trusted/prvilaged account), including the local machine account as 37 33 * the off-host credentials */ 38 struct auth_session_info *system_session( TALLOC_CTX *mem_ctx,struct loadparm_context *lp_ctx) ;34 struct auth_session_info *system_session(struct loadparm_context *lp_ctx) ; 39 35 40 /* 41 * Create a system session, but with anonymous credentials (so we do 42 * not need to open secrets.ldb) 36 NTSTATUS auth_anonymous_user_info_dc(TALLOC_CTX *mem_ctx, 37 const char *netbios_name, 38 struct auth_user_info_dc **interim_info); 39 NTSTATUS auth_generate_session_info(TALLOC_CTX *mem_ctx, 40 struct loadparm_context *lp_ctx, /* Optional, if you don't want privilages */ 41 struct ldb_context *sam_ctx, /* Optional, if you don't want local groups */ 42 struct auth_user_info_dc *interim_info, 43 uint32_t session_info_flags, 44 struct auth_session_info **session_info); 45 NTSTATUS auth_anonymous_session_info(TALLOC_CTX *parent_ctx, 46 struct loadparm_context *lp_ctx, 47 struct auth_session_info **session_info); 48 struct auth_session_info *auth_session_info_from_transport(TALLOC_CTX *mem_ctx, 49 struct auth_session_info_transport *session_info_transport, 50 struct loadparm_context *lp_ctx, 51 const char **reason); 52 NTSTATUS auth_session_info_transport_from_session(TALLOC_CTX *mem_ctx, 53 struct auth_session_info *session_info, 54 struct tevent_context *event_ctx, 55 struct loadparm_context *lp_ctx, 56 struct auth_session_info_transport **transport_out); 57 58 /* Produce a session_info for an arbitary DN or principal in the local 59 * DB, assuming the local DB holds all the groups 60 * 61 * Supply either a principal or a DN 43 62 */ 44 struct auth_session_info *system_session_anon(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx); 45 46 47 NTSTATUS auth_anonymous_server_info(TALLOC_CTX *mem_ctx, 48 const char *netbios_name, 49 struct auth_serversupplied_info **_server_info) ; 50 NTSTATUS auth_generate_session_info(TALLOC_CTX *mem_ctx, 51 struct tevent_context *event_ctx, 52 struct loadparm_context *lp_ctx, 53 struct auth_serversupplied_info *server_info, 54 struct auth_session_info **_session_info) ; 55 56 NTSTATUS auth_anonymous_session_info(TALLOC_CTX *parent_ctx, 57 struct tevent_context *ev_ctx, 58 struct loadparm_context *lp_ctx, 59 struct auth_session_info **_session_info); 63 NTSTATUS authsam_get_session_info_principal(TALLOC_CTX *mem_ctx, 64 struct loadparm_context *lp_ctx, 65 struct ldb_context *sam_ctx, 66 const char *principal, 67 struct ldb_dn *user_dn, 68 uint32_t session_info_flags, 69 struct auth_session_info **session_info); 60 70 61 71 struct auth_session_info *anonymous_session(TALLOC_CTX *mem_ctx, 62 struct tevent_context *event_ctx,63 72 struct loadparm_context *lp_ctx); 64 73
Note:
See TracChangeset
for help on using the changeset viewer.