Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Aug 2000 13:30:03 -0700 (PDT)
From:      "Scot W. Hetzel" <hetzels@westbend.net>
To:        freebsd-ports@FreeBSD.org
Subject:   Re: ports/20887: [PATCH] LDAP support and fixes for cyrus-sasl
Message-ID:  <200008272030.NAA64007@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/20887; it has been noted by GNATS.

From: "Scot W. Hetzel" <hetzels@westbend.net>
To: "Jimmy Olgeni" <olgeni@uli.it>,
	<FreeBSD-gnats-submit@FreeBSD.ORG>
Cc:  
Subject: Re: ports/20887: [PATCH] LDAP support and fixes for cyrus-sasl
Date: Sun, 27 Aug 2000 15:21:20 -0500

 From: "Jimmy Olgeni" <olgeni@uli.it>
 >
 > LDAP authentication is handled by a new file:
 >
 >         pwcheck_ldap.c (version 1.01)
 >         Author: Clayton Donley <donley@cig.mot.com>
 >         http://www.wwa.com/~donley/
 >
 
 >
 > Changed files:
 >
 >         Makefile (LDAP support: WITH_LDAP macro and pwcheck_ldap.conf.sample)
 >
 >         files/pwcheck.sh (load and evaluate pwcheck_ldap.conf)
 >
 >         patches/patch-ab (configure.in changes for Kerberos)
 >
 >         pkg/PLIST (add pwcheck_ldap.conf.sample, @unexec and @comment fixes)
 >
 > New files:
 >
 >         pwcheck_ldap.conf.sample (sample pwcheck LDAP configuration)
 >
 >         patches/patch-ac (pwcheck_ldap.c)
 >
 >         patches/patch-ae (LDAP support: listed pwcheck_ldap.c in
 >                           EXTRA_pwcheck_SOURCES)
 >
 >         patches/patch-af (configure.in: add --enable-ldap option)
 >
 >         patches/patch-ag (LDAP support in Makefile.in)
 >
 Just a few changes that needs to be made before this gets committed:
 
 pkg/PLIST should contain the following for the install/deinstall of pwcheck_ldap.conf:
 
 %%LDAP_SUPPORT%%@unexec if cmp -s %D/etc/pwcheck_ldap.conf %D/etc/pwcheck_ldap.conf.sample; then rm -f %D/etc/pwcheck_ldap.conf; fi
 %%LDAP_SUPPORT%%etc/pwcheck_ldap.conf.sample
 %%LDAP_SUPPORT%%@exec [ ! -f %B/pwcheck_ldap.conf ] && cp %B/%f %B/pwcheck_ldap.conf
 
 Also, the ports Makefile (post-install) should check for the existence of pwcheck_ldap.conf and install it, if it doesn't exist.
 
 patch-ab & patch-af (configure.in) need to be combined (one patch per file rule).
 
 patch-ae (pwcheck/Makefile.am) not needed unless you run automake to rebuild pwcheck/Makefile.in (port only uses autoconf).
 
 patch-ag (pwcheck/Makefile.in) should be renamed to patch-ae (previous patch in attic)
 
 NOTE: patch-aa to patch-af (all in CVS attic except patch-ab) were used previously by the SASL port, they should only be re-used if
 patching the same file.
 
 patch-ac should be extracted and pwcheck_ldap.c placed in files.  It can then be installed via the ports Makefile into the
 ${WRKSRC}/pwcheck directory (post-[extract|patch]).
 
 Missing BUILD/RUN dependency on LDAP port when USE_LDAP is specified.
 
 The port also needs pkg/MESSAGE[.ldap] added with the following contents:
 
     PREFIX/etc/cyrusdb.db now needs to be created
     before applications that depend on SASL are used.
 
     su cyrus
     PREFIX/sbin/saslpasswd -c userid
 
     You will also need to start the pwcheck daemon:
 
     PREFIX/etc/rc.d/pwcheck.sh start
 
 NOTE: MESSAGE.ldap has the same contents as above, but advising them to edit PREFIX/etc/pwcheck_ldap.conf before starting
 pwcheck.sh.
 
 PKGMESSAGE will need to be set to MESSAGE.ldap in the ports Makefile:
 
     .if defined(WITH_LDAP)
     PKGMESSAGE=    ${PKGDIR}/MESSAGE.ldap
     :
     .endif
 
 Then add to post-install:
 
     @${CAT} ${PKGMESSAGE}
 
 Scot
 
 
 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200008272030.NAA64007>