Skip to content

Commit

Permalink
MAN: Make disable_netlink in man sssd.conf conditional
Browse files Browse the repository at this point in the history
The presence of the disable_netlink option in the sssd.conf man page
is now conditional to HAVE_LIBNL, that is, to the present of the library
and to value of the --with-libnl ./configure wasi executed.

Reviewed-by: Alexey Tikhonov <[email protected]>
Reviewed-by: Pavel Březina <[email protected]>
  • Loading branch information
aplopez authored and pbrezina committed May 9, 2024
1 parent ce9924c commit b821c77
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/conf_macros.m4
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,7 @@ AC_DEFUN([WITH_LIBNL],
AC_MSG_ERROR([Libnl required, but not available])
fi
fi
AM_CONDITIONAL([HAVE_LIBNL], [test x"$HAVE_LIBNL" = x1])
])

AC_DEFUN([WITH_NOLOGIN_SHELL],
Expand Down
9 changes: 8 additions & 1 deletion src/man/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,16 @@ endif
else
SSSD_NON_ROOT_USER_CONDS = ;without_non_root_user_support
endif
if HAVE_LIBNL
LIBNL_CONDS = ;have_libnl
endif


CONDS = with_false$(SUDO_CONDS)$(AUTOFS_CONDS)$(SSH_CONDS)$(SSH_KNOWN_HOSTS_PROXY_CONDS)$(PAC_RESPONDER_CONDS)$(IFP_CONDS)$(GPO_CONDS)$(SYSTEMD_CONDS)$(KCM_CONDS)$(STAP_CONDS)$(KCM_RENEWAL_CONDS)$(LOCKFREE_CLIENT_CONDS)$(HAVE_INOTIFY_CONDS)$(PASSKEY_CONDS)$(FILES_PROVIDER_CONDS)$(SSSD_NON_ROOT_USER_CONDS)$(SSSD_CONF_SERVICE_USER_CONDS)$(ENUM_CONDS)
CONDS = with_false$(SUDO_CONDS)$(AUTOFS_CONDS)$(SSH_CONDS)$(SSH_KNOWN_HOSTS_PROXY_CONDS)
CONDS += $(PAC_RESPONDER_CONDS)$(IFP_CONDS)$(GPO_CONDS)$(SYSTEMD_CONDS)$(KCM_CONDS)
CONDS += $(STAP_CONDS)$(KCM_RENEWAL_CONDS)$(LOCKFREE_CLIENT_CONDS)$(HAVE_INOTIFY_CONDS)
CONDS += $(PASSKEY_CONDS)$(FILES_PROVIDER_CONDS)$(SSSD_NON_ROOT_USER_CONDS)
CONDS += $(SSSD_CONF_SERVICE_USER_CONDS)$(ENUM_CONDS)$(LIBNL_CONDS)


#Special Rules:
Expand Down
2 changes: 1 addition & 1 deletion src/man/sssd.conf.5.xml
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@
</para>
</listitem>
</varlistentry>
<varlistentry>
<varlistentry condition="have_libnl">
<term>disable_netlink (boolean)</term>
<listitem>
<para>
Expand Down

0 comments on commit b821c77

Please sign in to comment.