[augeas-devel] Re: [Augeas] #81: New ldap lense
Augeas
trac at fedorahosted.org
Fri Jul 24 01:30:59 UTC 2009
#81: New ldap lense
--------------------------+-------------------------------------------------
Reporter: skinny | Owner: lutter
Type: enhancement | Status: assigned
Priority: major | Milestone: next
Component: Augeas | Version:
Resolution: | Keywords: ldap.conf
--------------------------+-------------------------------------------------
Comment (by skinny):
I had thought about that and a number of different approaches.
Where as i could work this so that it only branches delimited values as
variable/value[n] = value while leaving non delimited values as variable =
value this would mean two things.
1. We need to then know all variables that "could" have delimited values,
this means we now need to modify the lens when ever a new delimited
capable variable is added to the config or application. So we now have to
track the development of the app in question to stay up to date.
2. Alternatively, i could change it to "look" for delimited values and
list them, however leave single values as /variable = value. the problem
here is that should nss_initgroups_ignoreusers go from a single user
(nss_initgroups_ignoreusers = user1) to multiple users, we'd need to set
it by performing "set /files/etc/ldap.conf/nss_initgroups_ignoreusers
user1,user2" which would mean that next time its viewed it would be
listed, but it now requires us to know the previous value so that it can
be used when setting the new one. I've tried this for giggles and i can
set the value, but i cant save it.
So the approach i took was what i thought to be best of both worlds. It
allows a single uniform approach across the entire config while avoiding
the need for constant revision should new variable optionds be added in
future releases. The only time this lense should need changing is if the
delimiters change.
That said i could be wrong on all counts, i only started playing with
augeas a few days ago and as mentioned, my regex bites.
--
Ticket URL: <https://fedorahosted.org/augeas/ticket/81#comment:3>
Augeas <http://augeas.net/>
a configuration API
More information about the augeas-devel
mailing list