s3:auth Enable make_auth_context_subsystem to be replaced in s3compat
authorAndrew Bartlett <abartlet@samba.org>
Mon, 17 May 2010 10:47:59 +0000 (20:47 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 3 Jun 2010 01:02:36 +0000 (11:02 +1000)
This allows s3compat to replace this with a function that only directs
authentication to the source4 auth subsystem.

Andrew Bartlett

source3/auth/auth.c
source3/include/proto.h

index ad857511af2c1a8ac1ad4412345618aacd2c7a47..1e1481dddf2260bc1313e3542f4027fd88c97406 100644 (file)
@@ -415,7 +415,7 @@ bool load_auth_module(struct auth_context *auth_context,
  Make a auth_info struct for the auth subsystem
 ***************************************************************************/
 
-static NTSTATUS make_auth_context_text_list(struct auth_context **auth_context, char **text_list) 
+NTSTATUS make_auth_context_text_list(struct auth_context **auth_context, char **text_list) 
 {
        auth_methods *list = NULL;
        auth_methods *t = NULL;
@@ -440,6 +440,7 @@ static NTSTATUS make_auth_context_text_list(struct auth_context **auth_context,
        return nt_status;
 }
 
+#ifndef ENABLE_S3COMPAT
 /***************************************************************************
  Make a auth_context struct for the auth subsystem
 ***************************************************************************/
@@ -521,6 +522,7 @@ NTSTATUS make_auth_context_subsystem(struct auth_context **auth_context)
        TALLOC_FREE(auth_method_list);
        return nt_status;
 }
+#endif
 
 /***************************************************************************
  Make a auth_info struct with a fixed challenge
index 91c4de2af73c705bd3d3497c9987a91e4b12f3fd..8a482f71a330cff850f645506ed4b108af4f7d5b 100644 (file)
@@ -31,6 +31,7 @@ bool load_auth_module(struct auth_context *auth_context,
                      const char *module, auth_methods **ret) ;
 NTSTATUS make_auth_context_subsystem(struct auth_context **auth_context) ;
 NTSTATUS make_auth_context_fixed(struct auth_context **auth_context, uchar chal[8]) ;
+NTSTATUS make_auth_context_text_list(struct auth_context **auth_context, char **text_list);
 
 /* The following definitions come from auth/auth_builtin.c  */