Ignore:
Timestamp:
Nov 14, 2012, 12:59:34 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to 3.6.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/source4/auth/session.h

    r414 r740  
    2222#define _SAMBA_AUTH_SESSION_H
    2323
    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"
    3125#include "librpc/gen_ndr/netlogon.h"
     26#include "librpc/gen_ndr/auth.h"
    3227
    3328struct tevent_context;
    34 
     29struct ldb_context;
     30struct ldb_dn;
    3531/* Create a security token for a session SYSTEM (the most
    3632 * trusted/prvilaged account), including the local machine account as
    3733 * the off-host credentials */
    38 struct auth_session_info *system_session(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx) ;
     34struct auth_session_info *system_session(struct loadparm_context *lp_ctx) ;
    3935
    40 /*
    41  * Create a system session, but with anonymous credentials (so we do
    42  * not need to open secrets.ldb)
     36NTSTATUS auth_anonymous_user_info_dc(TALLOC_CTX *mem_ctx,
     37                                             const char *netbios_name,
     38                                             struct auth_user_info_dc **interim_info);
     39NTSTATUS 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);
     45NTSTATUS auth_anonymous_session_info(TALLOC_CTX *parent_ctx,
     46                                     struct loadparm_context *lp_ctx,
     47                                     struct auth_session_info **session_info);
     48struct 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);
     52NTSTATUS 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
    4362 */
    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);
     63NTSTATUS 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);
    6070
    6171struct auth_session_info *anonymous_session(TALLOC_CTX *mem_ctx,
    62                                             struct tevent_context *event_ctx,
    6372                                            struct loadparm_context *lp_ctx);
    6473
Note: See TracChangeset for help on using the changeset viewer.