Skip to content

Commit

Permalink
BUILD: link 'krb5_child' against 'libsystemd' if needed
Browse files Browse the repository at this point in the history
This is addition to #7268

If SSSD is configured with
```
  --with-initscript=systemd
  --with-syslog=syslog
```
then 'krb5_child' need to be linked against 'libsystemd' due to
`check_if_uid_is_active()` usage.

Resolves: #7278

Reviewed-by: Alejandro López <[email protected]>
Reviewed-by: Justin Stephenson <[email protected]>
  • Loading branch information
alexey-tikhonov committed Apr 9, 2024
1 parent f30902f commit 12e7432
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -4737,6 +4737,10 @@ krb5_child_LDADD = \
$(CAP_LIBS) \
$(NULL)

if HAVE_SYSTEMD_UNIT
krb5_child_LDADD += $(SYSTEMD_DAEMON_LIBS)
endif

ldap_child_SOURCES = \
src/providers/ldap/ldap_child.c \
src/providers/krb5/krb5_keytab.c \
Expand Down

0 comments on commit 12e7432

Please sign in to comment.