Cope with first element in hdb_method having a different name in different heimdal...
authorJelmer Vernooij <jelmer@samba.org>
Sat, 23 Nov 2013 19:46:29 +0000 (19:46 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 28 Nov 2013 03:17:55 +0000 (04:17 +0100)
It's called `interface_version` in older Heimdal versions and
`version` in newer versions.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Thu Nov 28 04:17:55 CET 2013 on sn-devel-104

source4/kdc/hdb-samba4-plugin.c

index 568386d29aa6d9c8fc047ed529e21b2180954d04..9135df8f78e36ccc62984b10354d4546b8e51592 100644 (file)
@@ -78,7 +78,7 @@ static krb5_error_code hdb_samba4_create(krb5_context context, struct HDB **db,
  * The <address> is the string form of a pointer to a talloced struct hdb_samba_context
  */
 struct hdb_method hdb_samba4_interface = {
-       .interface_version = HDB_INTERFACE_VERSION,
+       HDB_INTERFACE_VERSION,
        .prefix = "samba4",
        .create = hdb_samba4_create
 };