[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: (ITS#6238) contrib: lastbind overlay to record timestamp of last successful bind
- To: openldap-its@OpenLDAP.org
- Subject: Re: (ITS#6238) contrib: lastbind overlay to record timestamp of last successful bind
- From: michael@stroeder.com
- Date: Sat, 5 Feb 2011 17:32:25 GMT
- Auto-submitted: auto-generated (OpenLDAP-ITS)
This is a multi-part message in MIME format.
--------------010407040507050306070700
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
hyc@symas.com wrote:
> michael@stroeder.com wrote:
>> Could we have this overlay in contrib/ shipped with 2.4.24?
>> That would be really nice.
>>
>> I've tested it with 2.4.23 and it still seems to work.
>
> Committed with changes in HEAD.
Also in RE24. Thanks a lot!
Any objections adding a slightly more complete Makefile (see attachment)?
Ciao, Michael.
--------------010407040507050306070700
Content-Type: text/plain;
name="Makefile.lastbind"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="Makefile.lastbind"
# Copyright 2009 Jonathan Clarke <jonathan@phillipoux.net>.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted only as authorized by the OpenLDAP
# Public License.
#
# A copy of this license is available in the file LICENSE in the
# top-level directory of the distribution or, alternatively, at
# <http://www.OpenLDAP.org/license.html>.
PREFIX=/opt/openldap-RE24
CPPFLAGS+=-I../../../include -I../../../servers/slapd
CPPFLAGS+=-DSLAPD_OVER_LASTBIND=SLAPD_MOD_DYNAMIC
#LIBTOOL=libtool
LIBTOOL=../../../libtool
OPT=-g -O2
CC=gcc
all: lastbind.la
lastbind.lo: lastbind.c
$(LIBTOOL) --mode=compile $(CC) $(CPPFLAGS) -Wall -c $?
lastbind.la: lastbind.lo
$(LIBTOOL) --mode=link $(CC) -version-info 0:0:0 \
-rpath $(PREFIX)/lib -module -o $@ $?
clean:
rm -rf lastbind.lo lastbind.la lastbind.o .libs/
install: lastbind.la
mkdir -p $(PREFIX)/libexec/openldap
$(LIBTOOL) --mode=install cp lastbind.la $(PREFIX)/libexec/openldap
$(LIBTOOL) --finish $(PREFIX)/libexec/openldap
--------------010407040507050306070700--