[Freeipa-devel] [PATCH] initial Memberof checkin
Karl MacMillan
kmacmill at redhat.com
Wed Aug 15 19:58:07 UTC 2007
On Fri, 2007-08-10 at 16:32 -0700, Pete Rowley wrote:
> Initial check in of memberof plugin.
>
> Populates the memberof attribute of those entries that allow it with the
> DNs of the groupofuniquenames groups that consider the entry a member.
> Nested groups are supported.
>
> The plugin requires to be the "owner" of the memberof attribute and so
> memberof must not be replicated (requires fractional replication) - it
> would be possible to replicate to a read only replica and not enable
> this plugin in that case. The plugin tries to do the minimum work for
> the particular operation, to be tolerant of asynchronous changes of
> state during an operation, and to be tolerant of inconsistent (e.g.
> mid-replicated) state in general.
>
This was merged with the following patch to enable building it by
default.
Karl
[?1034hdiff -r b3eaa9b17b2f ipa-server/freeipa-server.spec
--- a/ipa-server/freeipa-server.spec Fri Aug 10 16:06:23 2007 -0700
+++ b/ipa-server/freeipa-server.spec Wed Aug 15 15:55:19 2007 -0400
@@ -49,6 +49,7 @@ rm -rf %{buildroot}
%{_usr}/share/ipa/*
%{plugin_dir}/libipa_pwd_extop.so
+%{plugin_dir}/libipa-memberof-plugin.so
%changelog
diff -r b3eaa9b17b2f ipa-server/freeipa-server.spec.in
--- a/ipa-server/freeipa-server.spec.in Fri Aug 10 16:06:23 2007 -0700
+++ b/ipa-server/freeipa-server.spec.in Wed Aug 15 15:54:42 2007 -0400
@@ -49,6 +49,7 @@ rm -rf %{buildroot}
%{_usr}/share/ipa/*
%{plugin_dir}/libipa_pwd_extop.so
+%{plugin_dir}/libipa-memberof-plugin.so
%changelog
diff -r b3eaa9b17b2f ipa-server/ipa-slapi-plugins/Makefile
--- a/ipa-server/ipa-slapi-plugins/Makefile Fri Aug 10 16:06:23 2007 -0700
+++ b/ipa-server/ipa-slapi-plugins/Makefile Wed Aug 15 15:50:09 2007 -0400
@@ -1,4 +1,4 @@ SUBDIRS=ipa-pwd-extop
-SUBDIRS=ipa-pwd-extop
+SUBDIRS=ipa-pwd-extop ipa-memberof
all:
@for subdir in $(SUBDIRS); do \
diff -r b3eaa9b17b2f ipa-server/ipa-slapi-plugins/ipa-memberof/Makefile
--- a/ipa-server/ipa-slapi-plugins/ipa-memberof/Makefile Fri Aug 10 16:06:23 2007 -0700
+++ b/ipa-server/ipa-slapi-plugins/ipa-memberof/Makefile Wed Aug 15 15:55:18 2007 -0400
@@ -1,5 +1,28 @@ all:
-all:
- gcc ipa-memberof.c -I/usr/include/nss3 -I/usr/include/mozldap -I/usr/include/nspr4 -I/usr/include/fedora-ds -I/usr/include -llber -shared -fPIC -DPIC -g -Wl,-soname -Wl,libipa-memberof-plugin.so -o libipa-memberof-plugin.so
+PREFIX ?= $(DESTDIR)/usr
+LIBDIR = $(PREFIX)/lib/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:
- cp -f libipa-memberof-plugin.so /usr/lib/fedora-ds/plugins/
+ -mkdir -p $(LIBDIR)
+ install -m 644 $(SONAME) $(LIBDIR)
+ install -m 644 *.ldif $(SHAREDIR)
+
+clean:
+ rm -f *.o
+ rm -f $(SONAME)
+ rm -f *~
+
+
More information about the Freeipa-devel
mailing list