https://bugs.openldap.org/show_bug.cgi?id=9812
--- Comment #2 from Matthias Apitz guru@unixarea.de --- I compiled your plugin code and loaded it:
03/22/22 07:30:05 idm-plugin: now in idm_init() 03/22/22 07:30:05 idm-plugin: idm_init() return rc:0 03/22/22 07:30:05 plugin_pblock_new: Registered plugin idm-id 0.0 [dummy] (slapi test demo)
A ldapmodify does change the data in LDAP:
ldapsearch -H ldap://10.23.33.17:389 -b 'dc=oclc,dc=org' -D 'cn=ldapmanager,dc=oclc,dc=org' -w XXXXXXX "*" | grep Sisis
grep Sisis /tmp/ldapmodify.in idmName: Sisis
ldapmodify -H ldap://10.23.33.17:1389 -D 'cn=ldapmanager,dc=oclc,dc=org' -w XXXXXX < /tmp/ldapmodify.in modifying entry "cn=Sigrid1,ou=idmtest,dc=oclc,dc=org"
ldapsearch -H ldap://10.23.33.17:389 -b 'dc=oclc,dc=org' -D 'cn=ldapmanager,dc=oclc,dc=org' -w XXXXXX "*" | grep Sisis idmName: Sisis
but the function call to modify_user() is not logged in /tmp/idm_openldap_pluginlog.log
The config is
include /opt/openldap-2.6.1/etc/openldap/schema/core.schema
pidfile /opt/openldap-2.6.1/var/run/slapd.pid argsfile /opt/openldap-2.6.1/var/run/slapd.args
modulepath /opt/openldap-2.6.1/lib/openldap moduleload back_mdb.la
database config
database mdb maxsize 1073741824 suffix "dc=oclc,dc=org" rootdn "cn=ldapmanager,dc=oclc,dc=org" rootpw XXXXXX
directory /opt/openldap-2.6.1/var/openldap-data
index objectClass eq
database monitor
pluginlog /tmp/idm_openldap_pluginlog.log
plugin postoperation /opt/openldap-2.6.1/lib64/idm.so idm_init "IDM Plugin" 10.23.33.52 3001
include /opt/openldap-2.6.1/etc/openldap/schema/idmUser.schema
TLSCACertificateFile /opt/openldap-2.6.1/etc/openldap/server.pem TLSCertificateFile /opt/openldap-2.6.1/etc/openldap/server.pem TLSCertificateKeyFile /opt/openldap-2.6.1/etc/openldap/server.pem
logfile /tmp/ldap-logfile logfile-only on loglevel any