[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: [Bruno Bonfils <asyd@debian-fr.org>] use ldap for manage configuration files



Hi,

I do not know ith this is off topic, for the mailing list, so I answer only 
in private

I wonder about the benefits of your scheme.
Nowadays when you need to change a config file, you simply use vi, emacs, ...
This is simple and fast, and fast to test in case of errors in the config 
files.
With your scheme, you first have to get get the file, edit it, and load it up 
to the directory. Nothing won here, except for complexity.
Or did you intend to edit the files with the attribute editors of LDAP 
browsers ?

The whole process reminds me of a source code control system with
the phases checkout, change, checkin, but without the features of a 
source code control system such as locking, branching, merging, ...

Please do not get me wrong: from a technical point of view this sounds like
an interesting project, but I doubt if it will be of any big use for a lot of 
users.

Maybe storing configuration statements in attributes/ ntries might be a 
better idea.

I hope I did not discourage you too much ,-)

Yours
Peter


On Wednesday 07 August 2002 19:33, you wrote:
> Hi all,
>
> i'm using OpenLDAP for 1 year, and i love very much this
> tool. However, i'm suprise to see there are only few softwares which
> supports LDAP. For example, it's possible to use LDAP with Apache, but
> only for authentication purposes, not for store the configuration
> file. And it's the same problem with lot of software.
>
> That's why i'm think it's a good idea to write a small application
> which provide a way for use LDAP server to store configurations files
> for any softwares.
>
> The idea seem very (sic) simple :
>
> - writing a small library which redefine fopen function
> - add this library to LD_PRELOAD
>
> At this time, i'm success to write a small library which redefine
> fopen function, do a printf, and finally call standard fopen. I just
> need to add ldap functions at this point.
>
> Since i'm not a C hardcoder (just a beginner who knows the base), i
> want to have your opinions,
>
> do you think it's possible ? i'm afraid with fopen and 'writing'
> mode. But i guess most of software just use 'r' for opening theirs
> files.
>
> (moreover, which library use for hash string with string ? filename
> <-> md5sum)
>
> I attach a small schema for explain the library process.

-- 
Peter Marschall     |   eMail: peter.marschall@mayn.de
Scheffelstraße 15   |          peter.marschall@is-energy.de
97072 Würzburg      |   Tel:   0931/14721
PGP:  D7 FF 20 FE E6 6B 31 74  D1 10 88 E0 3C FE 28 35