diff options
author | Tomas Babej <tbabej@redhat.com> | 2014-07-31 12:08:05 +0200 |
---|---|---|
committer | Tomas Babej <tbabej@redhat.com> | 2014-09-17 14:41:50 +0200 |
commit | 59925e9bfc8156ffc356810d3ec57a1bdf5c8fc4 (patch) | |
tree | 3a69d090d6d298a9243fa19062b6200ac842d187 /ipalib/plugins/host.py | |
parent | 6200b8786fc4db9623aaefe728b768d119767096 (diff) | |
download | freeipa-59925e9bfc8156ffc356810d3ec57a1bdf5c8fc4.tar.gz freeipa-59925e9bfc8156ffc356810d3ec57a1bdf5c8fc4.tar.xz freeipa-59925e9bfc8156ffc356810d3ec57a1bdf5c8fc4.zip |
idviews: Add ipaAssignedIDVIew reference to the host object
Part of: https://fedorahosted.org/freeipa/ticket/3979
Diffstat (limited to 'ipalib/plugins/host.py')
-rw-r--r-- | ipalib/plugins/host.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ipalib/plugins/host.py b/ipalib/plugins/host.py index 570bbe56a..ce904b709 100644 --- a/ipalib/plugins/host.py +++ b/ipalib/plugins/host.py @@ -27,7 +27,7 @@ import netaddr import string from ipalib import api, errors, util -from ipalib import Str, Flag, Bytes +from ipalib import Str, Flag, Bytes, DNParam from ipalib.plugable import Registry from ipalib.plugins.baseldap import * from ipalib.plugins.service import (split_principal, validate_certificate, @@ -276,7 +276,7 @@ class host(LDAPObject): 'krbprincipalname', 'l', 'macaddress', 'nshardwareplatform', 'nshostlocation', 'nsosversion', 'objectclass', 'serverhostname', 'usercertificate', 'userclass', - 'enrolledby', 'managedby', + 'enrolledby', 'managedby', 'ipaassignedidview', 'krbprincipalname', 'krbcanonicalname', 'krbprincipalaliases', 'krbprincipalexpiration', 'krbpasswordexpiration', 'krblastpwdchange', @@ -342,7 +342,7 @@ class host(LDAPObject): 'ipapermright': {'write'}, 'ipapermdefaultattr': { 'description', 'l', 'nshardwareplatform', 'nshostlocation', - 'nsosversion', 'macaddress', 'userclass', + 'nsosversion', 'macaddress', 'userclass', 'ipaassignedidview', }, 'replaces': [ '(targetattr = "description || l || nshostlocation || nshardwareplatform || nsosversion")(target = "ldap:///fqdn=*,cn=computers,cn=accounts,$SUFFIX")(version 3.0;acl "permission:Modify Hosts";allow (write) groupdn = "ldap:///cn=Modify Hosts,cn=permissions,cn=pbac,$SUFFIX";)', @@ -459,6 +459,9 @@ class host(LDAPObject): doc=_('Host category (semantics placed on this attribute are for ' 'local interpretation)'), ), + DNParam('ipaassignedidview?', + flags=['no_option'], + ), ) + ticket_flags_params def get_dn(self, *keys, **options): |