summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'ipalib/plugins')
-rw-r--r--ipalib/plugins/automount.py12
-rw-r--r--ipalib/plugins/baseldap.py22
-rw-r--r--ipalib/plugins/config.py2
-rw-r--r--ipalib/plugins/delegation.py4
-rw-r--r--ipalib/plugins/dns.py8
-rw-r--r--ipalib/plugins/entitle.py4
-rw-r--r--ipalib/plugins/group.py4
-rw-r--r--ipalib/plugins/hbacrule.py4
-rw-r--r--ipalib/plugins/hbacsvc.py4
-rw-r--r--ipalib/plugins/hbacsvcgroup.py4
-rw-r--r--ipalib/plugins/host.py4
-rw-r--r--ipalib/plugins/hostgroup.py4
-rw-r--r--ipalib/plugins/krbtpolicy.py2
-rw-r--r--ipalib/plugins/migration.py2
-rw-r--r--ipalib/plugins/netgroup.py4
-rw-r--r--ipalib/plugins/permission.py4
-rw-r--r--ipalib/plugins/pkinit.py2
-rw-r--r--ipalib/plugins/privilege.py4
-rw-r--r--ipalib/plugins/pwpolicy.py4
-rw-r--r--ipalib/plugins/role.py4
-rw-r--r--ipalib/plugins/selfservice.py4
-rw-r--r--ipalib/plugins/service.py4
-rw-r--r--ipalib/plugins/sudocmd.py4
-rw-r--r--ipalib/plugins/sudocmdgroup.py4
-rw-r--r--ipalib/plugins/sudorule.py4
-rw-r--r--ipalib/plugins/user.py4
26 files changed, 63 insertions, 63 deletions
diff --git a/ipalib/plugins/automount.py b/ipalib/plugins/automount.py
index 5f8102d92..dcfa03559 100644
--- a/ipalib/plugins/automount.py
+++ b/ipalib/plugins/automount.py
@@ -183,8 +183,8 @@ class automountlocation(LDAPObject):
Location container for automount maps.
"""
container_dn = api.env.container_automount
- object_name = 'automount location'
- object_name_plural = 'automount locations'
+ object_name = _('automount location')
+ object_name_plural = _('automount locations')
object_class = ['nscontainer']
default_attributes = ['cn']
label = _('Automount Locations')
@@ -494,8 +494,8 @@ class automountmap(LDAPObject):
"""
parent_object = 'automountlocation'
container_dn = api.env.container_automount
- object_name = 'automount map'
- object_name_plural = 'automount maps'
+ object_name = _('automount map')
+ object_name_plural = _('automount maps')
object_class = ['automountmap']
default_attributes = ['automountmapname', 'description']
@@ -575,8 +575,8 @@ class automountkey(LDAPObject):
"""
parent_object = 'automountmap'
container_dn = api.env.container_automount
- object_name = 'automount key'
- object_name_plural = 'automount keys'
+ object_name = _('automount key')
+ object_name_plural = _('automount keys')
object_class = ['automount']
default_attributes = [
'automountkey', 'automountinformation', 'description'
diff --git a/ipalib/plugins/baseldap.py b/ipalib/plugins/baseldap.py
index 5912b8dcf..87a9fbed3 100644
--- a/ipalib/plugins/baseldap.py
+++ b/ipalib/plugins/baseldap.py
@@ -247,8 +247,8 @@ class LDAPObject(Object):
parent_object = ''
container_dn = ''
normalize_dn = True
- object_name = 'entry'
- object_name_plural = 'entries'
+ object_name = _('entry')
+ object_name_plural = _('entries')
object_class = []
object_class_config = None
# If an objectclass is possible but not default in an entry. Needed for
@@ -1084,7 +1084,7 @@ class LDAPModMember(LDAPQuery):
Base class for member manipulation.
"""
member_attributes = ['member']
- member_param_doc = 'comma-separated list of %s'
+ member_param_doc = _('comma-separated list of %s')
member_count_out = ('%i member processed.', '%i members processed.')
def get_options(self):
@@ -1096,7 +1096,7 @@ class LDAPModMember(LDAPQuery):
name = to_cli(ldap_obj_name)
doc = self.member_param_doc % ldap_obj.object_name_plural
yield List('%s?' % name, cli_name='%ss' % name, doc=doc,
- label='member ' + ldap_obj.object_name, alwaysask=True)
+ label=_('member %s') % ldap_obj.object_name, alwaysask=True)
def get_member_dns(self, **options):
dns = {}
@@ -1125,7 +1125,7 @@ class LDAPAddMember(LDAPModMember):
"""
Add other LDAP entries to members.
"""
- member_param_doc = 'comma-separated list of %s to add'
+ member_param_doc = _('comma-separated list of %s to add')
member_count_out = ('%i member added.', '%i members added.')
allow_same = False
@@ -1231,7 +1231,7 @@ class LDAPRemoveMember(LDAPModMember):
"""
Remove LDAP entries from members.
"""
- member_param_doc = 'comma-separated list of %s to remove'
+ member_param_doc = _('comma-separated list of %s to remove')
member_count_out = ('%i member removed.', '%i members removed.')
has_output = (
@@ -1341,8 +1341,8 @@ class LDAPSearch(CallbackInterface, crud.Search):
Retrieve all LDAP entries matching the given criteria.
"""
member_attributes = []
- member_param_incl_doc = 'Search for %s with these %s %s.'
- member_param_excl_doc = 'Search for %s without these %s %s.'
+ member_param_incl_doc = _('Search for %s with these %s %s.')
+ member_param_excl_doc = _('Search for %s without these %s %s.')
takes_options = (
Int('timelimit?',
@@ -1558,7 +1558,7 @@ class LDAPModReverseMember(LDAPQuery):
Base class for reverse member manipulation.
"""
reverse_attributes = ['member']
- reverse_param_doc = 'comma-separated list of %s'
+ reverse_param_doc = _('comma-separated list of %s')
reverse_count_out = ('%i member processed.', '%i members processed.')
has_output_params = global_output_params
@@ -1582,7 +1582,7 @@ class LDAPAddReverseMember(LDAPModReverseMember):
The call looks like "add A to B" but in fact executes
add B to A to handle reverse membership.
"""
- member_param_doc = 'comma-separated list of %s to add'
+ member_param_doc = _('comma-separated list of %s to add')
member_count_out = ('%i member added.', '%i members added.')
show_command = None
@@ -1695,7 +1695,7 @@ class LDAPRemoveReverseMember(LDAPModReverseMember):
The call looks like "remove A from B" but in fact executes
remove B from A to handle reverse membership.
"""
- member_param_doc = 'comma-separated list of %s to remove'
+ member_param_doc = _('comma-separated list of %s to remove')
member_count_out = ('%i member removed.', '%i members removed.')
show_command = None
diff --git a/ipalib/plugins/config.py b/ipalib/plugins/config.py
index 349717925..82b8e8994 100644
--- a/ipalib/plugins/config.py
+++ b/ipalib/plugins/config.py
@@ -80,7 +80,7 @@ class config(LDAPObject):
"""
IPA configuration object
"""
- object_name = 'configuration options'
+ object_name = _('configuration options')
default_attributes = [
'ipamaxusernamelength', 'ipahomesrootdir', 'ipadefaultloginshell',
'ipadefaultprimarygroup', 'ipadefaultemaildomain', 'ipasearchtimelimit',
diff --git a/ipalib/plugins/delegation.py b/ipalib/plugins/delegation.py
index ad6106a4b..0327b1dab 100644
--- a/ipalib/plugins/delegation.py
+++ b/ipalib/plugins/delegation.py
@@ -97,8 +97,8 @@ class delegation(Object):
"""
bindable = False
- object_name = 'delegation',
- object_name_plural = 'delegation',
+ object_name = _('delegation')
+ object_name_plural = _('delegations')
label = _('Delegations')
label_singular = _('delegation')
diff --git a/ipalib/plugins/dns.py b/ipalib/plugins/dns.py
index c868b73b7..5c990ace1 100644
--- a/ipalib/plugins/dns.py
+++ b/ipalib/plugins/dns.py
@@ -277,8 +277,8 @@ class dnszone(LDAPObject):
DNS Zone, container for resource records.
"""
container_dn = api.env.container_dns
- object_name = 'DNS zone'
- object_name_plural = 'DNS zones'
+ object_name = _('DNS zone')
+ object_name_plural = _('DNS zones')
object_class = ['top', 'idnsrecord', 'idnszone']
default_attributes = [
'idnsname', 'idnszoneactive', 'idnssoamname', 'idnssoarname',
@@ -519,8 +519,8 @@ class dnsrecord(LDAPObject):
"""
parent_object = 'dnszone'
container_dn = api.env.container_dns
- object_name = 'DNS resource record'
- object_name_plural = 'DNS resource records'
+ object_name = _('DNS resource record')
+ object_name_plural = _('DNS resource records')
object_class = ['top', 'idnsrecord']
default_attributes = _record_attributes + ['idnsname']
diff --git a/ipalib/plugins/entitle.py b/ipalib/plugins/entitle.py
index 95aff39ee..03b6f02f0 100644
--- a/ipalib/plugins/entitle.py
+++ b/ipalib/plugins/entitle.py
@@ -179,8 +179,8 @@ class entitle(LDAPObject):
Entitlement object
"""
container_dn = api.env.container_entitlements
- object_name = 'entitlement'
- object_name_plural = 'entitlements'
+ object_name = _('entitlement')
+ object_name_plural = _('entitlements')
object_class = ['ipaobject', 'ipaentitlement']
search_attributes = ['usercertificate']
default_attributes = ['ipaentitlement']
diff --git a/ipalib/plugins/group.py b/ipalib/plugins/group.py
index f3692857b..819d8c832 100644
--- a/ipalib/plugins/group.py
+++ b/ipalib/plugins/group.py
@@ -77,8 +77,8 @@ class group(LDAPObject):
Group object.
"""
container_dn = api.env.container_group
- object_name = 'group'
- object_name_plural = 'groups'
+ object_name = _('group')
+ object_name_plural = _('groups')
object_class = ['ipausergroup']
object_class_config = 'ipagroupobjectclasses'
possible_objectclasses = ['posixGroup', 'mepManagedEntry']
diff --git a/ipalib/plugins/hbacrule.py b/ipalib/plugins/hbacrule.py
index 3eff396fc..b4398b85b 100644
--- a/ipalib/plugins/hbacrule.py
+++ b/ipalib/plugins/hbacrule.py
@@ -104,8 +104,8 @@ class hbacrule(LDAPObject):
HBAC object.
"""
container_dn = api.env.container_hbac
- object_name = 'HBAC rule'
- object_name_plural = 'HBAC rules'
+ object_name = _('HBAC rule')
+ object_name_plural = _('HBAC rules')
object_class = ['ipaassociation', 'ipahbacrule']
default_attributes = [
'cn', 'accessruletype', 'ipaenabledflag',
diff --git a/ipalib/plugins/hbacsvc.py b/ipalib/plugins/hbacsvc.py
index c2f2532e7..552bd1acf 100644
--- a/ipalib/plugins/hbacsvc.py
+++ b/ipalib/plugins/hbacsvc.py
@@ -52,8 +52,8 @@ class hbacsvc(LDAPObject):
HBAC Service object.
"""
container_dn = api.env.container_hbacservice
- object_name = 'HBAC service'
- object_name_plural = 'HBAC services'
+ object_name = _('HBAC service')
+ object_name_plural = _('HBAC services')
object_class = [ 'ipaobject', 'ipahbacservice' ]
default_attributes = ['cn', 'description', 'memberindirect',]
uuid_attribute = 'ipauniqueid'
diff --git a/ipalib/plugins/hbacsvcgroup.py b/ipalib/plugins/hbacsvcgroup.py
index 356bae43f..609958343 100644
--- a/ipalib/plugins/hbacsvcgroup.py
+++ b/ipalib/plugins/hbacsvcgroup.py
@@ -52,8 +52,8 @@ class hbacsvcgroup(LDAPObject):
HBAC service group object.
"""
container_dn = api.env.container_hbacservicegroup
- object_name = 'HBAC service group'
- object_name_plural = 'HBAC service groups'
+ object_name = _('HBAC service group')
+ object_name_plural = _('HBAC service groups')
object_class = ['ipaobject', 'ipahbacservicegroup']
default_attributes = [ 'cn', 'description', 'member' ]
uuid_attribute = 'ipauniqueid'
diff --git a/ipalib/plugins/host.py b/ipalib/plugins/host.py
index eff199b42..37d906d48 100644
--- a/ipalib/plugins/host.py
+++ b/ipalib/plugins/host.py
@@ -213,8 +213,8 @@ class host(LDAPObject):
Host object.
"""
container_dn = api.env.container_host
- object_name = 'host'
- object_name_plural = 'hosts'
+ object_name = _('host')
+ object_name_plural = _('hosts')
object_class = ['ipaobject', 'nshost', 'ipahost', 'pkiuser', 'ipaservice']
# object_class_config = 'ipahostobjectclasses'
search_attributes = [
diff --git a/ipalib/plugins/hostgroup.py b/ipalib/plugins/hostgroup.py
index 6683c49c4..5b231316a 100644
--- a/ipalib/plugins/hostgroup.py
+++ b/ipalib/plugins/hostgroup.py
@@ -56,8 +56,8 @@ class hostgroup(LDAPObject):
Hostgroup object.
"""
container_dn = api.env.container_hostgroup
- object_name = 'host group'
- object_name_plural = 'host groups'
+ object_name = _('host group')
+ object_name_plural = _('host groups')
object_class = ['ipaobject', 'ipahostgroup']
default_attributes = ['cn', 'description', 'member', 'memberof',
'memberindirect', 'memberofindirect',
diff --git a/ipalib/plugins/krbtpolicy.py b/ipalib/plugins/krbtpolicy.py
index 0c76256b7..e24b5447e 100644
--- a/ipalib/plugins/krbtpolicy.py
+++ b/ipalib/plugins/krbtpolicy.py
@@ -72,7 +72,7 @@ class krbtpolicy(LDAPObject):
Kerberos Ticket Policy object
"""
container_dn = 'cn=%s,cn=kerberos' % api.env.realm
- object_name = 'kerberos ticket policy settings'
+ object_name = _('kerberos ticket policy settings')
default_attributes = ['krbmaxticketlife', 'krbmaxrenewableage']
limit_object_classes = ['krbticketpolicyaux']
diff --git a/ipalib/plugins/migration.py b/ipalib/plugins/migration.py
index d2e6a7d7c..c2d3da8a8 100644
--- a/ipalib/plugins/migration.py
+++ b/ipalib/plugins/migration.py
@@ -479,7 +479,7 @@ can use their Kerberos accounts.''')
if truncated:
self.log.error(
'%s: %s' % (
- ldap_obj.object_name_plural, self.truncated_err_msg
+ ldap_obj.name, self.truncated_err_msg
)
)
diff --git a/ipalib/plugins/netgroup.py b/ipalib/plugins/netgroup.py
index e611ea299..65949a822 100644
--- a/ipalib/plugins/netgroup.py
+++ b/ipalib/plugins/netgroup.py
@@ -68,8 +68,8 @@ class netgroup(LDAPObject):
Netgroup object.
"""
container_dn = api.env.container_netgroup
- object_name = 'netgroup'
- object_name_plural = 'netgroups'
+ object_name = _('netgroup')
+ object_name_plural = _('netgroups')
object_class = ['ipaobject', 'ipaassociation', 'ipanisnetgroup']
default_attributes = [
'cn', 'description', 'memberof', 'externalhost', 'nisdomainname',
diff --git a/ipalib/plugins/permission.py b/ipalib/plugins/permission.py
index 63f166c6f..4f37790df 100644
--- a/ipalib/plugins/permission.py
+++ b/ipalib/plugins/permission.py
@@ -90,8 +90,8 @@ class permission(LDAPObject):
Permission object.
"""
container_dn = api.env.container_permission
- object_name = 'permission'
- object_name_plural = 'permissions'
+ object_name = _('permission')
+ object_name_plural = _('permissions')
object_class = ['groupofnames', 'ipapermission']
default_attributes = ['cn', 'member', 'memberof',
'memberindirect', 'ipapermissiontype',
diff --git a/ipalib/plugins/pkinit.py b/ipalib/plugins/pkinit.py
index 55a065085..7a5a93b42 100644
--- a/ipalib/plugins/pkinit.py
+++ b/ipalib/plugins/pkinit.py
@@ -46,7 +46,7 @@ class pkinit(Object):
"""
PKINIT Options
"""
- object_name = 'pkinit'
+ object_name = _('pkinit')
label=_('PKINIT')
diff --git a/ipalib/plugins/privilege.py b/ipalib/plugins/privilege.py
index 890dcd7cc..d1a63ace5 100644
--- a/ipalib/plugins/privilege.py
+++ b/ipalib/plugins/privilege.py
@@ -46,8 +46,8 @@ class privilege(LDAPObject):
Privilege object.
"""
container_dn = api.env.container_privilege
- object_name = 'privilege'
- object_name_plural = 'privileges'
+ object_name = _('privilege')
+ object_name_plural = _('privileges')
object_class = ['nestedgroup', 'groupofnames']
default_attributes = ['cn', 'description', 'member', 'memberof',
'memberindirect', 'memberofindirect',
diff --git a/ipalib/plugins/pwpolicy.py b/ipalib/plugins/pwpolicy.py
index db1671365..673f2ebf1 100644
--- a/ipalib/plugins/pwpolicy.py
+++ b/ipalib/plugins/pwpolicy.py
@@ -173,8 +173,8 @@ class pwpolicy(LDAPObject):
Password Policy object
"""
container_dn = 'cn=%s,cn=kerberos' % api.env.realm
- object_name = 'password policy'
- object_name_plural = 'password policies'
+ object_name = _('password policy')
+ object_name_plural = _('password policies')
object_class = ['top', 'nscontainer', 'krbpwdpolicy']
default_attributes = [
'cn', 'cospriority', 'krbmaxpwdlife', 'krbminpwdlife',
diff --git a/ipalib/plugins/role.py b/ipalib/plugins/role.py
index cdbe5130a..365ee8372 100644
--- a/ipalib/plugins/role.py
+++ b/ipalib/plugins/role.py
@@ -63,8 +63,8 @@ class role(LDAPObject):
Role object.
"""
container_dn = api.env.container_rolegroup
- object_name = 'role'
- object_name_plural = 'roles'
+ object_name = _('role')
+ object_name_plural = _('roles')
object_class = ['groupofnames', 'nestedgroup']
default_attributes = ['cn', 'description', 'member', 'memberof',
'memberindirect', 'memberofindirect',
diff --git a/ipalib/plugins/selfservice.py b/ipalib/plugins/selfservice.py
index 55aa7c1de..47650e039 100644
--- a/ipalib/plugins/selfservice.py
+++ b/ipalib/plugins/selfservice.py
@@ -70,8 +70,8 @@ class selfservice(Object):
"""
bindable = False
- object_name = 'self service permission',
- object_name_plural = 'self service permissions',
+ object_name = _('self service permission')
+ object_name_plural = _('self service permissions')
label = _('Self Service Permissions')
label_singular = _('self service permission')
diff --git a/ipalib/plugins/service.py b/ipalib/plugins/service.py
index 4f8bc1eb8..2fda56942 100644
--- a/ipalib/plugins/service.py
+++ b/ipalib/plugins/service.py
@@ -200,8 +200,8 @@ class service(LDAPObject):
Service object.
"""
container_dn = api.env.container_service
- object_name = 'service'
- object_name_plural = 'services'
+ object_name = _('service')
+ object_name_plural = _('services')
object_class = [
'krbprincipal', 'krbprincipalaux', 'krbticketpolicyaux', 'ipaobject',
'ipaservice', 'pkiuser'
diff --git a/ipalib/plugins/sudocmd.py b/ipalib/plugins/sudocmd.py
index 800ab2409..2da041e0a 100644
--- a/ipalib/plugins/sudocmd.py
+++ b/ipalib/plugins/sudocmd.py
@@ -47,8 +47,8 @@ class sudocmd(LDAPObject):
Sudo Command object.
"""
container_dn = api.env.container_sudocmd
- object_name = 'sudo command'
- object_name_plural = 'sudo commands'
+ object_name = _('sudo command')
+ object_name_plural = _('sudo commands')
object_class = ['ipaobject', 'ipasudocmd']
# object_class_config = 'ipahostobjectclasses'
search_attributes = [
diff --git a/ipalib/plugins/sudocmdgroup.py b/ipalib/plugins/sudocmdgroup.py
index bee417a90..fe7d670c8 100644
--- a/ipalib/plugins/sudocmdgroup.py
+++ b/ipalib/plugins/sudocmdgroup.py
@@ -51,8 +51,8 @@ class sudocmdgroup(LDAPObject):
Sudo Group object.
"""
container_dn = api.env.container_sudocmdgroup
- object_name = 'sudo command group'
- object_name_plural = 'sudo command groups'
+ object_name = _('sudo command group')
+ object_name_plural = _('sudo command groups')
object_class = ['ipaobject', 'ipasudocmdgrp']
default_attributes = [
'cn', 'description', 'member',
diff --git a/ipalib/plugins/sudorule.py b/ipalib/plugins/sudorule.py
index f595727df..c1bbfb62c 100644
--- a/ipalib/plugins/sudorule.py
+++ b/ipalib/plugins/sudorule.py
@@ -45,8 +45,8 @@ class sudorule(LDAPObject):
Sudo Rule management
"""
container_dn = api.env.container_sudorule
- object_name = 'sudo rule'
- object_name_plural = 'sudo rules'
+ object_name = _('sudo rule')
+ object_name_plural = _('sudo rules')
object_class = ['ipaassociation', 'ipasudorule']
default_attributes = [
'cn', 'ipaenabledflag',
diff --git a/ipalib/plugins/user.py b/ipalib/plugins/user.py
index 1f85238da..105814d5f 100644
--- a/ipalib/plugins/user.py
+++ b/ipalib/plugins/user.py
@@ -80,8 +80,8 @@ class user(LDAPObject):
User object.
"""
container_dn = api.env.container_user
- object_name = 'user'
- object_name_plural = 'users'
+ object_name = _('user')
+ object_name_plural = _('users')
object_class = ['posixaccount']
object_class_config = 'ipauserobjectclasses'
possible_objectclasses = ['meporiginentry']