mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Merge from upstream
This commit is contained in:
@@ -49,6 +49,7 @@ rm -rf %{buildroot}
|
||||
%{_usr}/share/ipa/*
|
||||
|
||||
%{plugin_dir}/libipa_pwd_extop.so
|
||||
%{plugin_dir}/libipa-memberof-plugin.so
|
||||
|
||||
|
||||
%changelog
|
||||
|
||||
@@ -49,6 +49,7 @@ rm -rf %{buildroot}
|
||||
%{_usr}/share/ipa/*
|
||||
|
||||
%{plugin_dir}/libipa_pwd_extop.so
|
||||
%{plugin_dir}/libipa-memberof-plugin.so
|
||||
|
||||
|
||||
%changelog
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
SUBDIRS=ipa-pwd-extop
|
||||
SUBDIRS=ipa-pwd-extop ipa-memberof
|
||||
|
||||
all:
|
||||
@for subdir in $(SUBDIRS); do \
|
||||
|
||||
33
ipa-server/ipa-slapi-plugins/ipa-memberof/Makefile
Normal file
33
ipa-server/ipa-slapi-plugins/ipa-memberof/Makefile
Normal file
@@ -0,0 +1,33 @@
|
||||
PREFIX ?= $(DESTDIR)/usr
|
||||
LIBDIR ?= $(PREFIX)/lib/fedora-ds/plugins
|
||||
LIB64DIR ?= $(PREFIX)/lib64/fedora-ds/plugins
|
||||
SHAREDIR = $(DESTDIR)/usr/share/ipa
|
||||
|
||||
SONAME = libipa-memberof-plugin.so
|
||||
LDFLAGS += -llber
|
||||
CFLAGS ?= -Wall -Wshadow -O2
|
||||
CFLAGS += -I/usr/include/fedora-ds -I/usr/include/nss3 -I/usr/include/mozldap -I/usr/include/nspr4 -fPIC -DPIC
|
||||
|
||||
OBJS = $(patsubst %.c,%.o,$(wildcard *.c))
|
||||
|
||||
all: $(OBJS)
|
||||
$(CC) $(LDFLAGS) $(OBJS) -Wl,-soname -Wl,$(SONAME) -shared -o $(SONAME)
|
||||
|
||||
%.o: %.c
|
||||
$(CC) $(CFLAGS) -c -o $@ $<
|
||||
|
||||
install:
|
||||
-mkdir -p $(LIBDIR)
|
||||
if [ -e $(PREFIX)/lib/fedora-ds ]; then \
|
||||
install -m 644 $(SONAME) $(LIBDIR); \
|
||||
else \
|
||||
install -m 644 $(SONAME) $(LIB64DIR); \
|
||||
fi
|
||||
install -m 644 *.ldif $(SHAREDIR)
|
||||
|
||||
clean:
|
||||
rm -f *.o
|
||||
rm -f $(SONAME)
|
||||
rm -f *~
|
||||
|
||||
|
||||
1731
ipa-server/ipa-slapi-plugins/ipa-memberof/ipa-memberof.c
Normal file
1731
ipa-server/ipa-slapi-plugins/ipa-memberof/ipa-memberof.c
Normal file
File diff suppressed because it is too large
Load Diff
13
ipa-server/ipa-slapi-plugins/ipa-memberof/memberof-conf.ldif
Normal file
13
ipa-server/ipa-slapi-plugins/ipa-memberof/memberof-conf.ldif
Normal file
@@ -0,0 +1,13 @@
|
||||
dn: cn=ipa-memberof,cn=plugins,cn=config
|
||||
objectclass: top
|
||||
objectclass: nsSlapdPlugin
|
||||
objectclass: extensibleObject
|
||||
cn: ipa-memberof
|
||||
nsslapd-pluginpath: /usr/lib/fedora-ds/plugins/libipa-memberof-plugin.so
|
||||
nsslapd-plugininitfunc: ipamo_postop_init
|
||||
nsslapd-plugintype: postoperation
|
||||
nsslapd-pluginenabled: on
|
||||
nsslapd-pluginid: memberof
|
||||
nsslapd-pluginversion: 1.0
|
||||
nsslapd-pluginvendor: Red Hat
|
||||
nsslapd-plugindescription: Memberof plugin
|
||||
@@ -1,5 +1,6 @@
|
||||
PREFIX ?= $(DESTDIR)/usr
|
||||
LIBDIR = $(PREFIX)/lib/fedora-ds/plugins
|
||||
LIB64DIR ?= $(PREFIX)/lib64/fedora-ds/plugins
|
||||
SHAREDIR = $(DESTDIR)/usr/share/ipa
|
||||
|
||||
SONAME = libipa_pwd_extop.so
|
||||
@@ -17,7 +18,11 @@ all: $(OBJS)
|
||||
|
||||
install:
|
||||
-mkdir -p $(LIBDIR)
|
||||
install -m 644 libipa_pwd_extop.so $(LIBDIR)
|
||||
if [ -e $(PREFIX)/lib/fedora-ds ]; then \
|
||||
install -m 644 $(SONAME) $(LIBDIR); \
|
||||
else \
|
||||
install -m 644 $(SONAME) $(LIB64DIR); \
|
||||
fi
|
||||
install -m 644 *.ldif $(SHAREDIR)
|
||||
|
||||
clean:
|
||||
|
||||
Reference in New Issue
Block a user