diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2010-02-17 09:14:40 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-02-18 13:48:44 -0500 |
commit | 8e9ac4d7443939ed0d152708d3877b29252d16fe (patch) | |
tree | b857cd509655146456b0ad624db527c1c3c366f3 | |
parent | 29e9f5e711a03135944e30ad241c8182dacc6049 (diff) | |
download | sssd-8e9ac4d7443939ed0d152708d3877b29252d16fe.tar.gz sssd-8e9ac4d7443939ed0d152708d3877b29252d16fe.tar.bz2 sssd-8e9ac4d7443939ed0d152708d3877b29252d16fe.zip |
Eliminate separate build tree for sss_client
-rw-r--r-- | Makefile.am | 2 | ||||
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | server/Makefile.am | 46 | ||||
-rw-r--r-- | server/configure.ac | 13 | ||||
-rw-r--r-- | server/po/POTFILES.in | 5 | ||||
-rw-r--r-- | server/providers/data_provider.h | 2 | ||||
-rw-r--r-- | server/responder/common/responder.h | 2 | ||||
-rw-r--r-- | server/responder/common/responder_packet.h | 2 | ||||
-rw-r--r-- | server/sss_client/Makefile.am (renamed from sss_client/Makefile.am) | 0 | ||||
-rwxr-xr-x | server/sss_client/autogen.sh (renamed from sss_client/autogen.sh) | 0 | ||||
-rw-r--r-- | server/sss_client/common.c (renamed from sss_client/common.c) | 0 | ||||
-rw-r--r-- | server/sss_client/conf_macros.m4 (renamed from sss_client/conf_macros.m4) | 0 | ||||
-rwxr-xr-x | server/sss_client/config.guess (renamed from sss_client/config.guess) | 0 | ||||
-rwxr-xr-x | server/sss_client/config.sub (renamed from sss_client/config.sub) | 0 | ||||
-rw-r--r-- | server/sss_client/configure.ac (renamed from sss_client/configure.ac) | 0 | ||||
-rw-r--r-- | server/sss_client/external/docbook.m4 (renamed from sss_client/external/docbook.m4) | 0 | ||||
-rw-r--r-- | server/sss_client/group.c (renamed from sss_client/group.c) | 0 | ||||
-rwxr-xr-x | server/sss_client/install-sh (renamed from sss_client/install-sh) | 0 | ||||
-rw-r--r-- | server/sss_client/m4/.dir (renamed from sss_client/m4/.dir) | 0 | ||||
-rw-r--r-- | server/sss_client/man/pam_sss.8.xml (renamed from sss_client/man/pam_sss.8.xml) | 0 | ||||
-rw-r--r-- | server/sss_client/pam_sss.c (renamed from sss_client/pam_sss.c) | 0 | ||||
-rw-r--r-- | server/sss_client/pam_test_client.c (renamed from sss_client/pam_test_client.c) | 0 | ||||
-rw-r--r-- | server/sss_client/passwd.c (renamed from sss_client/passwd.c) | 0 | ||||
-rw-r--r-- | server/sss_client/po/LINGUAS (renamed from sss_client/po/LINGUAS) | 0 | ||||
-rw-r--r-- | server/sss_client/po/Makevars (renamed from sss_client/po/Makevars) | 0 | ||||
-rw-r--r-- | server/sss_client/po/POTFILES.in (renamed from sss_client/po/POTFILES.in) | 0 | ||||
-rw-r--r-- | server/sss_client/po/de.po (renamed from sss_client/po/de.po) | 0 | ||||
-rw-r--r-- | server/sss_client/po/es.po (renamed from sss_client/po/es.po) | 0 | ||||
-rw-r--r-- | server/sss_client/po/fr.po (renamed from sss_client/po/fr.po) | 0 | ||||
-rw-r--r-- | server/sss_client/po/it.po (renamed from sss_client/po/it.po) | 0 | ||||
-rw-r--r-- | server/sss_client/po/ja.po (renamed from sss_client/po/ja.po) | 0 | ||||
-rw-r--r-- | server/sss_client/po/nl.po (renamed from sss_client/po/nl.po) | 0 | ||||
-rw-r--r-- | server/sss_client/po/pl.po (renamed from sss_client/po/pl.po) | 0 | ||||
-rw-r--r-- | server/sss_client/po/pt.po (renamed from sss_client/po/pt.po) | 0 | ||||
-rw-r--r-- | server/sss_client/po/sss_client.pot (renamed from sss_client/po/sss_client.pot) | 0 | ||||
-rw-r--r-- | server/sss_client/po/sv.po (renamed from sss_client/po/sv.po) | 0 | ||||
-rw-r--r-- | server/sss_client/protos.h (renamed from sss_client/protos.h) | 0 | ||||
-rw-r--r-- | server/sss_client/sss_cli.h (renamed from sss_client/sss_cli.h) | 0 | ||||
-rw-r--r-- | server/sss_client/sss_nss.exports (renamed from sss_client/sss_nss.exports) | 0 | ||||
-rw-r--r-- | server/sss_client/sss_pam.exports (renamed from sss_client/sss_pam.exports) | 0 | ||||
-rw-r--r-- | server/sss_client/sss_pam_macros.h (renamed from sss_client/sss_pam_macros.h) | 0 | ||||
-rw-r--r-- | server/util/user_info_msg.c | 2 |
42 files changed, 69 insertions, 7 deletions
diff --git a/Makefile.am b/Makefile.am index 45275dce..f20fc560 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,4 +1,4 @@ -SUBDIRS = common server sss_client +SUBDIRS = common server DISTCHECK_CONFIGURE_FLAGS = --with-ldb-lib-dir="$$dc_install_base"/lib/ldb diff --git a/configure.ac b/configure.ac index a48c583b..030ebc92 100644 --- a/configure.ac +++ b/configure.ac @@ -8,7 +8,7 @@ AM_INIT_AUTOMAKE([-Wall -Werror foreign]) AC_CONFIG_MACRO_DIR([m4]) AC_PROG_INSTALL -AC_CONFIG_SUBDIRS([common server sss_client]) +AC_CONFIG_SUBDIRS([common server]) AC_SUBST([PRERELEASE_VERSION], PRERELEASE_VERSION_NUMBER) diff --git a/server/Makefile.am b/server/Makefile.am index 21ae79ae..eeb8cfef 100644 --- a/server/Makefile.am +++ b/server/Makefile.am @@ -17,6 +17,8 @@ sssdapiplugindir = $(sssdconfdir)/sssd.api.d dbusintrospectdir = $(datarootdir)/sssd/introspect dbuspolicydir = $(sysconfdir)/dbus-1/system.d localedir = @localedir@ +nsslibdir = @nsslibdir@ +pamlibdir = $(nsslibdir)/security dbpath = @dbpath@ pluginpath = @pluginpath@ @@ -179,6 +181,7 @@ AM_CPPFLAGS = -Wall \ -Iinclude \ -I.. \ -I$(srcdir)/include \ + -I$(srcdir)/sss_client \ -Iinclude \ -I. \ $(POPT_CFLAGS) \ @@ -619,6 +622,42 @@ stress_tests_SOURCES = \ stress_tests_LDADD = \ $(SSSD_LIBS) +noinst_PROGRAMS = pam_test_client +pam_test_client_SOURCES = sss_client/pam_test_client.c +pam_test_client_LDFLAGS = -lpam -lpam_misc + +#################### +# Client Libraries # +#################### + +nsslib_LTLIBRARIES = libnss_sss.la +libnss_sss_la_SOURCES = \ + sss_client/common.c \ + sss_client/passwd.c \ + sss_client/group.c \ + sss_client/sss_cli.h +libnss_sss_la_LDFLAGS = \ + -module \ + -version-info 2:0:0 \ + -Wl,--version-script,$(srcdir)/sss_client/sss_nss.exports + +pamlib_LTLIBRARIES = pam_sss.la +pam_sss_la_SOURCES = \ + sss_client/pam_sss.c \ + sss_client/common.c \ + sss_client/sss_cli.h \ + sss_client/sss_pam_macros.h + +pam_sss_la_LDFLAGS = \ + -lpam \ + -module \ + -avoid-version \ + -Wl,--version-script,$(srcdir)/sss_client/sss_pam.exports + +dist_noinst_DATA += \ + sss_client/sss_nss.exports \ + sss_client/sss_pam.exports + #################### # Plugin Libraries # #################### @@ -799,7 +838,7 @@ dist_man_MANS = man/sss_useradd.8 man/sss_userdel.8 man/sss_usermod.8 \ man/sss_groupadd.8 man/sss_groupdel.8 man/sss_groupmod.8 \ man/sssd.8 man/sssd.conf.5 man/sssd-ldap.5 man/sssd-krb5.5 \ man/sssd-ipa.5 man/sssd_krb5_locator_plugin.8 \ - man/sss_groupshow.8 + man/sss_groupshow.8 sss_client/man/pam_sss.8 SUFFIXES = .1.xml .1 .3.xml .3 .5.xml .5 .8.xml .8 .1.xml.1: @@ -881,6 +920,11 @@ install-exec-hook: installsssddirs fi mkdir -p doc $(DESTDIR)/$(docdir); cp -a doc $(DESTDIR)/$(docdir)/ +install-data-hook: + rm $(DESTDIR)/$(nsslibdir)/libnss_sss.so.2 \ + $(DESTDIR)/$(nsslibdir)/libnss_sss.so + mv $(DESTDIR)/$(nsslibdir)/libnss_sss.so.2.0.0 $(DESTDIR)/$(nsslibdir)/libnss_sss.so.2 + uninstall-hook: if [ -f $(abs_builddir)/config/.files ]; then \ cat $(abs_builddir)/config/.files | xargs -iq rm -f $(DESTDIR)/q; \ diff --git a/server/configure.ac b/server/configure.ac index f24debb6..4198ee95 100644 --- a/server/configure.ac +++ b/server/configure.ac @@ -43,6 +43,19 @@ AC_CHECK_TYPES([errno_t], [], [], [[#include <errno.h>]]) m4_include([build_macros.m4]) BUILD_WITH_SHARED_BUILD_DIR +#Check for PAM headers +AC_CHECK_HEADERS([security/pam_appl.h security/pam_misc.h security/pam_modules.h], + [AC_CHECK_LIB(pam, pam_get_item, [ PAM_LIBS="-lpam" ], [AC_MSG_ERROR([PAM must support pam_get_item])])], + [AC_MSG_ERROR([PAM development libraries not installed])] +) + +#Set the NSS library install path +AC_ARG_ENABLE([nsslibdir], [AS_HELP_STRING([--enable-nsslibdir], + [Where to install nss libraries ($libdir)])], + [nsslibdir=$enableval], + [nsslibdir=$libdir]) +AC_SUBST(nsslibdir) + m4_include(conf_macros.m4) WITH_DB_PATH WITH_PLUGIN_PATH diff --git a/server/po/POTFILES.in b/server/po/POTFILES.in index 2dacfe8b..e317161f 100644 --- a/server/po/POTFILES.in +++ b/server/po/POTFILES.in @@ -9,3 +9,8 @@ tools/tools_util.h tools/sss_useradd.c tools/sss_groupadd.c tools/sss_usermod.c +sss_client/common.c +sss_client/group.c +sss_client/pam_sss.c +sss_client/pam_test_client.c +sss_client/passwd.c diff --git a/server/providers/data_provider.h b/server/providers/data_provider.h index c5246623..76ba4cff 100644 --- a/server/providers/data_provider.h +++ b/server/providers/data_provider.h @@ -34,7 +34,7 @@ #include "dbus/dbus.h" #include "sbus/sssd_dbus.h" #include "sbus/sbus_client.h" -#include "../sss_client/sss_cli.h" +#include "sss_client/sss_cli.h" #define DATA_PROVIDER_VERSION 0x0001 #define DATA_PROVIDER_SERVICE_NAME "dp" diff --git a/server/responder/common/responder.h b/server/responder/common/responder.h index 9294f402..ea6ba583 100644 --- a/server/responder/common/responder.h +++ b/server/responder/common/responder.h @@ -31,7 +31,7 @@ #include "ldb.h" #include "dhash.h" #include "sbus/sssd_dbus.h" -#include "../sss_client/sss_cli.h" +#include "sss_client/sss_cli.h" extern hash_table_t *dp_requests; diff --git a/server/responder/common/responder_packet.h b/server/responder/common/responder_packet.h index e98707a6..2bfdc8a3 100644 --- a/server/responder/common/responder_packet.h +++ b/server/responder/common/responder_packet.h @@ -22,7 +22,7 @@ #ifndef __SSSSRV_PACKET_H__ #define __SSSSRV_PACKET_H__ -#include "../sss_client/sss_cli.h" +#include "sss_client/sss_cli.h" #define SSS_PACKET_MAX_RECV_SIZE 1024 diff --git a/sss_client/Makefile.am b/server/sss_client/Makefile.am index b430af6b..b430af6b 100644 --- a/sss_client/Makefile.am +++ b/server/sss_client/Makefile.am diff --git a/sss_client/autogen.sh b/server/sss_client/autogen.sh index bf84eeee..bf84eeee 100755 --- a/sss_client/autogen.sh +++ b/server/sss_client/autogen.sh diff --git a/sss_client/common.c b/server/sss_client/common.c index 6732c24f..6732c24f 100644 --- a/sss_client/common.c +++ b/server/sss_client/common.c diff --git a/sss_client/conf_macros.m4 b/server/sss_client/conf_macros.m4 index cff961bc..cff961bc 100644 --- a/sss_client/conf_macros.m4 +++ b/server/sss_client/conf_macros.m4 diff --git a/sss_client/config.guess b/server/sss_client/config.guess index 354dbe17..354dbe17 100755 --- a/sss_client/config.guess +++ b/server/sss_client/config.guess diff --git a/sss_client/config.sub b/server/sss_client/config.sub index 23cd6fd7..23cd6fd7 100755 --- a/sss_client/config.sub +++ b/server/sss_client/config.sub diff --git a/sss_client/configure.ac b/server/sss_client/configure.ac index c32bb6fd..c32bb6fd 100644 --- a/sss_client/configure.ac +++ b/server/sss_client/configure.ac diff --git a/sss_client/external/docbook.m4 b/server/sss_client/external/docbook.m4 index cae89feb..cae89feb 100644 --- a/sss_client/external/docbook.m4 +++ b/server/sss_client/external/docbook.m4 diff --git a/sss_client/group.c b/server/sss_client/group.c index 675b8b71..675b8b71 100644 --- a/sss_client/group.c +++ b/server/sss_client/group.c diff --git a/sss_client/install-sh b/server/sss_client/install-sh index 58719246..58719246 100755 --- a/sss_client/install-sh +++ b/server/sss_client/install-sh diff --git a/sss_client/m4/.dir b/server/sss_client/m4/.dir index e69de29b..e69de29b 100644 --- a/sss_client/m4/.dir +++ b/server/sss_client/m4/.dir diff --git a/sss_client/man/pam_sss.8.xml b/server/sss_client/man/pam_sss.8.xml index f6ac9f47..f6ac9f47 100644 --- a/sss_client/man/pam_sss.8.xml +++ b/server/sss_client/man/pam_sss.8.xml diff --git a/sss_client/pam_sss.c b/server/sss_client/pam_sss.c index 8a1e3129..8a1e3129 100644 --- a/sss_client/pam_sss.c +++ b/server/sss_client/pam_sss.c diff --git a/sss_client/pam_test_client.c b/server/sss_client/pam_test_client.c index a088981b..a088981b 100644 --- a/sss_client/pam_test_client.c +++ b/server/sss_client/pam_test_client.c diff --git a/sss_client/passwd.c b/server/sss_client/passwd.c index 0d70b684..0d70b684 100644 --- a/sss_client/passwd.c +++ b/server/sss_client/passwd.c diff --git a/sss_client/po/LINGUAS b/server/sss_client/po/LINGUAS index 123c64ca..123c64ca 100644 --- a/sss_client/po/LINGUAS +++ b/server/sss_client/po/LINGUAS diff --git a/sss_client/po/Makevars b/server/sss_client/po/Makevars index 1c2ad2ba..1c2ad2ba 100644 --- a/sss_client/po/Makevars +++ b/server/sss_client/po/Makevars diff --git a/sss_client/po/POTFILES.in b/server/sss_client/po/POTFILES.in index feeb0049..feeb0049 100644 --- a/sss_client/po/POTFILES.in +++ b/server/sss_client/po/POTFILES.in diff --git a/sss_client/po/de.po b/server/sss_client/po/de.po index 68f34426..68f34426 100644 --- a/sss_client/po/de.po +++ b/server/sss_client/po/de.po diff --git a/sss_client/po/es.po b/server/sss_client/po/es.po index be67efe3..be67efe3 100644 --- a/sss_client/po/es.po +++ b/server/sss_client/po/es.po diff --git a/sss_client/po/fr.po b/server/sss_client/po/fr.po index 657e3f40..657e3f40 100644 --- a/sss_client/po/fr.po +++ b/server/sss_client/po/fr.po diff --git a/sss_client/po/it.po b/server/sss_client/po/it.po index a78bb243..a78bb243 100644 --- a/sss_client/po/it.po +++ b/server/sss_client/po/it.po diff --git a/sss_client/po/ja.po b/server/sss_client/po/ja.po index 527815b9..527815b9 100644 --- a/sss_client/po/ja.po +++ b/server/sss_client/po/ja.po diff --git a/sss_client/po/nl.po b/server/sss_client/po/nl.po index 5c2d3971..5c2d3971 100644 --- a/sss_client/po/nl.po +++ b/server/sss_client/po/nl.po diff --git a/sss_client/po/pl.po b/server/sss_client/po/pl.po index c8b1b479..c8b1b479 100644 --- a/sss_client/po/pl.po +++ b/server/sss_client/po/pl.po diff --git a/sss_client/po/pt.po b/server/sss_client/po/pt.po index 9fd86902..9fd86902 100644 --- a/sss_client/po/pt.po +++ b/server/sss_client/po/pt.po diff --git a/sss_client/po/sss_client.pot b/server/sss_client/po/sss_client.pot index 6d8e2a67..6d8e2a67 100644 --- a/sss_client/po/sss_client.pot +++ b/server/sss_client/po/sss_client.pot diff --git a/sss_client/po/sv.po b/server/sss_client/po/sv.po index 32c45e1a..32c45e1a 100644 --- a/sss_client/po/sv.po +++ b/server/sss_client/po/sv.po diff --git a/sss_client/protos.h b/server/sss_client/protos.h index adb0b7bb..adb0b7bb 100644 --- a/sss_client/protos.h +++ b/server/sss_client/protos.h diff --git a/sss_client/sss_cli.h b/server/sss_client/sss_cli.h index 7e9a81ff..7e9a81ff 100644 --- a/sss_client/sss_cli.h +++ b/server/sss_client/sss_cli.h diff --git a/sss_client/sss_nss.exports b/server/sss_client/sss_nss.exports index bcc6b10e..bcc6b10e 100644 --- a/sss_client/sss_nss.exports +++ b/server/sss_client/sss_nss.exports diff --git a/sss_client/sss_pam.exports b/server/sss_client/sss_pam.exports index 9afa106b..9afa106b 100644 --- a/sss_client/sss_pam.exports +++ b/server/sss_client/sss_pam.exports diff --git a/sss_client/sss_pam_macros.h b/server/sss_client/sss_pam_macros.h index 5277acd0..5277acd0 100644 --- a/sss_client/sss_pam_macros.h +++ b/server/sss_client/sss_pam_macros.h diff --git a/server/util/user_info_msg.c b/server/util/user_info_msg.c index 1886537a..547e3bb7 100644 --- a/server/util/user_info_msg.c +++ b/server/util/user_info_msg.c @@ -23,7 +23,7 @@ */ #include "util/util.h" -#include "../sss_client/sss_cli.h" +#include "sss_client/sss_cli.h" errno_t pack_user_info_chpass_error(TALLOC_CTX *mem_ctx, const char *user_error_message, |