[Freeipa-devel] [PATCH 0072] Provide ipa-client-advise tool

Alexander Bokovoy abokovoy at redhat.com
Wed Jun 19 19:21:00 UTC 2013


On Wed, 19 Jun 2013, Tomas Babej wrote:
>[snip]
>>>Here's a little preview:
>>>
>>>[tbabej at vm-001 ~]$ sudo ipa-advise fedora-authconfig
>>>------------------------------------------------------------------------------------------------
>>>
>>>Authconfig instructions for configuring Fedora 18/19 client with 
>>>IPA server without use of SSSD.
>>>------------------------------------------------------------------------------------------------
>>>
>>>/sbin/authconfig --enableldap --ldapserver=vm-001.idm.com 
>>>--enablerfc2307bis --enablekrb5
>>As the output is almost usable for cut&paste to run on client
>>machines, may be prefix the description/instructions with #?
>>
>
>Sure, that's a good idea. Then you could simply do
>
>[tbabej at vm-001 ~]$ sudo ipa-advise fedora-authconfig > script.sh
>[tbabej at vm-001 ~]$ scp script.sh vm-002:script.sh
>[tbabej at vm-002 ~]$ ./script.sh
>
>I'll include that change in the next revision
>
>Also, adding this to the wiki page for plugin authors as an 
>convention wouldn't hurt.
>
>On the second thought, we run the risk of people mindlessly using the 
>generated scripts without even looking at them though.
Yep, that could happend. We can make those statements echoed on
execution rather than put as comments:

#!/bin/sh
cat << "ADVISE_DESCRIPTION"
----------------------------------------------------------------
Authconfig instructions for configuring Fedora 18/19 client with 
IPA server without use of SSSD.
----------------------------------------------------------------
ADVISE_DESCRIPTION


-- 
/ Alexander Bokovoy




More information about the Freeipa-devel mailing list