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>
Tue, 8 Jun 2010 01:46:50 +0000 (11:46 +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..9276758b1f6a6af63d79a99c364728076cc6fa9c 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 9b3c24d53e2e96022c6f0e803af3a2321bf07054..688df59b0454830b53b2fc59c2cdb7dd7f41b6e3 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  */