Olivier Guillard writes:
How to survive in operational environnement without comments in files ( nor a way to track change logs btw ) ?
I suppose you could put slapd.d/ under version control. After making a change or a set of changes, commit your modified slapd.d/ with your comments in the commit message. Or put comments in other files under slapd.d/. If these filenames do not resemble DNs, e.g. have filetype .txt and no '=' in them, they won't clash with cn=config's filenames. I haven't tried how cumbersome this is/isn't in practice though.
On 28/04/2011 12:00, Hallvard B Furuseth wrote:
Olivier Guillard writes:
How to survive in operational environnement without comments in files ( nor a way to track change logs btw ) ?
I suppose you could put slapd.d/ under version control. After making a change or a set of changes, commit your modified slapd.d/ with your comments in the commit message. Or put comments in other files under slapd.d/. If these filenames do not resemble DNs, e.g. have filetype .txt and no '=' in them, they won't clash with cn=config's filenames. I haven't tried how cumbersome this is/isn't in practice though.
Apart the fact we were told not to touch slapd.d, this will raise complexity (adding a VCS, finding a way to relate commens to contens, and so on).
So now I need more logic, more programs, when I can do everything with just an editor and some text when having a file.
Simone
Apart the fact we were told not to touch slapd.d, this will raise complexity (adding a VCS, finding a way to relate commens to contens, and so on).
So now I need more logic, more programs, when I can do everything with just an editor and some text when having a file.
I do agree. My thought goes to the fact that it would add a component that rarely I find within my clients.
Marco
Simone Piccardi writes:
On 28/04/2011 12:00, Hallvard B Furuseth wrote:
Olivier Guillard writes:
How to survive in operational environnement without comments in files ( nor a way to track change logs btw ) ?
I suppose you could put slapd.d/ under version control. After making a change or a set of changes, commit your modified slapd.d/ with your comments in the commit message. Or put comments in other files under slapd.d/. If these filenames do not resemble DNs, e.g. have filetype .txt and no '=' in them, they won't clash with cn=config's filenames. I haven't tried how cumbersome this is/isn't in practice though.
Apart the fact we were told not to touch slapd.d,
That part is all right, the VCS would simply function as a browseable backup. You'd do the changes over the ldap protocol, then commit the result as-is. Regarding filenames, I think it'd make sense to document that back-config/back-ldif will not touch certain filenames, so the user is officially free to use these for comments etc. However,
this will raise complexity (adding a VCS, finding a way to relate commens to contens, and so on).
So now I need more logic, more programs, when I can do everything with just an editor and some text when having a file.
Yes. I too find slapd.conf significantly superior to cn=config, except for poorer error checking and having to restart slapd. It was just a suggestion if you use cn=config but want comments and change log.
slapd.conf is historyless too though, so I'm not sure what you mean with tracking change logs if you did not want something like version control.
Hi Hallvard
I suppose you could put slapd.d/ under version control.
Yes, this would respond to the log traking issue, you are right : after all, this is the same mecanism used to log track slapd.conf changes. The only objection I would have to that at this stage is that I'm not sure how I to deal with the "{magic-numbrer}" present in some file names that at this stage of my understanding.
Or put comments in other files under slapd.d/
On the other hand, this idea of adding txt files in slapd.d to record comments sound a bit bizarre to me to be honnest.
--- Olivier
I wrote:
Simone Piccardi writes:
So now I need more logic, more programs, when I can do everything with just an editor and some text when having a file.
(...) slapd.conf is historyless too though, so I'm not sure what you mean with tracking change logs if you did not want something like version control.
Whoops, I seem to have confused you with mr Guillard here.
Regarding the {number} prefixes he asked about, they are described here: http://www.openldap.org/doc/admin24/slapdconf2.html#Configuration%20Layout
openldap-technical@openldap.org