Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSSD doesn't build against Kerberos < 1.8 #1894

Closed
sssd-bot opened this issue May 2, 2020 · 0 comments
Closed

SSSD doesn't build against Kerberos < 1.8 #1894

sssd-bot opened this issue May 2, 2020 · 0 comments
Labels
Closed: Fixed Issue was closed as fixed.

Comments

@sssd-bot
Copy link

sssd-bot commented May 2, 2020

Cloned from Pagure issue: https://pagure.io/SSSD/sssd/issue/852

  • Created at 2011-04-25 16:14:52 by sgallagh
  • Closed as Fixed
  • Assigned to jzeleny

gcc -DHAVE_CONFIG_H -I. -I. -I. -Wall -Iinclude -I.. -I./include -I./src/sss_client -I./src -Iinclude -I. -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -DLIBDIR="/usr/lib" -DVARDIR="/var" -DSHLIBEXT="" -DSSSD_LIBEXEC_PATH="/usr/libexec/sssd" -DSSSD_INTROSPECT_PATH="" -DSSSD_CONF_DIR="/etc/sssd" -DSSS_NSS_SOCKET_NAME="/var/lib/sss/pipes/nss" -DSSS_PAM_SOCKET_NAME="/var/lib/sss/pipes/pam" -DSSS_PAM_PRIV_SOCKET_NAME="/var/lib/sss/pipes/private/pam" -DLOCALEDIR="@localedir@" -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Werror-implicit-function-declaration -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -MT src/util/libsss_ldap_la-sss_krb5.lo -MD -MP -MF src/util/.deps/libsss_ldap_la-sss_krb5.Tpo -c src/util/sss_krb5.c -fPIC -DPIC -o src/util/.libs/libsss_ldap_la-sss_krb5.o
src/util/sss_krb5.c: In function 'select_principal_from_keytab':
src/util/sss_krb5.c:146: error: implicit declaration of function 'krb5_unparse_name_flags'
src/util/sss_krb5.c:147: error: 'KRB5_PRINCIPAL_UNPARSE_NO_REALM' undeclared (first use in this function)
src/util/sss_krb5.c:147: error: (Each undeclared identifier is reported only once
src/util/sss_krb5.c:147: error: for each function it appears in.)
src/util/sss_krb5.c: In function 'match_principal':
src/util/sss_krb5.c:413: error: 'KRB5_PRINCIPAL_UNPARSE_NO_REALM' undeclared (first use in this function)
make[2]: *** [src/util/libsss_ldap_la-sss_krb5.lo] Error 1
make[2]: *** Waiting for unfinished jobs....

Old versions of the Kerberos libraries (such as those available on RHEL 5) do not have support for the {{{krb5_unparse_name_flags()}}} function. We need to add detection for this into the configure script and {{{#ifdef}}} it in the code. We still want to prefer {{{krb5_unparse_name_flags()}}} on platforms with newer libraries, since it is more reliable than parsing for {{{@}}}.

Comments


Comment from sgallagh at 2011-04-25 16:59:37

On platforms with older kerberos libraries, we should just copy the MIT parser into the SSSD code, so it's fully-compatible.


Comment from jzeleny at 2011-05-03 14:23:51

Fields changed

patch: 0 => 1
status: new => assigned


Comment from jzeleny at 2011-05-06 08:48:20

Fixed in: 6281870

resolution: => fixed
status: assigned => closed


Comment from dpal at 2012-01-19 16:25:44

Fields changed

rhbz: => 0


Comment from sgallagh at 2017-02-24 14:23:10

Metadata Update from @sgallagh:

  • Issue assigned to jzeleny
  • Issue set to the milestone: SSSD 1.6.0
@sssd-bot sssd-bot added the Closed: Fixed Issue was closed as fixed. label May 2, 2020
@sssd-bot sssd-bot closed this as completed May 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Closed: Fixed Issue was closed as fixed.
Projects
None yet
Development

No branches or pull requests

1 participant