diff options
author | Christof Schmitt <cs@samba.org> | 2019-11-11 13:37:25 -0700 |
---|---|---|
committer | Christof Schmitt <cs@samba.org> | 2019-11-13 17:49:38 +0000 |
commit | 85d23236200dbe013c09a4f23d982ef1baac240d (patch) | |
tree | 61f64b6801eac89839d17e75f79b1da4778bdefe /nsswitch | |
parent | 1aef796e302058ad3327613964fa89abaf940c1c (diff) | |
download | samba-85d23236200dbe013c09a4f23d982ef1baac240d.tar.gz |
krb5_plugin: Fix developer build with newer heimdal system library
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>
Diffstat (limited to 'nsswitch')
-rw-r--r-- | nsswitch/krb5_plugin/winbind_krb5_locator.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nsswitch/krb5_plugin/winbind_krb5_locator.c b/nsswitch/krb5_plugin/winbind_krb5_locator.c index a31c0822370..d08cdf72a59 100644 --- a/nsswitch/krb5_plugin/winbind_krb5_locator.c +++ b/nsswitch/krb5_plugin/winbind_krb5_locator.c @@ -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 |