Commit Graph

775 Commits

Author SHA1 Message Date
Martin Kosek
bc6f9accd9 Need force option in DNS zone adder dialog
When adding a new DNS zone in the WebUI, IPA server will verify
whether the nameserver is in DNS. Sometimes it is necessary to
skip the verification.

This patch adds a --force option already available in CLI which
can skip this the verification.

https://fedorahosted.org/freeipa/ticket/1105
2011-04-21 19:03:38 +00:00
Martin Kosek
d9c1761234 Remove unwanted trimming in text fields
UI trims whitespace at the beginning or at the end when user data
are being saved. This confuses is_dirty function which incorrectly
recognizes given field as modified.

This patch fixes this issue for both general text fields and
ACI filter field.

https://fedorahosted.org/freeipa/ticket/1096
2011-04-21 19:03:03 +00:00
Jan Cholasta
c31d7b9ad6 Fix some minor issues uncovered by pylint.
Disable pylint error _ undefined in i18n tests
Fix missing os import in ipa-nis-manage
2011-04-20 14:38:02 -04:00
Endi S. Dewata
fc7c1cbb6a Entitlement download.
A Download link has been added to download entitlement certificates.
2011-04-18 11:12:02 -04:00
Endi S. Dewata
8f9ddb058f Entitlement import.
The entitlement facet will invoke entitle_status to check the entitlement
status and show the appropriate buttons. If it's unregistered it will show
Register and Import button. If it's registered it will show the Consume
button only. If it's imported it will show the Import button only. The
Import button will open a dialog box for importing entitlement certificate.

Ticket #277
2011-04-18 11:11:57 -04:00
Rob Crittenden
fe67680da5 The default groups we create should have ipaUniqueId set
This adds a new directive to ipa-ldap-updater: addifnew. This will add
a new attribute only if it doesn't exist in the current entry. We can't
compare values because the value we are adding is automatically generated.

ticket 1177
2011-04-15 13:02:17 +02:00
Endi S. Dewata
e3ec1fb7ef Entitlement registration.
The entitlement facet will show buttons according to the entitlement
status. If it's unregistered, the facet will show a Register button.
If it's registered, the facet will show a Consume button.
2011-04-14 23:05:09 +00:00
Endi S. Dewata
805b94f22d Merged IPA.cmd() into IPA.command().
The IPA.cmd() has been merged into IPA.command(). All invocations
and test cases have been converted.

Ticket #988
2011-04-13 23:27:50 -04:00
Jan Cholasta
1ac3ed2c27 Fix lint false positives. 2011-04-13 15:58:45 +02:00
Rob Crittenden
d42bf3f530 Fix traceback in ipa-nis-manage.
The root user cannot use ldapi because of the autobind configuration.
Fall back to a standard GSSAPI sasl bind if the external bind fails.
With --ldapi a regular user may be trying this as well, catch that
and report a reasonable error message.

This also gives priority to the DM password if it is passed in.

Also require the user be root to run the ipa-nis-manage command.
We enable/disable and start/stop services which need to be done as root.

Add a new option to ipa-ldap-updater to prompt for the DM password.
Remove restriction to be run as root except when doing an upgrade.

Ticket 1157
2011-04-11 15:33:03 -04:00
Endi S. Dewata
68ff18ed10 Updated Selenium tests.
The Selenium tests have been updated to improve robustness.
2011-04-11 17:21:33 +00:00
Endi S. Dewata
9645d50912 Entitlements. 2011-04-11 16:04:12 +00:00
Endi S. Dewata
6df53183a8 Refactored search facet.
To simplify customization, the add(), remove(), and refresh() methods
have been moved from IPA.search_widget into IPA.search_facet.
2011-04-11 16:03:42 +00:00
Endi S. Dewata
689fd30b52 Refactored builder interface.
The IPA.entity_builder has been modified to take a 'factory' parameter
in custom facet's and custom dialog's spec. The IPA.dialog has been
modified to take an array of fields in the spec. The IPA.search_facet
has been modified to take an array of columns in the spec.
2011-04-11 16:03:37 +00:00
Endi S. Dewata
f0f83a862e Refactored action panel and client area.
To improve code readability and extensibility the containers for action
panel and client area are now created in IPA.entity.setup(). The 'client area'
has been renamed into 'content'. The IPA.facet.create() has been renamed to
IPA.facet.create_content().
2011-04-11 16:03:30 +00:00
Jr Aquino
25d301ef71 Add memberHost and memberUser to default indexes
https://fedorahosted.org/freeipa/ticket/1138
2011-04-08 11:00:24 -04:00
Jan Cholasta
df8120702a Fix typo in ipa-server-install. 2011-04-08 09:27:01 +02:00
Rob Crittenden
b9a2c11d6f Fix ORDERING in some attributetypes and remove other unnecessary elements.
Looking at the schema in 60basev2.ldif there were many attributes that did
not have an ORDERING matching rule specified correctly. There were also a
number of attributeTypes that should have been just SUP
distinguishedName that had a combination of SUP, SYNTAX, ORDERING, etc.

