s3: Add user_auth_info->use_pw_nt_hash
authorVolker Lendecke <vl@samba.org>
Mon, 11 Jun 2012 12:01:08 +0000 (14:01 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 12 Jun 2012 08:48:15 +0000 (10:48 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/include/auth_info.h
source3/lib/util_cmdline.c

index 6b5105d51ff5bfd2bb69c809bad620efb68495f6..d8d8317c88f0bdbd6754e379925eceb9ab4da64a 100644 (file)
@@ -31,6 +31,7 @@ struct user_auth_info {
        bool use_machine_account;
        bool fallback_after_kerberos;
        bool use_ccache;
+       bool use_pw_nt_hash;
 };
 
 struct user_auth_info *user_auth_info_init(TALLOC_CTX *mem_ctx);
@@ -49,6 +50,10 @@ int get_cmdline_auth_info_signing_state(const struct user_auth_info *auth_info);
 void set_cmdline_auth_info_use_ccache(struct user_auth_info *auth_info,
                                      bool b);
 bool get_cmdline_auth_info_use_ccache(const struct user_auth_info *auth_info);
+void set_cmdline_auth_info_use_pw_nt_hash(struct user_auth_info *auth_info,
+                                         bool b);
+bool get_cmdline_auth_info_use_pw_nt_hash(
+       const struct user_auth_info *auth_info);
 void set_cmdline_auth_info_use_kerberos(struct user_auth_info *auth_info,
                                        bool b);
 bool get_cmdline_auth_info_use_kerberos(const struct user_auth_info *auth_info);
index 1d2c7256eabde73e952e0b94f149955b1806017b..440384608bcdd27c4acced3fddfb97cce7a468c8 100644 (file)
@@ -136,6 +136,18 @@ bool get_cmdline_auth_info_use_ccache(const struct user_auth_info *auth_info)
        return auth_info->use_ccache;
 }
 
+void set_cmdline_auth_info_use_pw_nt_hash(struct user_auth_info *auth_info,
+                                         bool b)
+{
+       auth_info->use_pw_nt_hash = b;
+}
+
+bool get_cmdline_auth_info_use_pw_nt_hash(
+       const struct user_auth_info *auth_info)
+{
+       return auth_info->use_pw_nt_hash;
+}
+
 void set_cmdline_auth_info_use_kerberos(struct user_auth_info *auth_info,
                                        bool b)
 {