]> arthur.barton.de Git - netatalk.git/commitdiff
Build fixes for the Kerberos UAM
authorFrank Lahm <franklahm@gmail.com>
Mon, 28 Oct 2013 09:06:37 +0000 (10:06 +0100)
committerFrank Lahm <franklahm@gmail.com>
Mon, 28 Oct 2013 09:06:37 +0000 (10:06 +0100)
o missing Kerberos includes and libraries
o conditional code that handled the case when Kerberos is not available
  was c/p from etc/afp/status.c and wasn't updated for the changes introduced
  in the bugfix for #531

NEWS
etc/uams/Makefile.am
etc/uams/uams_gss.c

diff --git a/NEWS b/NEWS
index e0f055023a6be2846ae669c6a9b24346080b3efa..8a8fb7792ad6bef211504140afd76d59399b1d57 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,6 @@
 Changes in 3.0.7
 ================
+* FIX: Build fixes for the Kerberos UAM
 
 Changes in 3.0.6
 ================
index 3a02b8359770be9f64fdd0b2cf560fa7831817f4..23fd3d1c7eb8710627da05fa01c96ccbdb7660dd 100644 (file)
@@ -93,7 +93,7 @@ AM_CFLAGS = @SSL_CFLAGS@ @LIBGCRYPT_CFLAGS@
 uams_pam_la_CFLAGS         = @PAM_CFLAGS@
 uams_dhx_pam_la_CFLAGS     = @SSL_CFLAGS@ @PAM_CFLAGS@
 uams_dhx2_pam_la_CFLAGS    = @LIBGCRYPT_CFLAGS@ @PAM_CFLAGS@
-uams_gss_la_CFLAGS        = @GSSAPI_CFLAGS@
+uams_gss_la_CFLAGS        = @GSSAPI_CFLAGS@ @KRB5_CFLAGS@
 
 uams_guest_la_LDFLAGS      = -module -avoid-version
 uams_randnum_la_LDFLAGS    = -module -avoid-version @SSL_LIBS@
@@ -104,7 +104,7 @@ uams_dhx_passwd_la_LDFLAGS = -module -avoid-version @CRYPT_LIBS@ @SSL_LIBS@
 uams_dhx_pam_la_LDFLAGS                = -module -avoid-version @CRYPT_LIBS@ @SSL_LIBS@ @PAM_LIBS@
 uams_dhx2_passwd_la_LDFLAGS    = -module -avoid-version @CRYPT_LIBS@ @LIBGCRYPT_LIBS@
 uams_dhx2_pam_la_LDFLAGS       = -module -avoid-version @LIBGCRYPT_LIBS@ @PAM_LIBS@
-uams_gss_la_LDFLAGS       = -module -avoid-version @GSSAPI_LIBS@ 
+uams_gss_la_LDFLAGS       = -module -avoid-version @GSSAPI_LIBS@ @KRB5_LIBS@
 
 #
 # module compilation
index 28ed7444f4ea3bef2ebab93b7d071bef95da8eb3..325d1c13bb1e4c54ce2fe0cadfa95899cb7864fb 100644 (file)
@@ -601,14 +601,13 @@ krb5_cleanup:
     krb5_free_context(context);
 
 #else /* ! HAVE_KERBEROS */
-
-    if (!options->k5service || !options->fqdn || !options->k5realm)
+    if (!obj->options.k5service || !obj->options.fqdn || !obj->options.k5realm)
         goto exit;
 
     char principal[255];
     size_t len = snprintf(principal, sizeof(principal), "%s/%s@%s",
-                          options->k5service, options->fqdn, options->k5realm);
-    (void)set_principal(&obj, principal);
+                          obj->options.k5service, obj->options.fqdn, obj->options.k5realm);
+    (void)set_principal(obj, principal);
     rv = 0;
 #endif /* HAVE_KERBEROS */