mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Initial commit of dna plugin - origin: FDS with fix ups
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
SUBDIRS=ipa-pwd-extop ipa-memberof
|
||||
SUBDIRS=ipa-pwd-extop ipa-memberof dna
|
||||
|
||||
all:
|
||||
@for subdir in $(SUBDIRS); do \
|
||||
|
||||
34
ipa-server/ipa-slapi-plugins/dna/Makefile
Normal file
34
ipa-server/ipa-slapi-plugins/dna/Makefile
Normal file
@@ -0,0 +1,34 @@
|
||||
DIRSRV ?= fedora-ds
|
||||
PREFIX ?= $(DESTDIR)/usr
|
||||
LIBDIR ?= $(PREFIX)/lib/$(DIRSRV)/plugins
|
||||
LIB64DIR ?= $(PREFIX)/lib64/$(DIRSRV)/plugins
|
||||
SHAREDIR = $(DESTDIR)/usr/share/ipa
|
||||
|
||||
SONAME = libipa-dna-plugin.so
|
||||
LDFLAGS += -llber
|
||||
CFLAGS ?= -g -Wall -Wshadow
|
||||
CFLAGS += -I/usr/include/$(DIRSRV) -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/$(DIRSRV) ]; 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 *~
|
||||
|
||||
|
||||
13
ipa-server/ipa-slapi-plugins/dna/dna-conf.ldif
Normal file
13
ipa-server/ipa-slapi-plugins/dna/dna-conf.ldif
Normal file
@@ -0,0 +1,13 @@
|
||||
dn: cn=ipa-dna,cn=plugins,cn=config
|
||||
objectclass: top
|
||||
objectclass: nsSlapdPlugin
|
||||
objectclass: extensibleObject
|
||||
cn: ipa-dna
|
||||
nsslapd-pluginpath: libipa-dna-plugin
|
||||
nsslapd-plugininitfunc: dna_init
|
||||
nsslapd-plugintype: postoperation
|
||||
nsslapd-pluginenabled: on
|
||||
nsslapd-pluginid: ipa-dna
|
||||
nsslapd-pluginversion: 1.0
|
||||
nsslapd-pluginvendor: Red Hat
|
||||
nsslapd-plugindescription: Distributed numeric assignment plugin
|
||||
1174
ipa-server/ipa-slapi-plugins/dna/dna.c
Normal file
1174
ipa-server/ipa-slapi-plugins/dna/dna.c
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user