ports/151261: add option to net/nss_ldapd
Tz-Huan Huang
tzhuan at gmail.com
Wed Oct 6 13:30:02 UTC 2010
>Number: 151261
>Category: ports
>Synopsis: add option to net/nss_ldapd
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Oct 06 13:30:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Tz-Huan Huang
>Release: 8.1-release
>Organization:
NTU CSIE
>Environment:
FreeBSD cml6.csie.ntu.edu.tw 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:55:53 UTC 2010 root at almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
>Description:
When using nss_ldapd, the prompt of sshd will be "LDAP Password: " instead of original "Password: ", which sometimes confuses some user who don't know what LDAP is. This patch adds an option to solve the problem.
>How-To-Repeat:
>Fix:
diff -ruN nss_ldapd.orig/Makefile nss_ldapd/Makefile
--- nss_ldapd.orig/Makefile 2010-10-06 21:15:25.000000000 +0800
+++ nss_ldapd/Makefile 2010-10-06 21:14:35.000000000 +0800
@@ -26,7 +26,8 @@
OPTIONS= NSS_COMPAT "Enable nss_ldap compatibility" on \
SASL "Enable SASL" off \
- PAM "Build pam_ldap" on
+ PAM "Build pam_ldap" on \
+ PROMPT "Display only Password: instaed of LDAP Password:" off
USERS= nslcd
GROUPS= nslcd
@@ -92,6 +93,11 @@
MAN8+= nslcd.8
.endif
+.if defined(WITH_PROMPT)
+post-patch:
+ @${REINPLACE_CMD} -e 's|i==0?"Password: ":"LDAP Password: "|"Password: "|' ${WRKSRC}/pam/pam.c
+.endif
+
post-extract:
@${REINPLACE_CMD} -e 's/\(INSTALL_\)\(.*\)) -D /\1\2) /' ${WRKSRC}/Makefile.in ${WRKSRC}/nss/Makefile.in
@${REINPLACE_CMD} -e 's/shadow.$$(OBJEXT)/shadow.$$(OBJEXT) bsdnss.$$(OBJEXT)/;s/shadow\.c/shadow.c bsdnss.c/;s/exports\.linux/exports.freebsd/' ${WRKSRC}/nss/Makefile.in
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list