mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Add userClass attribute for hosts
This new freeform host attribute will allow provisioning systems to add custom tags for host objects which can be later used for in automember rules or for additional local interpretation. Design page: http://www.freeipa.org/page/V3/Integration_with_a_provisioning_systems Ticket: https://fedorahosted.org/freeipa/ticket/3583
This commit is contained in:
committed by
Rob Crittenden
parent
e10d934230
commit
5af2e1779a
@@ -700,6 +700,7 @@ class test_host(Declarative):
|
||||
dict(
|
||||
description=u'Test host 2',
|
||||
l=u'Undisclosed location 2',
|
||||
userclass=[u'webserver', u'mailserver'],
|
||||
force=True,
|
||||
),
|
||||
),
|
||||
@@ -715,6 +716,7 @@ class test_host(Declarative):
|
||||
objectclass=objectclasses.host,
|
||||
ipauniqueid=[fuzzy_uuid],
|
||||
managedby_host=[fqdn2],
|
||||
userclass=[u'webserver', u'mailserver'],
|
||||
has_keytab=False,
|
||||
has_password=False,
|
||||
),
|
||||
@@ -722,6 +724,27 @@ class test_host(Declarative):
|
||||
),
|
||||
|
||||
|
||||
dict(
|
||||
desc='Retrieve %r' % fqdn2,
|
||||
command=('host_show', [fqdn2], {}),
|
||||
expected=dict(
|
||||
value=fqdn2,
|
||||
summary=None,
|
||||
result=dict(
|
||||
dn=dn2,
|
||||
fqdn=[fqdn2],
|
||||
description=[u'Test host 2'],
|
||||
l=[u'Undisclosed location 2'],
|
||||
krbprincipalname=[u'host/%s@%s' % (fqdn2, api.env.realm)],
|
||||
has_keytab=False,
|
||||
has_password=False,
|
||||
managedby_host=[fqdn2],
|
||||
userclass=[u'webserver', u'mailserver'],
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
|
||||
# This test will only succeed when running against lite-server.py
|
||||
# on same box as IPA install.
|
||||
dict(
|
||||
|
||||
Reference in New Issue
Block a user