krb5_plugin: Fix developer build with newer heimdal system library
authorChristof Schmitt <cs@samba.org>
Mon, 11 Nov 2019 20:37:25 +0000 (13:37 -0700)
committerChristof Schmitt <cs@samba.org>
Wed, 13 Nov 2019 17:49:38 +0000 (17:49 +0000)
Newer heimdal versions provide a different locator plugin interface. The
function pointer for the old method has been renamed. Use an ifdef to
initialize the correct pointer.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14179

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
nsswitch/krb5_plugin/winbind_krb5_locator.c

index a31c08223708d45491770433ead1bfc3a870679b..d08cdf72a5993ec57ef5c38ceeddcd05841b24f6 100644 (file)
@@ -412,7 +412,11 @@ const krb5plugin_service_locate_ftable SMB_KRB5_LOCATOR_SYMBOL_NAME = {
        .minor_version  = 0,
        .init           = smb_krb5_locator_init,
        .fini           = smb_krb5_locator_close,
+#ifdef KRB5_PLUGIN_LOCATE_VERSION_2
+       .old_lookup     = smb_krb5_locator_lookup,
+#else
        .lookup = smb_krb5_locator_lookup,
+#endif
 };
 
 #endif