Plugin API questions
Andrew Bartlett
abartlet at samba.org
Sun Mar 30 05:36:29 GMT 2003
On Sun, 2003-03-30 at 14:35, Luke Howard wrote:
>
> First, I can't seem to build HEAD lately:
>
> Compiling smbd/vfs.c
> smbd/vfs.c: In function `vfs_init_custom':
> smbd/vfs.c:263: `static_init_vfs' undeclared (first use in this function)
> smbd/vfs.c:263: (Each undeclared identifier is reported only once
> smbd/vfs.c:263: for each function it appears in.)
> make: *** [smbd/vfs.o] Error 1
You need to re-run autogen.sh, reconfigure and recompile...
> Secondly, is the following function all that is necessary to upgrade an
> authentication plugin to use the new plugin API? Has the configuration
> directives changed for loading authentication plugins?
My understanding is that is has not.
> /* old plugin API initialization prototype */
> NTSTATUS auth_init(struct auth_context *auth_context, const char *param, auth_methods **auth_method);
this can now be static
>
> int auth_paula_init(void)
> {
> return smb_register_auth("paula", auth_init, AUTH_INTERFACE_VERSION);
> }
I think that's right, for a built in plugin. For a module I think the
name of that function changes to init_module(). See 'preload modules'
to load it before the main server fork().
Andrew Bartlett
--
Andrew Bartlett abartlet at pcug.org.au
Manager, Authentication Subsystems, Samba Team abartlet at samba.org
Student Network Administrator, Hawker College abartlet at hawkerc.net
http://samba.org http://build.samba.org http://hawkerc.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba-technical/attachments/20030330/92509884/attachment.bin
More information about the samba-technical
mailing list