diff --git a/net/lldap/Makefile b/net/lldap/Makefile index e9c252cab7cc..fa87b1acc464 100644 --- a/net/lldap/Makefile +++ b/net/lldap/Makefile @@ -1,46 +1,46 @@ PORTNAME= lldap DISTVERSIONPREFIX= v DISTVERSION= 0.6.2 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= net MAINTAINER= aokblast@FreeBSD.org COMMENT= Light LDAP implementation for authentication WWW= https://github.com/lldap/lldap LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= gzip:archivers/gzip \ wasm-pack:www/wasm-pack \ wasm-bindgen:www/wasm-bindgen-cli LIB_DEPENDS= libzstd.so:archivers/zstd USES= cargo USE_GITHUB= yes GH_ACCOUNT= inejge:ldap3 GH_PROJECT= ldap3:ldap3 GH_SUBDIR= third_party/ldap3:ldap3 GH_TAGNAME= ba38bc573d63b:ldap3 CARGO_INSTALL_PATH= server set-password migration-tool USERS= ldap GROUPS= ldap post-build: cd ${WRKSRC} && WASM_PACK_CACHE=.wasm-pack-cache ./app/build.sh post-install: ${MKDIR} ${STAGEDIR}${PREFIX}/lldap_server/app ${INSTALL_SCRIPT} ${WRKSRC}/example_configs/freebsd/rc.d_lldap ${STAGEDIR}${PREFIX}/etc/rc.d/lldap cd ${WRKSRC}/app && \ ${COPYTREE_SHARE} pkg ${STAGEDIR}${PREFIX}/lldap_server/app && \ ${COPYTREE_SHARE} static ${STAGEDIR}${PREFIX}/lldap_server/app && \ ${CP} index.html ${STAGEDIR}${PREFIX}/lldap_server/app ${INSTALL_PROGRAM} ${STAGEDIR}${PREFIX}/bin/lldap ${STAGEDIR}${PREFIX}/lldap_server ${MKDIR} ${STAGEDIR}${PREFIX}/share/lldap ${INSTALL_DATA} ${WRKSRC}/lldap_config.docker_template.toml ${STAGEDIR}${PREFIX}/share/lldap/ldap_config.toml.example .include diff --git a/net/lldap/files/patch-app_src_components_login.rs b/net/lldap/files/patch-app_src_components_login.rs new file mode 100644 index 000000000000..4704b7e3f95d --- /dev/null +++ b/net/lldap/files/patch-app_src_components_login.rs @@ -0,0 +1,11 @@ +--- app/src/components/login.rs.orig 2026-04-30 08:39:03 UTC ++++ app/src/components/login.rs +@@ -27,7 +27,7 @@ pub struct FormModel { + pub struct FormModel { + #[validate(length(min = 1, message = "Missing username"))] + username: String, +- #[validate(length(min = 8, message = "Invalid password. Min length: 8"))] ++ #[validate(length(min = 1, message = "Missing password"))] + password: String, + } +