s4:s3compat Provide make_auth_context_subsystem()
authorAndrew Bartlett <abartlet@samba.org>
Mon, 17 May 2010 11:02:59 +0000 (21:02 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 3 Jun 2010 01:14:11 +0000 (11:14 +1000)
This avoids needing to specify an 'auth methods' in the smb.conf to
run s3compat

Andrew Bartlett

source4/s3compat/s3compat.c

index 997371f0393a4a769593e2f31ab91f24d97ec3aa..fcd9b505f8cd46db5356ee41e6ac780a6354c640 100644 (file)
@@ -66,3 +66,10 @@ _PUBLIC_ void s3compat_smbd_process(void)
        init_guest_info();
        smbd_process();
 }
+
+NTSTATUS make_auth_context_subsystem(struct auth_context **auth_context) 
+{
+       const char *auth_method_list[] = { "guest", "samba4", NULL };
+       return make_auth_context_text_list(auth_context,
+                                   auth_method_list);
+}