This requires 389-ds-base-1.2.8.0-1+

ticket 1153
2011-04-05 21:46:32 -04:00
Endi S. Dewata
86995509a1 Added functional test runner. 2011-04-05 21:21:54 +00:00
Endi S. Dewata
e3a76d435e Initial Selenium test cases.
http://www.freeipa.org/page/Selenium
2011-03-31 20:24:55 -04:00
Adam Young
6948c0813d code review fixes
this version includes using spec for detail_facets
2011-03-31 17:29:33 -04:00
Adam Young
ef57ee0d93 default all false
no longer default to all: true for searches, only specify it for user searches
2011-03-31 17:29:33 -04:00
Adam Young
4270e26adb define entities using builder and more declarative syntax
merged hbac and sudo in to single files

associaton facet and table supports linking
2011-03-31 17:29:33 -04:00
Adam Young
db91321fd2 update metadata with label changes 2011-03-31 17:29:33 -04:00
Jan Cholasta
7515fd5563 Add note about ipa-dns-install to ipa-server-install man page.
ticket 1082
2011-03-31 16:38:43 -04:00
Rob Crittenden
8719336652 Allow a client to enroll using principal when the host has a OTP
If the host has a one-time password but krbPrincipalName wasn't set yet
then the enrollment would fail because writing the principal is not
allowed. This creates an ACI that only lets it be written if it is not
already set.

ticket 1075
2011-03-30 10:03:44 -04:00
Martin Kosek
6fbe0e86e9 Replica installation fails for self-signed server
When IPA server was configured as self-signed (--selfsign option)
the replica always failed to install.

https://fedorahosted.org/freeipa/ticket/1122
2011-03-30 10:00:13 -04:00
Endi S. Dewata
cb5e709e7d Fixed undefined label in permission adder dialog box.
The IPA.rights_widget was fixed to invoke the base init() method
to load the i18n labels properly.

Ticket 1113
2011-03-29 17:52:19 -04:00
Rob Crittenden
ca5332951c Automatically update IPA LDAP on rpm upgrades
Re-enable ldapi code in ipa-ldap-updater and remove the searchbase
restriction when run in --upgrade mode. This allows us to autobind
giving root Directory Manager powers.

This also:
 * corrects the ipa-ldap-updater man page
 * remove automatic --realm, --server, --domain options
 * handle upgrade errors properly
 * saves a copy of dse.ldif before we change it so it can be recovered
 * fixes an error discovered by pylint

ticket 1087
2011-03-21 13:23:53 -04:00
Adam Young
e5b30a89b9 pwpolicy priority
Priority is now a required field in order to add a new password policy.  Thus, not having the field present means we cannot create one.

https://fedorahosted.org/freeipa/ticket/1102
2011-03-18 16:06:08 -04:00
Pavel Zuna
b2a4f1c049 Update translation file (ipa.pot). 2011-03-18 14:59:34 -04:00
Rob Crittenden
861d1bbdca Fix SELinux errors caused by enabling TLS on dogtag 389-ds instance.
This fixes 2 AVCS:

* One because we are enabling port 7390 because an SSL port must be
  defined to use TLS On 7389.
* We were symlinking to the main IPA 389-ds NSS certificate databsae.
  Instead generate a separate NSS database and certificate and have
  certmonger track it separately

I also noticed some variable inconsistency in cainstance.py. Everywhere
else we use self.fqdn and that was using self.host_name. I found it
confusing so I fixed it.

