Hi,
I've upgraded openldap 2.4.57 to 2.4.59 on FreeBSD 12.2 using portmaster,
what has always worked over the last few years.
After upgrade the config seems to be bad which hasn't changed…?
root@openldap2:/usr/local/etc/openldap # /usr/local/libexec/slapd -Tt -u
60d0a1cd PROXIED attributeDescription "O" inserted.
60d0a1cd UNKNOWN attributeDescription "OLCRWMTFSUPPORT" inserted.
60d0a1cd UNKNOWN attributeDescription "OLCRWMNORMALIZEMAPPED" inserted.
60d0a1cd UNKNOWN attributeDescription "OLCRWMREWRITE" inserted.
60d0a1cd config error processing olcOverlay={0}rwm,olcDatabase={-1}frontend,cn=config:
slaptest: bad configuration file!
dn: olcOverlay={0}rwm
objectClass: olcOverlayConfig
objectClass: olcRwmConfig
olcOverlay: {0}rwm
olcRwmTFSupport: false
olcRwmNormalizeMapped: FALSE
structuralObjectClass: olcRwmConfig
olcRwmRewrite: {0}rwm-rewriteEngine "on"
olcRwmRewrite: {1}rwm-rewriteMap "ldap" "attr2dn"
"ldap://localhost/o=abc.org?dn?sub"
olcRwmRewrite: {2}rwm-rewriteContext "bindDN"
olcRwmRewrite: {3}rwm-rewriteRule "^eduPersonPrincipalName=[^,]+@[^,]+$" "${
attr2dn($0)}" ":@I"
Does anyone have a hint what's going wrong?
Thanks,
Christian
On 6/22/21 9:14 AM, BÖSCH Christian wrote:
I've upgraded openldap 2.4.57 to 2.4.59 on FreeBSD 12.2 using portmaster, what has always worked over the last few years.
After upgrade the config seems to be bad which hasn't changed…?
root@openldap2:/usr/local/etc/openldap # /usr/local/libexec/slapd -Tt -u 60d0a1cd PROXIED attributeDescription "O" inserted. 60d0a1cd UNKNOWN attributeDescription "OLCRWMTFSUPPORT" inserted. 60d0a1cd UNKNOWN attributeDescription "OLCRWMNORMALIZEMAPPED" inserted. 60d0a1cd UNKNOWN attributeDescription "OLCRWMREWRITE" inserted.
60d0a1cd config error processing olcOverlay={0}rwm,olcDatabase={-1}frontend,cn=config:
Could you please ask the port maintainer(s) whether they changed the build config? I suspect slapo-rwm is now a loadable module instead being statically compiled into slapd executable.
slapd -VVV will tell you.
Ciao, Michael.
On Tue, Jun 22, 2021 at 09:28:52AM +0200, Michael Ströder wrote:
Could you please ask the port maintainer(s) whether they changed the build config? I suspect slapo-rwm is now a loadable module instead being statically compiled into slapd executable.
Yes, that happened:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213435 https://github.com/freebsd/freebsd-ports/commit/96ce7b169cf624a29c30d6fe5494...
There have been a few affected users in the IRC channel as well.
openldap-technical@openldap.org