Petr Vobornik
8ca5793160
webui: add confirmation for dns zone permission actions
...
All header actions should require confirmation.
Reviewed-By: Endi Sukma Dewata <edewata@redhat.com >
2014-06-27 14:18:33 +02:00
Nathaniel McCallum
0d21937995
Add otptoken-sync command
...
This command calls the token sync HTTP POST call in the server providing
the CLI interface to synchronization.
https://fedorahosted.org/freeipa/ticket/4260
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com >
2014-06-26 16:15:18 +02:00
Nathaniel McCallum
2767fb584a
Add the otptoken-add-yubikey command
...
This command behaves almost exactly like otptoken-add except:
1. The new token data is written directly to a YubiKey
2. The vendor/model/serial fields are populated from the YubiKey
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com >
2014-06-26 16:10:16 +02:00
Petr Vobornik
e3de467676
webui: add placeholders to login screen
...
Reviewed-By: Endi Sukma Dewata <edewata@redhat.com >
2014-06-26 12:37:39 +02:00
Petr Vobornik
2df6542232
ipa-passwd: add OTP support
...
https://fedorahosted.org/freeipa/ticket/4262
Reviewed-By: Endi Sukma Dewata <edewata@redhat.com >
2014-06-26 12:37:38 +02:00
Tomas Babej
af4518b728
sudorule: Refactor add and remove external_post_callback
...
Reviewed-By: Petr Viktorin <pviktori@redhat.com >
2014-06-25 20:14:53 +02:00
Tomas Babej
a1d6c9ab6b
sudorule: Fix the order of the parameters to have less chaotic output
...
Reviewed-By: Petr Viktorin <pviktori@redhat.com >
2014-06-25 20:14:51 +02:00
Tomas Babej
9bb88a15e0
sudorule: Make sure all the relevant attributes are checked when setting category to ALL
...
https://fedorahosted.org/freeipa/ticket/4341
Reviewed-By: Petr Viktorin <pviktori@redhat.com >
2014-06-25 20:14:51 +02:00
Tomas Babej
af2eb4d695
sudorule: Allow adding deny commands when command category set to ALL
...
https://fedorahosted.org/freeipa/ticket/4340
Reviewed-By: Petr Viktorin <pviktori@redhat.com >
2014-06-25 20:14:50 +02:00
Tomas Babej
c7da22c1e6
sudorule: Include externalhost and ipasudorunasextgroup in the list of default attributes
...
The following attributes were missing from the list of default attributes:
* externalhost
* ipasudorunasextuser
* ipasudorunasextgroup
Reviewed-By: Petr Viktorin <pviktori@redhat.com >
2014-06-25 20:14:50 +02:00
Tomas Babej
9304b649a3
sudorule: Allow using external groups as groups of runAsUsers
...
Adds a new attribute ipaSudoRunAsExtUserGroup and corresponding hooks
sudorule plugin.
https://fedorahosted.org/freeipa/ticket/4263
Reviewed-By: Petr Viktorin <pviktori@redhat.com >
2014-06-25 20:14:49 +02:00
Tomas Babej
a228d7a3cb
sudorule: Allow using hostmasks for setting allowed hosts
...
Adds a new --hostmasks option to sudorule-add-host and sudorule-remove-host
commands, which allows setting a range of hosts specified by a hostmask.
https://fedorahosted.org/freeipa/ticket/4274
Reviewed-By: Petr Viktorin <pviktori@redhat.com >
2014-06-25 20:14:49 +02:00
Tomas Babej
5a1207cb6e
sudorule: PEP8 fixes in sudorule.py
...
Reviewed-By: Petr Viktorin <pviktori@redhat.com >
2014-06-25 20:14:49 +02:00
Martin Basti
816007bdd9
Fix incompatible DNS permission
...
dns(forward)zone-add/remove-permission can work with permissions with
relative zone name
Ticket:https://fedorahosted.org/freeipa/ticket/4383
Reviewed-By: Petr Viktorin <pviktori@redhat.com >
2014-06-25 18:31:27 +02:00
Tomas Babej
c2e6b74029
trusts: Allow reading system trust accounts by adtrust agents
...
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com >
2014-06-25 15:01:52 +02:00
Tomas Babej
8f9838c7ef
trusts: Add more read attributes
...
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com >
2014-06-25 15:01:52 +02:00
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