ticket 1085
2011-03-15 14:09:57 -04:00
Rob Crittenden
9dfb0f05b0 Use TLS for dogtag replication agreements.
Configure the dogtag 389-ds instance with SSL so we can enable TLS
for the dogtag replication agreements. The NSS database we use is a
symbolic link to the IPA 389-ds instance.

ticket 1060
2011-03-10 09:57:36 -05:00
Endi S. Dewata
ed5cffd026 Fixed self service page.
Collaborated with ayoung to fix this problem:
https://fedorahosted.org/freeipa/ticket/1070
2011-03-08 17:05:01 -05:00
Rob Crittenden
8c50ea3da3 chkconfig the ipa service off when it is uninstalled.
ticket 1056
2011-03-08 10:23:10 -05:00
Martin Kosek
46221e57bf Improve error handling and return status codes in ipactl
There are cases when ipactl returns success even when it fails. Plus,
when the error really is detected the status codes are not LSB
compliant. This may result in consequent issues.

This patch improves error handling in ipactl and adds LSB compliant
status codes. Namely:

0   program is running or service is OK
3   program is not running
4   program or service status is unknown

for "status" action. Status code 4 is issued when IPA is not
configured to distinguish this state from not running IPA.

For other actions, the following non-zero status codes are
implemented:

1   generic or unspecified error
2   invalid or excess argument(s)
4   user had insufficient privilege
6   program is not configured

https://fedorahosted.org/freeipa/ticket/1055
2011-03-07 18:16:48 -05:00
Endi S. Dewata
80f497a889 Fixed memory leak caused by certificate dialogs.
Ticket 1054
2011-03-07 14:53:29 -05:00
Endi S. Dewata
154ed91457 Fixed memory leak caused by IPA.error_dialog.
Ticket 1054
2011-03-06 20:50:07 -05:00
Endi S. Dewata
2a6e7b5e3c Fixed memory leak caused by DNS record deleter dialog.
Ticket 1054
2011-03-04 20:12:50 -05:00
Endi S. Dewata
b4952e27ec Fixed memory leak caused by DNS record adder dialog.
Ticket 1054
2011-03-04 16:39:07 -05:00
Endi S. Dewata
6fc488e12f Fixed memory leak caused by reset password dialog.
Ticket 1054
2011-03-04 16:39:07 -05:00
Endi S. Dewata
8b041cd1a3 Fixed memory leak caused by is_dirty dialogs.
Ticket 1054
2011-03-04 16:39:07 -05:00
Endi S. Dewata
f4b8b36959 Fixed memory leak caused by IPA.dialog.
Ticket 1054
2011-03-04 16:39:07 -05:00
Endi S. Dewata
24ba58bc61 Fixed host enrollment time
The month in krblastpwdchange (LDAP Generalized Time) is 1-based
but the month in JavaScript Date.setUTCFullYear() is 0-based so it
needs a conversion.

Ticket 1053
2011-03-04 11:14:50 -05:00
Rob Crittenden
c0ecdd1395 Skip DNS validation checks if we're setting up DNS in ipa-server-install.
If we're going to be authoritative ourselves don't bother with what
other DNS servers think.

ticket 1036
2011-03-04 11:05:40 -05:00
Adam Young
8a0d0d7e15 type in default text 2011-03-03 19:33:36 -05:00
Pavel Zuna
64575a411b Use ldapi: instead of unsecured ldap: in ipa core tools.
The patch also corrects exception handling in some of the tools.

Fix #874
2011-03-03 14:04:34 -05:00
Rob Crittenden
f69dc03f07 Need to restart the dogtag 388-ds instance before using it.
Restart the 389-ds instance to ensure all schema is loaded that
dogtag may have installed as files.

According to bug
https://bugzilla.redhat.com/show_bug.cgi?id=680984 this it is only needed
on clones.

ticket 1024
2011-03-03 11:02:03 -05:00
Martin Kosek
f785af4efe Inconsistent sysrestore file handling by IPA server installer
IPA server/replica uninstallation may fail when it tries to restore
a Directory server configuration file in sysrestore directory, which
was already restored before.

The problem is in Directory Server uninstaller which uses and modifies
its own image of sysrestore directory state instead of using the
common uninstaller image.

https://fedorahosted.org/freeipa/ticket/1026
2011-03-03 11:02:02 -05:00
Adam Young
620903ff27 fix truncated message 2011-03-03 15:38:53 -05:00