Petr Viktorin
175b19bbf8
Add several CRUD default permissions
...
Add missing Add, Modify, Removedefault permissions to:
- automountlocation (Add/Remove only; locations have
no data to modify)
- privilege
- sudocmdgroup (Modify only; the others were present)
Related to: https://fedorahosted.org/freeipa/ticket/4346
Reviewed-By: Martin Kosek <mkosek@redhat.com >
2014-06-24 13:53:41 +02:00
Petr Viktorin
52003a9ffb
Convert Sudo Command Group default permissions to managed
...
Part of the work for: https://fedorahosted.org/freeipa/ticket/4346
Reviewed-By: Martin Kosek <mkosek@redhat.com >
2014-06-24 13:53:41 +02:00
Petr Viktorin
6b478628dc
Convert Sudo Command default permissions to managed
...
Part of the work for: https://fedorahosted.org/freeipa/ticket/4346
Reviewed-By: Martin Kosek <mkosek@redhat.com >
2014-06-24 13:53:41 +02:00
Petr Viktorin
439dd7fa74
Convert Service default permissions to managed
...
Part of the work for: https://fedorahosted.org/freeipa/ticket/4346
Reviewed-By: Martin Kosek <mkosek@redhat.com >
2014-06-24 13:53:41 +02:00
Petr Viktorin
f8dc51860c
Convert SELinux User Map default permissions to managed
...
Part of the work for: https://fedorahosted.org/freeipa/ticket/4346
Reviewed-By: Martin Kosek <mkosek@redhat.com >
2014-06-24 13:53:41 +02:00
Petr Viktorin
820a60420d
Convert Role default permissions to managed
...
Part of the work for: https://fedorahosted.org/freeipa/ticket/4346
Reviewed-By: Martin Kosek <mkosek@redhat.com >
2014-06-24 13:53:40 +02:00
Petr Viktorin
f881f06364
Convert the Modify privilege membership permission to managed
...
Part of the work for: https://fedorahosted.org/freeipa/ticket/4346
Reviewed-By: Martin Kosek <mkosek@redhat.com >
2014-06-24 13:53:40 +02:00
Petr Viktorin
0c4d13e136
Convert Netgroup default permissions to managed
...
Part of the work for: https://fedorahosted.org/freeipa/ticket/4346
Reviewed-By: Martin Kosek <mkosek@redhat.com >
2014-06-24 13:53:40 +02:00
Petr Viktorin
978af07dd5
Convert Hostgroup default permissions to managed
...
Part of the work for: https://fedorahosted.org/freeipa/ticket/4346
Reviewed-By: Martin Kosek <mkosek@redhat.com >
2014-06-24 13:53:40 +02:00
Petr Viktorin
8e8e6b1ae7
Convert HBAC Service Group default permissions to managed
...
Part of the work for: https://fedorahosted.org/freeipa/ticket/4346
Reviewed-By: Martin Kosek <mkosek@redhat.com >
2014-06-24 13:53:40 +02:00
Petr Viktorin
49abbb1ead
Convert HBAC Service default permissions to managed
...
Part of the work for: https://fedorahosted.org/freeipa/ticket/4346
Reviewed-By: Martin Kosek <mkosek@redhat.com >
2014-06-24 13:53:40 +02:00
Petr Viktorin
81d8c8acb5
Convert HBAC Rule default permissions to managed
...
Part of the work for: https://fedorahosted.org/freeipa/ticket/4346
Reviewed-By: Martin Kosek <mkosek@redhat.com >
2014-06-24 13:53:40 +02:00
Petr Viktorin
af366278b8
Convert Group default permissions to managed
...
Part of the work for: https://fedorahosted.org/freeipa/ticket/4346
Reviewed-By: Martin Kosek <mkosek@redhat.com >
2014-06-24 13:53:40 +02:00
Petr Viktorin
afac09b8f3
Convert Automount default permissions to managed
...
Part of the work for: https://fedorahosted.org/freeipa/ticket/4346
Reviewed-By: Martin Kosek <mkosek@redhat.com >
2014-06-24 13:53:40 +02:00
Jan Cholasta
d6fb110b77
Support requests with SAN in cert-request.
...
For each SAN in a request there must be a matching service entry writable by
the requestor. Users can request certificates with SAN only if they have
"Request Certificate With SubjectAltName" permission.
https://fedorahosted.org/freeipa/ticket/3977
Reviewed-By: Martin Kosek <mkosek@redhat.com >
2014-06-24 12:10:01 +02:00
Petr Viktorin
61eeea9e69
netgroup: Add objectclass attribute to read permissions
...
The entries were unreadable without this.
Additional fix for: https://fedorahosted.org/freeipa/ticket/3566
Reviewed-By: Martin Kosek <mkosek@redhat.com >
2014-06-23 17:41:49 +02:00
Tomas Babej
ef5309d376
trusts: Allow reading ipaNTSecurityIdentifier in user and group objects
...
https://fedorahosted.org/freeipa/ticket/4385
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com >
2014-06-23 15:27:33 +02:00
Petr Viktorin
14e2eb9171
host permissions: Allow writing attributes needed for automatic enrollment
...
- userclass
added to existing Modify hosts permission
- usercertificate, userpassword
added to a new permissions
https://fedorahosted.org/freeipa/ticket/4252
Reviewed-By: Martin Kosek <mkosek@redhat.com >
2014-06-23 12:44:33 +02:00
Petr Viktorin
8a5110305f
Convert Host default permissions to managed
...
Part of the work for: https://fedorahosted.org/freeipa/ticket/4346
Reviewed-By: Martin Kosek <mkosek@redhat.com >
2014-06-23 12:44:32 +02:00
Petr Viktorin
ac8539bd34
Add posixgroup to groups' permission object filter
...
Private groups don't have the 'ipausergroup' objectclass.
Add posixgroup to the objectclass filters to make
"--type group" permissions apply to all groups.
https://fedorahosted.org/freeipa/ticket/4372
Reviewed-By: Martin Kosek <mkosek@redhat.com >
2014-06-23 10:54:43 +02:00
Petr Viktorin
02b5074d84
permission plugin: Join --type objectclass filters with OR
...
For groups, we will need to filter on either posixgroup (which UPGs
have but non-posix groups don't) and groupofnames/nestedgroup
(which normal groups have but UPGs don't).
Join permission_filter_objectclasses with `|` and add them as
a single ipapermtargetfilter value.
Part of the work for: https://fedorahosted.org/freeipa/ticket/3566
Reviewed-By: Martin Kosek <mkosek@redhat.com >
2014-06-23 10:54:43 +02:00
Nathaniel McCallum
cf8f143e98
Make otptoken use os.urandom() for random data
...
This also fixes an error where the default value was not respecting
the KEY_LENGTH variable.
Reviewed-By: Simo Sorce <ssorce@redhat.com >
2014-06-20 21:27:50 +02:00
Martin Basti
2229e89bbb
Digest part in DLV/DS records allows only heaxadecimal characters
...
Reviewed-By: Petr Vobornik <pvoborni@redhat.com >
2014-06-20 16:46:03 +02:00
Martin Basti
7cdc4178b0
DNSSEC: DLVRecord type added
...
Ticket: https://fedorahosted.org/freeipa/ticket/4328
Reviewed-By: Petr Vobornik <pvoborni@redhat.com >
2014-06-20 16:46:02 +02:00
Martin Basti
5b95be802c
DNSSEC: added NSEC3PARAM record type
...
Ticket: https://fedorahosted.org/freeipa/ticket/4328
Reviewed-By: Petr Vobornik <pvoborni@redhat.com >
2014-06-20 15:41:40 +02:00
Martin Basti
48865aed5f
DNSSEC: remove unsuported records
...
Removed SIG, NSEC, KEy, RRSIG records
Ticket: https://fedorahosted.org/freeipa/ticket/4328
Reviewed-By: Petr Vobornik <pvoborni@redhat.com >
2014-06-20 15:41:39 +02:00
Martin Basti
727f5f3373
Create BASE zone class
...
Zones and forward zones have a lot of common code,
this patch remove duplications by creating a DNSBase
class and its subclasses
design: http://www.freeipa.org/page/V4/Forward_zones
Ticket: https://fedorahosted.org/freeipa/ticket/3210
Reviewed-By: Petr Vobornik <pvoborni@redhat.com >
2014-06-20 13:14:45 +02:00
Martin Basti
266015c3e2
Prevent commands to modify different type of a zone
...
Commands dnsforwardzone-* can modify only forward zones
Commands dnszone-* can modify only (master) zones
Commands dnsrecord-* can work only with master zones
design: http://www.freeipa.org/page/V4/Forward_zones
Ticket: https://fedorahosted.org/freeipa/ticket/3210
Reviewed-By: Petr Vobornik <pvoborni@redhat.com >
2014-06-20 13:14:45 +02:00
Martin Basti
49068ade92
Separate master and forward DNS zones
...
Forward zones are stored in idnsforwadzone objectclasses.
design: http://www.freeipa.org/page/V4/Forward_zones
Ticket: https://fedorahosted.org/freeipa/ticket/3210
Reviewed-By: Petr Vobornik <pvoborni@redhat.com >
2014-06-20 13:14:45 +02:00
Petr Viktorin
49e83256b4
Convert Password Policy default permissions to managed
...
Part of the work for: https://fedorahosted.org/freeipa/ticket/4346
Reviewed-By: Martin Kosek <mkosek@redhat.com >
2014-06-18 14:56:43 +02:00
Petr Viktorin
ca465e8ae7
Convert COSTemplate default permissions to managed
...
Part of the work for: https://fedorahosted.org/freeipa/ticket/4346
Reviewed-By: Martin Kosek <mkosek@redhat.com >
2014-06-18 14:56:42 +02:00
Petr Viktorin
853b6ef4ce
Convert DNS default permissions to managed
...
Convert the existing default permissions.
The Read permission is split between Read DNS Entries and Read
DNS Configuration.
Part of the work for: https://fedorahosted.org/freeipa/ticket/4346
Reviewed-By: Martin Kosek <mkosek@redhat.com >
2014-06-18 14:45:50 +02:00
Tomas Babej
637ef11109
sudorule: Allow unsetting sudoorder
...
After setting sudoorder, you are unable to unset it, since the
check for uniqueness of order of sudorules is applied incorrectly.
Fix the behaviour and cover it in the test suite.
https://fedorahosted.org/freeipa/ticket/4360
Reviewed-By: Martin Kosek <mkosek@redhat.com >
2014-06-18 12:59:25 +02:00
Tomas Babej
4d2ef43f28
ipaplatform: Move all filesystem paths to ipaplatform.paths module
...
https://fedorahosted.org/freeipa/ticket/4052
Reviewed-By: Petr Viktorin <pviktori@redhat.com >
2014-06-16 19:48:20 +02:00
Nathaniel McCallum
98851256f9
Add support for managedBy to tokens
...
This also constitutes a rethinking of the token ACIs after the introduction
of SELFDN support.
Admins, as before, have full access to all token permissions.
Normal users have read/search/compare access to all of the non-secret data
for tokens assigned to them, whether managed by them or not. Users can add
tokens if, and only if, they will also manage this token.
Managers can also read/search/compare tokens they manage. Additionally,
they can write non-secret data to their managed tokens and delete them.
When a normal user self-creates a token (the default behavior), then
managedBy is automatically set. When an admin creates a token for another
user (or no owner is assigned at all), then managed by is not set. In this
second case, the token is effectively read-only for the assigned owner.
This behavior enables two important other behaviors. First, an admin can
create a hardware token and assign it to the user as a read-only token.
Second, when the user is deleted, only his self-managed tokens are deleted.
All other (read-only) tokens are instead orphaned. This permits the same
token object to be reasigned to another user without loss of any counter
data.
https://fedorahosted.org/freeipa/ticket/4228
https://fedorahosted.org/freeipa/ticket/4259
Reviewed-By: Jan Cholasta <jcholast@redhat.com >
2014-06-16 10:13:59 +02:00
Petr Spacek
91d3d4d7b2
Fix --ttl description for DNS zones
...
TTL specified in idnsZone object class affects all records at zone apex,
not only SOA record.
Reviewed-By: Nathaniel McCallum <npmccallum@redhat.com >
2014-06-12 09:57:58 +02:00
Petr Viktorin
b6258d08d6
Make sure member* attrs are always granted together in read permissions
...
Memberofindirect processing of an entry doesn't work if the user doesn't
have rights to any one of these attributes:
- member
- memberuser
- memberhost
Add all of these to any read permission that specifies any of them.
Add a check to makeaci that will enforce this for any future permissions.
Reviewed-By: Martin Kosek <mkosek@redhat.com >
2014-06-11 13:21:30 +02:00
Petr Viktorin
2f3cdba546
Make 'permission' the default bind type for managed permissions
...
This reduces typing (or copy/pasting), and draws a bit of attention
to any non-default privileges (currently 'any' or 'anonymous').
Leaving the bindtype out by mistake isn't dangerous: by default
a permission is not granted to anyone, since it is not included in
any priviliges.
Reviewed-By: Martin Kosek <mkosek@redhat.com >
2014-06-11 13:21:29 +02:00
Petr Viktorin
52a4b54635
permission plugin: Sort rights when writing the ACI
...
This makes the ACI independent on set/dict iteration order.
Reviewed-By: Martin Kosek <mkosek@redhat.com >
2014-06-11 13:21:28 +02:00
Nathaniel McCallum
255cbb4976
Update all remaining plugins to the new Registry API
...
Reviewed-By: Petr Vobornik <pvoborni@redhat.com >
2014-06-11 09:24:22 +02:00
Martin Basti
47d8fec92f
Make zonenames absolute in host plugin
...
This is fix for regression caused by IDNA patch, zone names must be
absolute.
Reviewed-By: Nathaniel McCallum <npmccallum@redhat.com >
2014-06-11 09:22:36 +02:00
Petr Viktorin
46faed0b4b
Add missing attributes to User managed permissions
...
- Add nsAccountLock to the Unlock user accounts permission
- Add member to Read User Membership
- Add userClass and preferredLanguage to Modify Users
https://fedorahosted.org/freeipa/ticket/3697
Reviewed-By: Martin Kosek <mkosek@redhat.com >
2014-06-10 13:55:56 +02:00
Petr Viktorin
53a63ae346
Convert User default permissions to managed
...
Part of the work for: https://fedorahosted.org/freeipa/ticket/4346
Reviewed-By: Martin Kosek <mkosek@redhat.com >
2014-06-10 13:55:56 +02:00
Petr Viktorin
e3b20b9d03
Split long docstrings that were recently modified
...
When the strings are changed again, translators will only need to
re-translate the modified parts.
See: https://fedorahosted.org/freeipa/ticket/3587
Reviewed-By: Martin Kosek <mkosek@redhat.com >
2014-06-10 13:19:32 +02:00
Petr Vobornik
2af21743df
webui: move host action panel actions to action dropdown
...
Reviewed-By: Endi Sukma Dewata <edewata@redhat.com >
2014-06-10 10:23:30 +02:00
Petr Vobornik
29f60931e2
webui: association adder dialog - change find label to filter
...
also add filter placeholder
Reviewed-By: Endi Sukma Dewata <edewata@redhat.com >
2014-06-10 10:23:29 +02:00
Petr Vobornik
40a25ecf37
webui: add search box placeholder text
...
Reviewed-By: Endi Sukma Dewata <edewata@redhat.com >
2014-06-10 10:23:29 +02:00
Petr Vobornik
21651d9d3f
webui: improve pagination
...
pagination now support:
- styles updated to PatternFly + DataTables
- added 'First' and 'Last' button
Reviewed-By: Endi Sukma Dewata <edewata@redhat.com >
2014-06-10 10:23:27 +02:00
Petr Vobornik
f631b07507
webui: activity indicators
...
https://fedorahosted.org/freeipa/ticket/4177
https://fedorahosted.org/freeipa/ticket/4255
Reviewed-By: Endi Sukma Dewata <edewata@redhat.com >
2014-06-10 10:23:27 +02:00
Petr Vobornik
a98df325b6
webui: add confirmation to action dropdown actions
...
Reviewed-By: Endi Sukma Dewata <edewata@redhat.com >
2014-06-10 10:23:26 +02:00