There was a small nit in the authentication subsystem that
prevented dynamic loading of authentication providers. The
attached patch fixes this.

Index: auth.c
===================================================================
RCS file: /cvsroot/samba/source/auth/auth.c,v
retrieving revision 1.42
diff -u -r1.42 auth.c
--- auth.c      12 Nov 2002 23:15:48 -0000      1.42
+++ auth.c      11 Dec 2002 11:44:18 -0000
@@ -340,7 +340,8 @@
                DEBUG(5,("Attempting to find an auth method to match %s\n", 
*text_list));
                for (i = 0; builtin_auth_init_functions[i].name; i++)
                {
-                       if (strequal(builtin_auth_init_functions[i].name, *text_list))
+                       if (strnequal(builtin_auth_init_functions[i].name, *text_list,
+                               strlen(builtin_auth_init_functions[i].name)))
                        {
                                
                                char *module_name = smb_xstrdup(*text_list);
Index: auth_builtin.c
===================================================================
RCS file: /cvsroot/samba/source/auth/auth_builtin.c,v
retrieving revision 1.17
diff -u -r1.17 auth_builtin.c
--- auth_builtin.c      15 Nov 2002 21:23:55 -0000      1.17
+++ auth_builtin.c      11 Dec 2002 11:44:18 -0000
@@ -198,7 +198,7 @@
     
        plugin_init = sys_dlsym(dl_handle, "auth_init");
        if (!plugin_init){
-               DEBUG(0, ("Failed to find function 'pdb_init' using sys_dlsym in sam 
plugin %s (%s)\n", plugin_name, sys_dlerror()));       
+               DEBUG(0, ("Failed to find function 'auth_init' using sys_dlsym in sam 
+plugin %s (%s)\n", plugin_name, sys_dlerror()));      
                return NT_STATUS_UNSUCCESSFUL;
        }
 
--
Luke Howard | PADL Software Pty Ltd | www.padl.com

Reply via email to