2014-03-21 15:00 GMT+01:00 Gare Calhoun <[email protected]>: > Hello, >
Hi Gare, > I have a couple of questions about the most awesome OpenLDAP init script > found at > http://ltb-project.org/wiki/download > and > http://ltb-project.org/wiki/documentation/openldap-initscript > > ( "ltb-project-openldap-initscript-1.9") > > > 1. Is it pretty standard practice to do a db_recover on OpenLDAP startup? > > > No, it is not with recent versions of OpenLDAP (this is why db_recover at startup is set to false by default). Since 2.4 (and maybe before), slapd always do itself a db_recover at startup. 2. The value of $dbsufs in its initial call by the backup() function > below is being initialized as "", then is being evaluated later on, and > failing every time . My $DATA_PATH is not "auto" so $dbsufs is not being > populated. > > I added these 2 lines and it works fine: > get_confvalues "suffix" > dbsufs=$RETVAL > > Either that or hard-code something like: > dbsufs="dc=mycompany,dc=com" > > Or I could set my DATA_PATH to "auto". :) > > I guess I just wanted to bring this to the attention of script authors : > in the case where DATA_PATH is not set to auto, the dbsufs variable is not > being populated in backup(). > > > Thanks for this. Could you maybe open an issue on http://tools.ltb-project.org/projects/ltb and provide your modifications as a patch? Clément.
_______________________________________________ ltb-users mailing list [email protected] http://lists.ltb-project.org/listinfo/ltb-users
