diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2014-10-02 17:12:00 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2014-10-02 17:12:12 +0200 |
commit | f981c0ff8cbe98469b6b5246039351d0382b24bb (patch) | |
tree | 07df52024fbbb5f241d394fb8f2d060a4ae5a4af | |
parent | 13b9a46895e82a1df16d424ab5b29e0d2fb51ad4 (diff) | |
download | freeipa-f981c0ff8cbe98469b6b5246039351d0382b24bb.tar.gz freeipa-f981c0ff8cbe98469b6b5246039351d0382b24bb.tar.xz freeipa-f981c0ff8cbe98469b6b5246039351d0382b24bb.zip |
rename write to create
-rw-r--r-- | API.txt | 64 | ||||
-rw-r--r-- | ipalib/plugins/host.py | 12 | ||||
-rw-r--r-- | ipalib/plugins/service.py | 12 |
3 files changed, 44 insertions, 44 deletions
@@ -1808,30 +1808,30 @@ option: Str('version?', exclude='webui') output: Entry('result', <type 'dict'>, Gettext('A dictionary representing an LDAP entry', domain='ipa', localedir=None)) output: Output('summary', (<type 'unicode'>, <type 'NoneType'>), None) output: PrimaryKey('value', None, None) -command: host_add_managedby -args: 1,5,3 +command: host_add_create_keytab +args: 1,6,3 arg: Str('fqdn', attribute=True, cli_name='hostname', multivalue=False, primary_key=True, query=True, required=True) option: Flag('all', autofill=True, cli_name='all', default=False, exclude='webui') -option: Str('host*', alwaysask=True, cli_name='hosts', csv=True) +option: Str('group*', alwaysask=True, cli_name='groups', csv=True) option: Flag('no_members', autofill=True, default=False, exclude='webui') option: Flag('raw', autofill=True, cli_name='raw', default=False, exclude='webui') +option: Str('user*', alwaysask=True, cli_name='users', csv=True) option: Str('version?', exclude='webui') output: Output('completed', <type 'int'>, None) output: Output('failed', <type 'dict'>, None) output: Entry('result', <type 'dict'>, Gettext('A dictionary representing an LDAP entry', domain='ipa', localedir=None)) -command: host_add_retrieve_keytab -args: 1,6,3 +command: host_add_managedby +args: 1,5,3 arg: Str('fqdn', attribute=True, cli_name='hostname', multivalue=False, primary_key=True, query=True, required=True) option: Flag('all', autofill=True, cli_name='all', default=False, exclude='webui') -option: Str('group*', alwaysask=True, cli_name='groups', csv=True) +option: Str('host*', alwaysask=True, cli_name='hosts', csv=True) option: Flag('no_members', autofill=True, default=False, exclude='webui') option: Flag('raw', autofill=True, cli_name='raw', default=False, exclude='webui') -option: Str('user*', alwaysask=True, cli_name='users', csv=True) option: Str('version?', exclude='webui') output: Output('completed', <type 'int'>, None) output: Output('failed', <type 'dict'>, None) output: Entry('result', <type 'dict'>, Gettext('A dictionary representing an LDAP entry', domain='ipa', localedir=None)) -command: host_add_write_keytab +command: host_add_retrieve_keytab args: 1,6,3 arg: Str('fqdn', attribute=True, cli_name='hostname', multivalue=False, primary_key=True, query=True, required=True) option: Flag('all', autofill=True, cli_name='all', default=False, exclude='webui') @@ -1930,30 +1930,30 @@ option: Str('version?', exclude='webui') output: Entry('result', <type 'dict'>, Gettext('A dictionary representing an LDAP entry', domain='ipa', localedir=None)) output: Output('summary', (<type 'unicode'>, <type 'NoneType'>), None) output: PrimaryKey('value', None, None) -command: host_remove_managedby -args: 1,5,3 +command: host_remove_create_keytab +args: 1,6,3 arg: Str('fqdn', attribute=True, cli_name='hostname', multivalue=False, primary_key=True, query=True, required=True) option: Flag('all', autofill=True, cli_name='all', default=False, exclude='webui') -option: Str('host*', alwaysask=True, cli_name='hosts', csv=True) +option: Str('group*', alwaysask=True, cli_name='groups', csv=True) option: Flag('no_members', autofill=True, default=False, exclude='webui') option: Flag('raw', autofill=True, cli_name='raw', default=False, exclude='webui') +option: Str('user*', alwaysask=True, cli_name='users', csv=True) option: Str('version?', exclude='webui') output: Output('completed', <type 'int'>, None) output: Output('failed', <type 'dict'>, None) output: Entry('result', <type 'dict'>, Gettext('A dictionary representing an LDAP entry', domain='ipa', localedir=None)) -command: host_remove_retrieve_keytab -args: 1,6,3 +command: host_remove_managedby +args: 1,5,3 arg: Str('fqdn', attribute=True, cli_name='hostname', multivalue=False, primary_key=True, query=True, required=True) option: Flag('all', autofill=True, cli_name='all', default=False, exclude='webui') -option: Str('group*', alwaysask=True, cli_name='groups', csv=True) +option: Str('host*', alwaysask=True, cli_name='hosts', csv=True) option: Flag('no_members', autofill=True, default=False, exclude='webui') option: Flag('raw', autofill=True, cli_name='raw', default=False, exclude='webui') -option: Str('user*', alwaysask=True, cli_name='users', csv=True) option: Str('version?', exclude='webui') output: Output('completed', <type 'int'>, None) output: Output('failed', <type 'dict'>, None) output: Entry('result', <type 'dict'>, Gettext('A dictionary representing an LDAP entry', domain='ipa', localedir=None)) -command: host_remove_write_keytab +command: host_remove_retrieve_keytab args: 1,6,3 arg: Str('fqdn', attribute=True, cli_name='hostname', multivalue=False, primary_key=True, query=True, required=True) option: Flag('all', autofill=True, cli_name='all', default=False, exclude='webui') @@ -3499,30 +3499,30 @@ option: Str('version?', exclude='webui') output: Entry('result', <type 'dict'>, Gettext('A dictionary representing an LDAP entry', domain='ipa', localedir=None)) output: Output('summary', (<type 'unicode'>, <type 'NoneType'>), None) output: PrimaryKey('value', None, None) -command: service_add_host -args: 1,5,3 +command: service_add_create_keytab +args: 1,6,3 arg: Str('krbprincipalname', attribute=True, cli_name='principal', multivalue=False, primary_key=True, query=True, required=True) option: Flag('all', autofill=True, cli_name='all', default=False, exclude='webui') -option: Str('host*', alwaysask=True, cli_name='hosts', csv=True) +option: Str('group*', alwaysask=True, cli_name='groups', csv=True) option: Flag('no_members', autofill=True, default=False, exclude='webui') option: Flag('raw', autofill=True, cli_name='raw', default=False, exclude='webui') +option: Str('user*', alwaysask=True, cli_name='users', csv=True) option: Str('version?', exclude='webui') output: Output('completed', <type 'int'>, None) output: Output('failed', <type 'dict'>, None) output: Entry('result', <type 'dict'>, Gettext('A dictionary representing an LDAP entry', domain='ipa', localedir=None)) -command: service_add_retrieve_keytab -args: 1,6,3 +command: service_add_host +args: 1,5,3 arg: Str('krbprincipalname', attribute=True, cli_name='principal', multivalue=False, primary_key=True, query=True, required=True) option: Flag('all', autofill=True, cli_name='all', default=False, exclude='webui') -option: Str('group*', alwaysask=True, cli_name='groups', csv=True) +option: Str('host*', alwaysask=True, cli_name='hosts', csv=True) option: Flag('no_members', autofill=True, default=False, exclude='webui') option: Flag('raw', autofill=True, cli_name='raw', default=False, exclude='webui') -option: Str('user*', alwaysask=True, cli_name='users', csv=True) option: Str('version?', exclude='webui') output: Output('completed', <type 'int'>, None) output: Output('failed', <type 'dict'>, None) output: Entry('result', <type 'dict'>, Gettext('A dictionary representing an LDAP entry', domain='ipa', localedir=None)) -command: service_add_write_keytab +command: service_add_retrieve_keytab args: 1,6,3 arg: Str('krbprincipalname', attribute=True, cli_name='principal', multivalue=False, primary_key=True, query=True, required=True) option: Flag('all', autofill=True, cli_name='all', default=False, exclude='webui') @@ -3585,30 +3585,30 @@ option: Str('version?', exclude='webui') output: Entry('result', <type 'dict'>, Gettext('A dictionary representing an LDAP entry', domain='ipa', localedir=None)) output: Output('summary', (<type 'unicode'>, <type 'NoneType'>), None) output: PrimaryKey('value', None, None) -command: service_remove_host -args: 1,5,3 +command: service_remove_create_keytab +args: 1,6,3 arg: Str('krbprincipalname', attribute=True, cli_name='principal', multivalue=False, primary_key=True, query=True, required=True) option: Flag('all', autofill=True, cli_name='all', default=False, exclude='webui') -option: Str('host*', alwaysask=True, cli_name='hosts', csv=True) +option: Str('group*', alwaysask=True, cli_name='groups', csv=True) option: Flag('no_members', autofill=True, default=False, exclude='webui') option: Flag('raw', autofill=True, cli_name='raw', default=False, exclude='webui') +option: Str('user*', alwaysask=True, cli_name='users', csv=True) option: Str('version?', exclude='webui') output: Output('completed', <type 'int'>, None) output: Output('failed', <type 'dict'>, None) output: Entry('result', <type 'dict'>, Gettext('A dictionary representing an LDAP entry', domain='ipa', localedir=None)) -command: service_remove_retrieve_keytab -args: 1,6,3 +command: service_remove_host +args: 1,5,3 arg: Str('krbprincipalname', attribute=True, cli_name='principal', multivalue=False, primary_key=True, query=True, required=True) option: Flag('all', autofill=True, cli_name='all', default=False, exclude='webui') -option: Str('group*', alwaysask=True, cli_name='groups', csv=True) +option: Str('host*', alwaysask=True, cli_name='hosts', csv=True) option: Flag('no_members', autofill=True, default=False, exclude='webui') option: Flag('raw', autofill=True, cli_name='raw', default=False, exclude='webui') -option: Str('user*', alwaysask=True, cli_name='users', csv=True) option: Str('version?', exclude='webui') output: Output('completed', <type 'int'>, None) output: Output('failed', <type 'dict'>, None) output: Entry('result', <type 'dict'>, Gettext('A dictionary representing an LDAP entry', domain='ipa', localedir=None)) -command: service_remove_write_keytab +command: service_remove_retrieve_keytab args: 1,6,3 arg: Str('krbprincipalname', attribute=True, cli_name='principal', multivalue=False, primary_key=True, query=True, required=True) option: Flag('all', autofill=True, cli_name='all', default=False, exclude='webui') diff --git a/ipalib/plugins/host.py b/ipalib/plugins/host.py index e469fe76c..4a12ac6a6 100644 --- a/ipalib/plugins/host.py +++ b/ipalib/plugins/host.py @@ -105,7 +105,7 @@ EXAMPLES: ipa host-add-managedby --hosts=test2 test """) + _(""" Allow user to create keytab: - ipa host-add-write-keytab test2 --users=tuser1 + ipa host-add-create-keytab test2 --users=tuser1 """) register = Registry() @@ -212,10 +212,10 @@ host_output_params = ( label=_('Groups allowed to retrieve keytab'), ), Str('ipaallowedtoperform_write_keys_user', - label=_('Users allowed to write keytab'), + label=_('Users allowed to create keytab'), ), Str('ipaallowedtoperform_write_keys_group', - label=_('Groups allowed to write keytab'), + label=_('Groups allowed to create keytab'), ), ) @@ -288,7 +288,7 @@ class host(LDAPObject): 'managedby': ('Managed by', 'man_by_', 'not_man_by_'), 'managing': ('Managing', 'man_', 'not_man_'), 'ipaallowedtoperform_read_keys': ('Allow to retrieve keytab by', 'retrieve_keytab_by_', 'not_retrieve_keytab_by_'), - 'ipaallowedtoperform_write_keys': ('Allow to write keytab by', 'write_keytab_by_', 'not_write_keytab_by'), + 'ipaallowedtoperform_write_keys': ('Allow to create keytab by', 'write_keytab_by_', 'not_write_keytab_by'), } password_attributes = [('userpassword', 'has_password'), ('krbprincipalkey', 'has_keytab')] @@ -1217,7 +1217,7 @@ class host_remove_retrieve_keytab(LDAPRemoveMember): @register() -class host_add_write_keytab(LDAPAddMember): +class host_add_create_keytab(LDAPAddMember): __doc__ = _('Add users or groups who can create a keytab of this host.') member_attributes = ['ipaallowedtoperform_write_keys'] has_output_params = LDAPAddMember.has_output_params + host_output_params @@ -1233,7 +1233,7 @@ class host_add_write_keytab(LDAPAddMember): @register() -class host_remove_write_keytab(LDAPRemoveMember): +class host_remove_create_keytab(LDAPRemoveMember): __doc__ = _('Remove users or groups who can create a keytab of this host.') member_attributes = ['ipaallowedtoperform_write_keys'] has_output_params = LDAPRemoveMember.has_output_params + host_output_params diff --git a/ipalib/plugins/service.py b/ipalib/plugins/service.py index 5efa6a0be..268d0aa26 100644 --- a/ipalib/plugins/service.py +++ b/ipalib/plugins/service.py @@ -88,7 +88,7 @@ EXAMPLES: ipa cert-request --principal=HTTP/web.example.com example.csr """) + _(""" Allow user to create keytab: - ipa service-add-write-keytab HTTP/web.example.com --users=tuser1 + ipa service-add-create-keytab HTTP/web.example.com --users=tuser1 """) + _(""" Generate and retrieve a keytab for an IPA service: ipa-getkeytab -s ipa.example.com -p HTTP/web.example.com -k /etc/httpd/httpd.keytab @@ -138,10 +138,10 @@ output_params = ( label=_('Groups allowed to retrieve keytab'), ), Str('ipaallowedtoperform_write_keys_user', - label=_('Users allowed to write keytab'), + label=_('Users allowed to create keytab'), ), Str('ipaallowedtoperform_write_keys_group', - label=_('Groups allowed to write keytab'), + label=_('Groups allowed to create keytab'), ), ) @@ -351,7 +351,7 @@ class service(LDAPObject): relationships = { 'managedby': ('Managed by', 'man_by_', 'not_man_by_'), 'ipaallowedtoperform_read_keys': ('Allow to retrieve keytab by', 'retrieve_keytab_by_', 'not_retrieve_keytab_by_'), - 'ipaallowedtoperform_write_keys': ('Allow to write keytab by', 'write_keytab_by_', 'not_write_keytab_by'), + 'ipaallowedtoperform_write_keys': ('Allow to create keytab by', 'write_keytab_by_', 'not_write_keytab_by'), } password_attributes = [('krbprincipalkey', 'has_keytab')] managed_permissions = { @@ -727,7 +727,7 @@ class service_remove_retrieve_keytab(LDAPRemoveMember): @register() -class service_add_write_keytab(LDAPAddMember): +class service_add_create_keytab(LDAPAddMember): __doc__ = _('Add users or groups who can create a keytab of this service.') member_attributes = ['ipaallowedtoperform_write_keys'] has_output_params = LDAPAddMember.has_output_params + output_params @@ -743,7 +743,7 @@ class service_add_write_keytab(LDAPAddMember): @register() -class service_remove_write_keytab(LDAPRemoveMember): +class service_remove_create_keytab(LDAPRemoveMember): __doc__ = _('Remove users or groups who can create a keytab of this service.') member_attributes = ['ipaallowedtoperform_write_keys'] has_output_params = LDAPRemoveMember.has_output_params + output_params |