Add a few more safety catches to the mkrelease.sh script.
[jelmer/samba4-debian.git] / source / auth / auth.h
index c694141373d965a00860d14875aaf3a08c1e0547..ff7132c3ffc3cb6e1d2ec3a701f75224177fcfa1 100644 (file)
@@ -26,6 +26,7 @@ extern const char *user_attrs[];
 union netr_Validation;
 struct netr_SamBaseInfo;
 struct netr_SamInfo3;
+struct loadparm_context;
 
 /* modules can use the following to determine if the interface has changed
  * please increment the version number after each interface change
@@ -56,7 +57,7 @@ struct auth_usersupplied_info
 
        uint32_t logon_parameters;
 
-       BOOL mapped_state;
+       bool mapped_state;
        /* the values the client gives us */
        struct {
                const char *account_name;
@@ -113,14 +114,7 @@ struct auth_serversupplied_info
 
        uint32_t acct_flags;
 
-       BOOL authenticated;
-};
-
-struct auth_session_info {
-       struct security_token *security_token;
-       struct auth_serversupplied_info *server_info;
-       DATA_BLOB session_key;
-       struct cli_credentials *credentials;
+       bool authenticated;
 };
 
 struct auth_method_context;
@@ -161,7 +155,7 @@ struct auth_context {
                /* Who set this up in the first place? */ 
                const char *set_by;
 
-               BOOL may_be_modified;
+               bool may_be_modified;
 
                DATA_BLOB data; 
        } challenge;
@@ -174,6 +168,9 @@ struct auth_context {
 
        /* the messaging context which can be used by backends */
        struct messaging_context *msg_ctx;
+
+       /* loadparm context */
+       struct loadparm_context *lp_ctx;
 };
 
 /* this structure is used by backends to determine the size of some critical types */
@@ -191,6 +188,8 @@ struct auth_critical_sizes {
                           const struct auth_usersupplied_info *user_info_in,
                           const struct auth_usersupplied_info **user_info_encrypted);
 
+#include "auth/session.h"
+#include "auth/system_session_proto.h"
 #include "auth/auth_proto.h"
 
 #endif /* _SMBAUTH_H_ */