Description of problem: These 2 replication related perl scripts do not need to be installed per server instance, but one per the system. template-cl-dump.pl template-repl-monitor.pl The template files are located in /usr/share/fedora-ds/script-templates/, so are the 2 scripts. The template files are not supposed to be executed directly, neither. That is, they don't have to be a template, but the perl script itself with ".in" extension processed in the build.
Created attachment 154310 [details] cvs diff Makefile.am and new files New Files: wrappers/cl-dump.in --- wrapper for cl-dump.pl to set LD_LIBRARY_PATH wrappers/repl-monitor.in --- wrapper for repl-monitor.pl to set LD_LIBRARY_PATH ldap/admin/src/scripts/cl-dump.pl --- identical to previous template-cl-dump.pl ldap/admin/src/scripts/repl-monitor.pl --- identical to previous template-repl-monitor.pl Introducing a wrapper cl-dump and repl-monitor to set LD_LIBRARY_PATH, then call the perl script using PerLDAP. Setting LD_LIBRARY_PATH in the perl script ($ENV{'LD_LIBRARY_PATH'}=...) does not work. Deleted Files: ldap/admin/src/scripts/template-cl-dump.pl.in ldap/admin/src/scripts/template-repl-monitor.pl.in
Install location: $ ls /usr/bin/cl-dump* /usr/bin/repl-monitor* /usr/bin/cl-dump* /usr/bin/repl-monitor* /usr/bin/cl-dump.pl* /usr/bin/repl-monitor.pl* Test run: $ cl-dump -p 24202 -D "cn=Directory Manager" -w passwd # Replica Root: o=example.com # LDIF File : /export/server/slapd-s1/cldb/2085dd03-1dd211b2-80f891fc-61560000.ldif clpurgeruv: {replicageneration} 463fce74000000010000 clpurgeruv: {replica 1 ldap://s1.sfbay.redhat.com:24202} clmaxruv: {replicageneration} 463fce74000000010000 clmaxruv: {replica 1} 463fcea2000000010000 463fcec7000000010000 463fcec7 changetype: delete replgen: 463fce74000000010000 csn: 463fcea2000000010000 nsuniqueid: fcc2974d-1dd111b2-80f891fc-61560000 dn: uid=scarter,ou=people,o=example.com [...]
Created attachment 154346 [details] cvs commit message Reviewed by Nathan (Thank you!) Checked in into HEAD.
The script names were updated in the config guide for 8.0, but I missed a reference in the 8.0 admin guide to the repl-monitor.pl script. That's been corrected now, too.