1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

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.

PR:             ports/151261
Submitted by:   Tz-Huan Huang <tzhuan@gmail.com>
Approved by:    maintainer timeout (melifaro@ipfw.ru ; 64 days)
This commit is contained in:
Philip M. Gollucci 2010-12-09 01:50:15 +00:00
parent 17f4a7d96e
commit 28d6444259
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=265896

View File

@ -26,7 +26,8 @@ NSLCD_SOCKET?= /var/run/nslcd.ctl
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 @@ MAN5+= nslcd.conf.5
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