[lib389] dsconf plugins support and cmd line design

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I'm going to add support for the memberOf plugin into the dsconf tool. However, because this is going to be the first plugin to be configurable through lib389, design decisions will affect all future plugins to be supported.

I'd like thoughts on which approach would be more convenient for an admin.

Right now, there's an initial general design for all plugins here: https://pagure.io/lib389/blob/master/f/lib389/cli_conf/plugin.py

This suggests that we do things the following way:

1. "dsconf instance plugin enable" and then it prompts us to enter the dn of the plugin to enable.
2. "dsconf instance plugin config" and then it prompts again for a dn and displays configuration options *specific* to that plugin

I think it might be more handy to avoid additional prompts and directly do things like the following:

dsconf instance plugin memberof enable
dsconf instance plugin memberof fixup

However, this way we will end up with very long commands.
eg.
dsconf instance plugin memberof config modify "memberofattr" "memberOf2"

which is huge.

With the second approach it's easier to write scripts based on dsconf though.

Any thoughts on this?

Thanks in advance,
Ilias

_______________________________________________
389-devel mailing list -- 389-devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to 389-devel-leave@xxxxxxxxxxxxxxxxxxxxxxx

[Index of Archives]     [Fedora Directory Announce]     [Fedora Users]     [Older Fedora Users Mail]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Review]     [Fedora Art]     [Fedora Music]     [Fedora Packaging]     [CentOS]     [Fedora SELinux]     [Big List of Linux Books]     [KDE Users]     [Fedora Art]     [Fedora Docs]

  Powered by Linux