mirror of
https://github.com/bitnami/containers.git
synced 2026-03-12 14:57:54 +08:00
[bitnami/openldap] Release 2.6.4-debian-11-r0 (#24902)
Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
This commit is contained in:
@@ -3,13 +3,13 @@ FROM docker.io/bitnami/minideb:bullseye
|
||||
ARG TARGETARCH
|
||||
|
||||
LABEL org.opencontainers.image.base.name="docker.io/bitnami/minideb:bullseye" \
|
||||
org.opencontainers.image.created="2023-02-22T00:48:16Z" \
|
||||
org.opencontainers.image.created="2023-02-22T14:26:59Z" \
|
||||
org.opencontainers.image.description="Application packaged by VMware, Inc" \
|
||||
org.opencontainers.image.licenses="Apache-2.0" \
|
||||
org.opencontainers.image.ref.name="2.6.3-debian-11-r78" \
|
||||
org.opencontainers.image.ref.name="2.6.4-debian-11-r0" \
|
||||
org.opencontainers.image.title="openldap" \
|
||||
org.opencontainers.image.vendor="VMware, Inc." \
|
||||
org.opencontainers.image.version="2.6.3"
|
||||
org.opencontainers.image.version="2.6.4"
|
||||
|
||||
ENV HOME="/" \
|
||||
OS_ARCH="${TARGETARCH:-amd64}" \
|
||||
@@ -22,7 +22,7 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
||||
RUN install_packages ca-certificates curl libargon2-1 libcom-err2 libcrypt1 libgssapi-krb5-2 libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 libltdl7 libnsl2 libnss3-tools libodbc1 libperl5.32 libsasl2-2 libssl1.1 libtirpc3 libwrap0 mdbtools procps psmisc
|
||||
RUN mkdir -p /tmp/bitnami/pkg/cache/ && cd /tmp/bitnami/pkg/cache/ && \
|
||||
COMPONENTS=( \
|
||||
"openldap-2.6.3-9-linux-${OS_ARCH}-debian-11" \
|
||||
"openldap-2.6.4-0-linux-${OS_ARCH}-debian-11" \
|
||||
"gosu-1.16.0-2-linux-${OS_ARCH}-debian-11" \
|
||||
) && \
|
||||
for COMPONENT in "${COMPONENTS[@]}"; do \
|
||||
@@ -41,7 +41,7 @@ RUN chmod g+rwX /opt/bitnami
|
||||
|
||||
COPY rootfs /
|
||||
RUN /opt/bitnami/scripts/openldap/postunpack.sh
|
||||
ENV APP_VERSION="2.6.3" \
|
||||
ENV APP_VERSION="2.6.4" \
|
||||
BITNAMI_APP_NAME="openldap" \
|
||||
PATH="/opt/bitnami/openldap/bin:/opt/bitnami/openldap/sbin:/opt/bitnami/common/bin:$PATH"
|
||||
|
||||
|
||||
@@ -8,9 +8,9 @@
|
||||
},
|
||||
"openldap": {
|
||||
"arch": "amd64",
|
||||
"digest": "0f0848a90bc9c6b849ad5124572f5eed7bc579dabe5d936ad944c7a9de30f2eb",
|
||||
"digest": "a4ea76c313d7ca3fb3311cb9630630eb879160351decaf80dcb3a12ada9dbd29",
|
||||
"distro": "debian-11",
|
||||
"type": "NAMI",
|
||||
"version": "2.6.3-9"
|
||||
"version": "2.6.4-0"
|
||||
}
|
||||
}
|
||||
@@ -233,6 +233,84 @@ ldap_stop() {
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
########################
|
||||
# Create slapd.ldif
|
||||
# Globals:
|
||||
# LDAP_*
|
||||
# Arguments:
|
||||
# None
|
||||
# Returns:
|
||||
# None
|
||||
#########################
|
||||
ldap_create_slapd_file() {
|
||||
info "Creating slapd.ldif"
|
||||
cat > "${LDAP_SHARE_DIR}/slapd.ldif" << EOF
|
||||
#
|
||||
# See slapd-config(5) for details on configuration options.
|
||||
# This file should NOT be world readable.
|
||||
#
|
||||
|
||||
dn: cn=config
|
||||
objectClass: olcGlobal
|
||||
cn: config
|
||||
olcArgsFile: /opt/bitnami/openldap/var/run/slapd.args
|
||||
olcPidFile: /opt/bitnami/openldap/var/run/slapd.pid
|
||||
|
||||
#
|
||||
# Schema settings
|
||||
#
|
||||
|
||||
dn: cn=schema,cn=config
|
||||
objectClass: olcSchemaConfig
|
||||
cn: schema
|
||||
|
||||
include: file:///opt/bitnami/openldap/etc/schema/core.ldif
|
||||
|
||||
#
|
||||
# Frontend settings
|
||||
#
|
||||
|
||||
dn: olcDatabase=frontend,cn=config
|
||||
objectClass: olcDatabaseConfig
|
||||
objectClass: olcFrontendConfig
|
||||
olcDatabase: frontend
|
||||
|
||||
#
|
||||
# Configuration database
|
||||
#
|
||||
|
||||
dn: olcDatabase=config,cn=config
|
||||
objectClass: olcDatabaseConfig
|
||||
olcDatabase: config
|
||||
olcAccess: to * by dn.base="gidNumber=0+uidNumber=1001,cn=peercred,cn=external,cn=auth" manage by * none
|
||||
|
||||
#
|
||||
# Server status monitoring
|
||||
#
|
||||
|
||||
dn: olcDatabase=monitor,cn=config
|
||||
objectClass: olcDatabaseConfig
|
||||
olcDatabase: monitor
|
||||
olcAccess: to * by dn.base="gidNumber=0+uidNumber=1001,cn=peercred,cn=external,cn=auth" read by dn.base="cn=Manager,dc=my-domain,dc=com" read by * none
|
||||
|
||||
#
|
||||
# Backend database definitions
|
||||
#
|
||||
|
||||
dn: olcDatabase=mdb,cn=config
|
||||
objectClass: olcDatabaseConfig
|
||||
objectClass: olcMdbConfig
|
||||
olcDatabase: mdb
|
||||
olcDbMaxSize: 1073741824
|
||||
olcSuffix: dc=my-domain,dc=com
|
||||
olcRootDN: cn=Manager,dc=my-domain,dc=com
|
||||
olcMonitoring: FALSE
|
||||
olcDbDirectory: /bitnami/openldap/data
|
||||
olcDbIndex: objectClass eq,pres
|
||||
olcDbIndex: ou,cn,mail,surname,givenname eq,pres,sub
|
||||
EOF
|
||||
|
||||
}
|
||||
|
||||
########################
|
||||
# Create LDAP online configuration
|
||||
@@ -246,6 +324,7 @@ ldap_stop() {
|
||||
ldap_create_online_configuration() {
|
||||
info "Creating LDAP online configuration"
|
||||
|
||||
ldap_create_slapd_file
|
||||
! am_i_root && replace_in_file "${LDAP_SHARE_DIR}/slapd.ldif" "uidNumber=0" "uidNumber=$(id -u)"
|
||||
local -a flags=(-F "$LDAP_ONLINE_CONF_DIR" -n 0 -l "${LDAP_SHARE_DIR}/slapd.ldif")
|
||||
if am_i_root; then
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
rolling-tags:
|
||||
- "2.6"
|
||||
- 2.6-debian-11
|
||||
- 2.6.3
|
||||
- 2.6.4
|
||||
- latest
|
||||
|
||||
Reference in New Issue
Block a user