diff options
author | Tomas Babej <tbabej@redhat.com> | 2014-07-31 12:08:05 +0200 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2014-09-30 10:42:06 +0200 |
commit | be36525dc5169c28a6510ec955607fd3c91db2ce (patch) | |
tree | 07333369608b12bf216b2b480465562fe51b1e0c /ipalib | |
parent | 6b14030e9076e4f9e71ddb641ba959043284c78d (diff) | |
download | freeipa-be36525dc5169c28a6510ec955607fd3c91db2ce.tar.gz freeipa-be36525dc5169c28a6510ec955607fd3c91db2ce.tar.xz freeipa-be36525dc5169c28a6510ec955607fd3c91db2ce.zip |
idviews: Add ipaAssignedIDVIew reference to the host object
Part of: https://fedorahosted.org/freeipa/ticket/3979
Reviewed-By: Petr Viktorin <pviktori@redhat.com>
Reviewed-By: Petr Vobornik <pvoborni@redhat.com>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
Diffstat (limited to 'ipalib')
-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): |