From 40421dc3652ce39150a79a1c75f6ddc20839b9de Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Sun, 10 Oct 2010 19:18:43 +0000 Subject: put all locgic on how to link in configure script (remove stuff from Makefile.ams) and make choice for NSS and PAM components independently (renaming and removing version scripts as needed) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1250 ef36b2f9-881f-0410-afb5-c4e39611909c --- nss/Makefile.am | 13 +------- nss/exports.glibc | 88 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ nss/nss_ldap.map | 88 ------------------------------------------------------- 3 files changed, 89 insertions(+), 100 deletions(-) create mode 100644 nss/exports.glibc delete mode 100644 nss/nss_ldap.map (limited to 'nss') diff --git a/nss/Makefile.am b/nss/Makefile.am index bd89de4..712c20e 100644 --- a/nss/Makefile.am +++ b/nss/Makefile.am @@ -34,18 +34,7 @@ EXTRA_nss_ldap_so_SOURCES = aliases.c ethers.c group.c hosts.c netgroup.c \ nss_ldap_so_DEPENDENCIES = $(NSS_MODULE_OBJS) nss_ldap_so_LDADD = ../common/libtio.a ../common/libprot.a $(NSS_MODULE_OBJS) -nss_ldap_so_LDFLAGS = @nss_ldap_so_LDFLAGS@ -if HAVE_VERSION_SCRIPT_FLAG -nss_ldap_so_LDFLAGS += $(VERSION_SCRIPT_FLAG)\$(srcdir)/nss_ldap.map -endif - -if USE_NATIVE_LINKER -nss_ldap_so_LINK = @nss_ldap_so_LD@ @nss_ldap_so_LDFLAGS@ -o $@ -else -nss_ldap_so_LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAG) -o $@ -endif - -EXTRA_DIST = nss_ldap.map +EXTRA_DIST = exports.glibc exports.solaris install-exec-local: install-nss_ldap_so uninstall-local: uninstall-nss_ldap_so diff --git a/nss/exports.glibc b/nss/exports.glibc new file mode 100644 index 0000000..0ed5ea2 --- /dev/null +++ b/nss/exports.glibc @@ -0,0 +1,88 @@ +EXPORTED { + + # published NSS service functions + global: + + # flag to enable or disable lookups + _nss_ldap_enablelookups; + + # aliases - mail aliases + _nss_ldap_getaliasbyname_r; + _nss_ldap_setaliasent; + _nss_ldap_getaliasent_r; + _nss_ldap_endaliasent; + + # ethers - ethernet numbers + _nss_ldap_gethostton_r; + _nss_ldap_getntohost_r; + _nss_ldap_setetherent; + _nss_ldap_getetherent_r; + _nss_ldap_endetherent; + + # group - groups of users + _nss_ldap_getgrnam_r; + _nss_ldap_getgrgid_r; + _nss_ldap_initgroups_dyn; + _nss_ldap_setgrent; + _nss_ldap_getgrent_r; + _nss_ldap_endgrent; + + # hosts - host names and numbers + _nss_ldap_gethostbyname_r; + _nss_ldap_gethostbyname2_r; + _nss_ldap_gethostbyaddr_r; + _nss_ldap_sethostent; + _nss_ldap_gethostent_r; + _nss_ldap_endhostent; + + # netgroup - list of host and users + _nss_ldap_setnetgrent; + _nss_ldap_getnetgrent_r; + _nss_ldap_endnetgrent; + + # networks - network names and numbers + _nss_ldap_getnetbyname_r; + _nss_ldap_getnetbyaddr_r; + _nss_ldap_setnetent; + _nss_ldap_getnetent_r; + _nss_ldap_endnetent; + + # passwd - user database and passwords + _nss_ldap_getpwnam_r; + _nss_ldap_getpwuid_r; + _nss_ldap_setpwent; + _nss_ldap_getpwent_r; + _nss_ldap_endpwent; + + # protocols - network protocols + _nss_ldap_getprotobyname_r; + _nss_ldap_getprotobynumber_r; + _nss_ldap_setprotoent; + _nss_ldap_getprotoent_r; + _nss_ldap_endprotoent; + + # rpc - remote procedure call names and numbers + _nss_ldap_getrpcbyname_r; + _nss_ldap_getrpcbynumber_r; + _nss_ldap_setrpcent; + _nss_ldap_getrpcent_r; + _nss_ldap_endrpcent; + + # services - network services + _nss_ldap_getservbyname_r; + _nss_ldap_getservbyport_r; + _nss_ldap_setservent; + _nss_ldap_getservent_r; + _nss_ldap_endservent; + + # shadow - extended user information + _nss_ldap_getspnam_r; + _nss_ldap_setspent; + _nss_ldap_getspent_r; + _nss_ldap_endspent; + + # everything else should not be exported + local: + *; + +}; diff --git a/nss/nss_ldap.map b/nss/nss_ldap.map deleted file mode 100644 index 0ed5ea2..0000000 --- a/nss/nss_ldap.map +++ /dev/null @@ -1,88 +0,0 @@ -EXPORTED { - - # published NSS service functions - global: - - # flag to enable or disable lookups - _nss_ldap_enablelookups; - - # aliases - mail aliases - _nss_ldap_getaliasbyname_r; - _nss_ldap_setaliasent; - _nss_ldap_getaliasent_r; - _nss_ldap_endaliasent; - - # ethers - ethernet numbers - _nss_ldap_gethostton_r; - _nss_ldap_getntohost_r; - _nss_ldap_setetherent; - _nss_ldap_getetherent_r; - _nss_ldap_endetherent; - - # group - groups of users - _nss_ldap_getgrnam_r; - _nss_ldap_getgrgid_r; - _nss_ldap_initgroups_dyn; - _nss_ldap_setgrent; - _nss_ldap_getgrent_r; - _nss_ldap_endgrent; - - # hosts - host names and numbers - _nss_ldap_gethostbyname_r; - _nss_ldap_gethostbyname2_r; - _nss_ldap_gethostbyaddr_r; - _nss_ldap_sethostent; - _nss_ldap_gethostent_r; - _nss_ldap_endhostent; - - # netgroup - list of host and users - _nss_ldap_setnetgrent; - _nss_ldap_getnetgrent_r; - _nss_ldap_endnetgrent; - - # networks - network names and numbers - _nss_ldap_getnetbyname_r; - _nss_ldap_getnetbyaddr_r; - _nss_ldap_setnetent; - _nss_ldap_getnetent_r; - _nss_ldap_endnetent; - - # passwd - user database and passwords - _nss_ldap_getpwnam_r; - _nss_ldap_getpwuid_r; - _nss_ldap_setpwent; - _nss_ldap_getpwent_r; - _nss_ldap_endpwent; - - # protocols - network protocols - _nss_ldap_getprotobyname_r; - _nss_ldap_getprotobynumber_r; - _nss_ldap_setprotoent; - _nss_ldap_getprotoent_r; - _nss_ldap_endprotoent; - - # rpc - remote procedure call names and numbers - _nss_ldap_getrpcbyname_r; - _nss_ldap_getrpcbynumber_r; - _nss_ldap_setrpcent; - _nss_ldap_getrpcent_r; - _nss_ldap_endrpcent; - - # services - network services - _nss_ldap_getservbyname_r; - _nss_ldap_getservbyport_r; - _nss_ldap_setservent; - _nss_ldap_getservent_r; - _nss_ldap_endservent; - - # shadow - extended user information - _nss_ldap_getspnam_r; - _nss_ldap_setspent; - _nss_ldap_getspent_r; - _nss_ldap_endspent; - - # everything else should not be exported - local: - *; - -}; -- cgit v1.2.3