Commit Graph

729 Commits

Author SHA1 Message Date
Rob Crittenden
fd92652ace Make the memberof task a public function.
This is used when a new replica is created as well as whenever a replica
is re-initialized from another master.

In order for this to work when not creating an instance the __init__
function needs to be able to determine the suffix and the dm_password
is needed.

I've also added the time to the RDN of the member task to ensure
uniqueness.

438222
2008-03-27 09:33:01 -04:00
Rob Crittenden
1a1e020258 Add additional detail to error messages.
This runs the risk of showing too much and confusing users but on the other
hand it often includes required information detailing why the error
occurred such as what attribute the user lacks write access too and why
changing a password failed.

438057
2008-03-25 09:48:23 -04:00
Simo Sorce
402187c838 Make Install and Uninstall have different log files 2008-03-24 12:22:34 -04:00
Rob Crittenden
c3a14e978c Don't error out if the user isn't in any groups.
438222
2008-03-26 16:45:06 -04:00
Rob Crittenden
79db4c3aa2 Fix file permissions on ca.crt when it is installed.
438220
2008-03-26 12:11:58 -04:00
Rob Crittenden
5f72955bca Add some missing man pages
436501
2008-03-17 18:04:49 -04:00
Rob Crittenden
4c288e653a Re-root the IPA web UI to /ipa and the XML-RPC interface to /ipaxml.
438021
2008-03-24 15:54:55 -04:00
Rob Crittenden
0b7117596d We are really changing the kerberos principal key and not the password when
we do updates, so use the right terminology internally. Also fix the actual
field we update (and grant permission appropriately in delegations).

The DS password handles updating userPassword and any Samba passwords
as necessary.

438256
2008-03-24 10:53:33 -04:00
Rob Crittenden
6464c40424 Start ntpd after FDS so that the ntp user can be found.
Start httpd after ipa_webgui becuse otherwise mod_proxy may not like it if it
can't connect to the UI listening port

438090
2008-03-24 11:02:49 -04:00
Rob Crittenden
e54a16ae1c Allow the realm to be included in the name passed to add_service_principal()
This is more kerberos-like and it doesn't hurt anything, we just won't
allow realms other than our own to be used.

437566
2008-03-17 14:09:44 -04:00
Rob Crittenden
a39f38f65b Adding items to the set needs to be lower case to prevent duplicates.
This function was assuming that the target list was all lower-case so the
set could end up with duplicate values which would get kicked out by LDAP.

433680
2008-03-10 11:36:04 -04:00
Rob Crittenden
5547ed320a Remove ACI that was causing RDN changes to fail
Fix for session code so RDN change can succeed

433523
2008-03-10 10:04:15 -04:00
Rob Crittenden
092b1b694c Add ability to initialize a replication agreement
Add ability to force a synch to occur
Clean up a lot of unused code in ipaldap.py. This lets us do a simple bind
  without being root (it used to try to read dse.ldif)

436237
2008-03-07 10:56:03 -05:00
Rob Crittenden
03d7125eac Verify that the hostname is correct in /etc/hosts
Don't ignore exceptions when getting the hostname from the user

433515
2008-03-06 13:17:28 -05:00
Rob Crittenden
d7e30fa7ee Use standard size and alignment for the packed data so it works on 64-bit hosts 2008-03-06 21:59:19 -05:00
Rob Crittenden
2e46645ad5 Remove some duplicate id's that are not valid HTML
Remove the footer. It was a leftover from the original TurboGears-generated
project that Kevin McCarthy had modified.
2008-03-05 13:36:39 -05:00
Rob Crittenden
74c29b1bf6 Remove the ability for the average user to add/delete groups on user edit page
If they have any delegations at all (are in editors group) they will have
these links.

433387
2008-03-04 14:27:06 -05:00
Rob Crittenden
ea53922951 Filter out K/M and krbtgt principals from the service principals list.
435713
2008-03-03 17:11:38 -05:00
Rob Crittenden
6301914941 Require that the hostname is a DNS A record and that the forward and reverse
match.

433515
2008-03-03 16:10:06 -05:00
Rob Crittenden
e88d62ffcf Allow python to look in /usr/sbin for ipa_webgui
429999
2008-03-04 15:06:11 -05:00
Rob Crittenden
f948904b5c KDC is Key Distribution Center, not Kerberos Domain Controller
435949
2008-03-04 14:47:47 -05:00
Simo Sorce
449344e683 Fix boot.ldif generation, the domain name component must be derived
from the realm not the domain.
One line fix.
2008-03-04 14:25:10 -05:00
Rob Crittenden
b3c8780c1d Fix build breakage. 2008-03-03 22:30:10 -05:00
Rob Crittenden
b49942fe96 Close all fds when running another program. This fixes the SELinux AVCs.
Put installation log files into /var/log.

430024
2008-03-03 16:14:48 -05:00
Rob Crittenden
79557e6bf2 Do argument type checking in the XML-RPC interface
Fix error in service principals where the service wasn't being removed before
doing the DNS lookup.
2008-02-29 10:58:07 -05:00
Rob Crittenden
cc3b9cddef Add small script to start/stop all of the services that IPA requires in the
proper order.

435026
2008-02-28 11:37:06 -05:00
Simo Sorce
d7ad62cd7e Make sure all entries are generated by us according to IPA
default tree. This patch make sure that the DS setup script
does not add unwanted entries.
2008-02-28 13:35:10 -05:00
Nathan Kinder
2c559fce85 Fixed the way we call ipa-client-install from ipa-replica-install.
434980
2008-02-28 15:24:10 -08:00
Rob Crittenden
ab86f52999 Fix off-by-one error in the number of steps to install a service 2008-02-28 21:57:52 -05:00
Rob Crittenden
999bd4fb1e In the UI we don't want to display Edit links unless someone can actually
edit things. We use the 'editors' group for this. This group itself grants
no permission other than displaying certain things in the UI.

In order to be in the editors group a user must be a member of a group that
is the source group in a delegation. The memberof plugin will do all the
hard work to be sure that a user's memberof contains cn=editors if they
are in a delegated group.

432874
2008-02-27 15:14:52 -05:00
Rob Crittenden
d5f5026454 Don't log passwords in ipaserver-install.log
433509
2008-02-26 10:48:45 -05:00
Rob Crittenden
f49ed705b3 The admins group cannot be renamed.
433880
2008-02-27 10:50:17 -05:00
Rob Crittenden
f02b5c1962 Use correct variable for determining the host name
435055
2008-02-26 22:34:06 -05:00
Rob Crittenden
d6d12e9dc5 Require that service principals resolve to a DNS A record.
There is a --force option for those who know what they are doing.

433483
2008-02-26 13:51:56 -05:00
Rob Crittenden
8f0d4a8ed3 Add failover to the XML-RPC client
433506
2008-02-22 14:47:15 -05:00
Rob Crittenden
66df51c754 Use the label "Full Name" for "Common Name"
433525
2008-02-26 09:33:39 -05:00
Simo Sorce
d2fd2270cd We do not require the Master password anymore, fix code and error message 2008-02-25 17:18:18 -05:00
Simo Sorce
e50f0fdbee Fix unattended install 2008-02-25 17:16:18 -05:00
Rob Crittenden
02d3c5aff3 Don't allow a group to be a member of itself.
434542
2008-02-22 15:40:21 -05:00
Rob Crittenden
b9c7056a2a Remove HTML from Javascript error message and fix up language to be clearer
433374
2008-02-22 09:36:12 -05:00
Rob Crittenden
231913f3c2 Make sure KrbPrincipalName is unique server-wide
Fix the build. Somehow this file didn't get committed.
2008-02-21 23:22:31 -05:00
Simo Sorce
144a728182 Make sure KrbPrincipalName is unique server-wide 2008-02-21 22:31:16 -05:00
Simo Sorce
fbb2637a48 Syntax error, ')' in the worng place throws nasty 500 errors on ldap errors :) 2008-02-21 17:16:17 -05:00
Rob Crittenden
49148dc34a Redirect users when they don't use the FQDN on both SSL and non-SSL ports
We update the mod_nss configuration (nss.conf) during installation to include
ipa-rewrite.conf to handle the SSL side.

433054
2008-02-21 16:25:09 -05:00
Rob Crittenden
84d1e08d76 Become freeipa-0.99.0 2008-02-21 16:11:42 -05:00
Rob Crittenden
3ede5e42a5 Don't clear out the uid from the session until the record has been updated. 2008-02-20 16:57:01 -05:00
Rob Crittenden
4c588b3d5f Don't let a regular user edit their own active status or manager
433384
2008-02-20 23:24:39 -05:00
Rob Crittenden
4bf136d95c Use basestring class when testing to see if an object is a string to support
both Unicode and byte strings.

433651
2008-02-21 11:09:53 -05:00
Rob Crittenden
87d9c037e4 Add some additional error handling
433347
2008-02-20 16:31:32 -05:00
Simo Sorce
80feb3aecf cosmetic fixes 2008-02-21 14:39:50 -05:00
Simo Sorce
ae0eaa0120 Let users write their own password, should fix 433707 2008-02-21 09:51:47 -05:00
Simo Sorce
33b746df58 merge 2008-02-21 09:38:39 -05:00
Simo Sorce
f87db10a07 Purely indentiation, trailing spaces, cosmetic fixes 2008-02-21 09:36:35 -05:00
Rob Crittenden
e368fa1844 Create the selinux installation directory before installing files 2008-02-20 22:14:44 -05:00
Rob Crittenden
75ad48272a IE 6 doesn't support transparent PNG
Remove stray character and a debug line from the CSS

429984
2008-02-20 17:17:21 -05:00
Rob Crittenden
e58774bf2e Fix for building on RHEL 5.x. 2008-02-20 12:51:03 -05:00
Simo Sorce
0996e55573 merge 2008-02-20 11:59:45 -05:00
Rob Crittenden
936b84f569 Include and use policy icon in the UI
430954
2008-02-20 10:53:31 -05:00
Rob Crittenden
b5272bd8e0 Objects used by new CSS layout. 2008-02-20 10:45:00 -05:00
Simo Sorce
0ae42b28de Start ntpd first unless we do not want it.
Make sure we do sync the clock leaping to the current correct time.
This avoids problems with bad dates on certificates, etc..
2008-02-20 11:03:46 -05:00
Simo Sorce
46cb6e9bdd Run ipa-client-install after server install bits 2008-02-20 10:16:19 -05:00
Rob Crittenden
da24953f9a Warn if a user tries to install a replica on the wrong target machine
432691
2008-02-19 10:46:22 -05:00
Rob Crittenden
e31d33619d Add some error handling for LDAP connection issues
Verify the DM password earlier in the process

433368
2008-02-19 10:20:13 -05:00
Rob Crittenden
7e5f1514b2 Only show Delete button for admins, editors and don't let user delete them self
Resolves 433382
2008-02-18 22:41:28 -05:00
Rob Crittenden
80a4e94e5b Verify current domain with user during installation
Use that domain when creating replicas

Resolves 432066
2008-02-15 20:47:29 -05:00
Rob Crittenden
c47248c5d8 Update of CSS from Máirín Duffy including some per-object images 2008-02-19 16:43:32 -05:00
Rob Crittenden
65960a2e58 Use the proper access methods in IPA policy subcontroller.
Resolves 433062
2008-02-18 17:41:58 -05:00
Rob Crittenden
346f73057f memberOf attribute should not be replicated
Resolves 430017
2008-02-18 15:22:36 -05:00
Rob Crittenden
3ad8a2bd1b Import internationalization for kid templates patch from Masato Taruishi 2008-02-19 22:45:11 -05:00
Rob Crittenden
1aa8729644 Initial SELinux policies for ipa_kpasswd and ipa_webgui 2008-02-08 11:09:06 -05:00
Rob Crittenden
eef18e5c38 Display the path to the PKCS#12 password file at the end of installation 2008-02-19 11:40:27 -05:00
Rob Crittenden
73a674ed49 Fix bug that prevented single-character fields
Fix bug in exception handling where we were sending the wrong thing as detail.
Basically we were catching an LDAP error, generating an IPAError from it,
 catching that, then setting the detail of the 2nd exception to another IPAError
 rather than the root exception. This caused anything looking at e.detail to
 crap out

Resolves 432136
2008-02-11 16:32:54 -05:00
Rob Crittenden
5b1e7e3a5f Don't create a backup of the PKCS#12 cert on replicas
Name the file created by ipa-replica-prepare after the FQDN of the target

Resolves 432904
2008-02-14 17:39:06 -08:00
Nathan Kinder
71c21b5293 Fix bugs in handling of circular groupings in memberOf plug-in.
Resolves 432140
2008-02-14 16:27:34 -08:00
Rob Crittenden
1380d9d9de Fix incorrect form label
Resolves 432731
2008-02-14 16:04:53 -08:00
Rob Crittenden
5be3defccf Gracefully handle sys.exit() in python 2.4 2008-02-11 09:41:14 -05:00
Rob Crittenden
5f86f5a5fd Generate the multi-value entries needed when redirecting to the edit_user
page. This avoids a Nonetype error.

Resolves 432106
2008-02-08 17:34:23 -05:00
Rob Crittenden
1a38b6dfdf Install principalshow.kid 2008-02-08 17:49:49 -05:00
Rob Crittenden
6e0bda98e3 Missed a place to translate the realm name into an instance name
Catch SystemExit exceptions otherwise a trace will be shown with python 2.4
2008-02-08 15:10:26 -05:00
Rob Crittenden
802483813a Always do a chkconfig --add/--del on install/uninstall
This makes a from-tree installation work. We also do this in the rpm spec file.
Contributed by Pieter D.J. Krul
2008-02-08 15:17:20 -05:00
Rob Crittenden
7fe8e88e72 Switch 'below' to 'above' to point to the right location of the CA on the page 2008-02-07 11:32:30 -05:00
Rob Crittenden
c50ebd9657 Don't set blank values so we don't end up with empty attributes
Resolves 429895
2008-01-30 09:31:03 -05:00
Rob Crittenden
97d9c235dd Set the license uniformly to GPLv2 only. 2008-02-04 15:15:52 -05:00
Rob Crittenden
217019e9de Create /var/run/<process>.pid to play nicers with the start scripts
Need to start ipa_webgui as root and drop privs in order to write in /var/run
2008-02-06 11:02:05 -05:00
Rob Crittenden
ef5b4391de Fix broken attempt to return 0 on success, 1 on failure 2008-02-06 09:05:47 -05:00
Rob Crittenden
6935d94c14 Fix two typos 2008-02-05 16:50:12 -05:00
Rob Crittenden
07b1aef252 Return 1 on error, 0 on success 2008-02-05 13:55:06 -05:00
Rob Crittenden
5a96618f5d Use file to store the current CA serial number
No longer create a PKCS#12 file that contains the CA
No longer send the entire CA to each replica, generate the SSL certs on master
Fix number of bugs in ipa-replica-install and prepare
Produce status output during replica creation
2008-02-05 12:23:53 -05:00
Rob Crittenden
0e3ecf6270 Marked with wrong license. IPA is GPLv2. 2008-01-31 16:49:01 -05:00
Rob Crittenden
15e2abaa25 Use orig_user_dict to get krbprincipalname when changing passwords.
Add an extra exception handler so we don't return a 500 on errors.
2008-01-31 17:38:21 -05:00
Rob Crittenden
1b988fff82 Ensure that the ipa_webgui error log exists and has correct permissions.
Resolves 431089
2008-01-31 14:21:07 -05:00
Rob Crittenden
00e3a81266 Use correct variable for domain when restoring a file.
Resolves 430724
2008-01-31 10:24:22 -05:00
Rob Crittenden
473eb9992e Enable logging so we can catch startup errors either in the console or
the error log.
Add a foreground and debug flag
Resolves 430011
2008-01-30 11:55:33 -05:00
Rob Crittenden
d73dd8b427 Put user-modifiable files into /etc/ipa/html so they can be marked as
config(noreplace).
Resolves 430004
2008-01-30 09:58:15 -05:00
Rob Crittenden
aad14c5d54 Missed closing quote 2008-01-29 11:33:44 -05:00
Rob Crittenden
71e39eccd8 Remove reference to radius that wasn't used and was causing program to fail.
Resolves 429853
2008-01-29 10:08:58 -05:00
Rob Crittenden
946ef21426 Include some additional information when installing IPA.
Remove 8080 as a port that needs to be opened
bz 430088
2008-01-25 17:08:36 -05:00
Rob Crittenden
5c58015fbe Fix misspelling of the word indices. 2008-01-25 13:29:49 -05:00
Mark McLoughlin
11266d039f Re-factor the ipa_webgui and ipa_kpasswd instance code
The ipa_webgui and ipa_kpasswd instance code is identical
and I want to add another similar instance down the line,
so re-factor the code into a service.SimpleServiceInstance
class.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
2008-01-22 11:58:06 +00:00
Mark McLoughlin
5fd10b5f98 Initialise DsInstance.pkcs12_info
DsInstance.pkcs12_info isn't currently initialised in
the constructore so, e.g. __enable_ssl() assumes that
create_instance() has initialised it.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
2008-01-22 11:58:06 +00:00
Mark McLoughlin
b01ea25988 Small refactor of dsinstance.config_dirname()
If, in future, we change the server ID so that it's not
derived from the realm name, there's a fair few places
that need to be changed.

Make that easier by having config_dirname() take the
server ID rather than the realm name. That makes sense
anyway so we don't have to realm_to_serverid() so
much.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
2008-01-22 11:57:59 +00:00
Mark McLoughlin
ee7c818bde Remove questions from ipaserver.dsinstance
Let's assume that all ipaserver.dsinstance could be used
somewhere where asking questions on stdout/stdin is not
approriate and re-factor the code to be suitable in
those situations too.

i.e. make check_existing_installation() return a list of
server IDs and make check_ports() return an (unsecure,
secure) tuple indication which ports are in use.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
2008-01-22 08:03:06 +00:00
Rob Crittenden
f4ef672dd6 Listen only on the localhost interface
Resolves bz 430191
2008-01-25 10:17:37 -05:00
Rob Crittenden
34b56238d2 Dropped the last 's' in the sessions cache directory 2008-01-24 22:31:22 -05:00
Rob Crittenden
3d911a7beb Major mistake on my part by adding sessions to the wrong place. This broke
ipa_webgui.
2008-01-24 17:39:54 -05:00
Rob Crittenden
6bf366fc9a Missed one replacement of pyasn1 -> python-pyasn1 2008-01-24 14:54:41 -05:00
Rob Crittenden
00e20c2003 Use Fedora package names for PyKerberos (python-kerberos) and pyasn1
(python-pyasn1) for the specfile Requires.
2008-01-24 13:44:38 -05:00
Rob Crittenden
3594157f54 Add a copy of the LICENSE and populate some README's 2008-01-23 10:30:18 -05:00
Rob Crittenden
3302dc7446 Enable server-side sessions. It is currently using files for sessions. 2008-01-23 09:45:46 -05:00
Rob Crittenden
042fb11fa1 Fix issues reported by rpmlint.
- Removing shebangs (#!) from a bunch of python libraries
- Don't use a variable name in init scripts for the lock file
- Keep the init script name consistent with the binary name, so renamed
  ipa-kpasswd.init to ipa_kpasswd.init
- Add status option to the init scripts
- Move most python scripts out of /usr/share/ipa and into the python
  site-packages directories (ipaserver and ipaclient)
- Remove unnecessary sys.path.append("/usr/share/ipa")
- Fix the license string in the spec files
- Rename ipa-webgui to ipa_webgui everywhere
- Fix a couple of issues reported by pychecker in ipa-python
2008-01-18 16:20:36 -05:00
Mark McLoughlin
4a162f6fc8 Add ipa-server-install --uninstall
Add a --uninstall option to ipa-server-install which tries to
restore the system to the way it was before ipa-server-install
was run using the state backed up through sysrestore.py.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
2008-01-11 11:57:36 +00:00
Rob Crittenden
c7f3c746cc Backup system state in ipa-server-install
This patch adds a sysrestore module which allows ipa-server-install
code to backup any system state so that it can be restored again
with e.g. ipa-server-install --uninstall.

The idea is that any files ipa-server-install modifies gets backed
up to /var/cache/ipa/sysrestore/ while any "meta" state, like
whether a service is enabled with chkconfig, is saved to
/var/cache/ipa/sysrestore.state.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
2008-01-14 12:43:26 -05:00
Mark McLoughlin
23ac773ada Update the .spec filenames in EXTRA_DIST
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
2008-01-11 10:36:25 +00:00
Mark McLoughlin
8b3024080b Use tempfile.mkdtemp() rather than hardcoded tmpdir
httpinstance.py currently uses a hardcoded /tmp/ipa temporary
directory. Make it use tempfile.mkdtemp() instead.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
2008-01-11 10:36:25 +00:00
Mark McLoughlin
ae099fe006 Refactor some krbinstance templating code
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
2008-01-11 10:36:25 +00:00
Mark McLoughlin
ff6c720026 Use service.py helpers
In dsinstance.py, there's one place we could use the
service.py helpers where we don't currently.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
2008-01-11 10:36:25 +00:00
Mark McLoughlin
9161dcbbdc Add service.is_enabled() helper
Add a simple helper to check whether a service is enabled.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
2008-01-11 10:36:25 +00:00
Mark McLoughlin
bfb4564f9d Add service.is_running() helper
Add a simple helper to check whether a service is running
and make ipa-server-install use it to check whether ntpd
is running.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
2008-01-11 10:36:25 +00:00
Rob Crittenden
42d5ddc559 Service principal deletion 2008-01-11 11:44:23 -05:00
Rob Crittenden
58071a759a Remove registration of get_keytab 2008-01-03 09:29:58 -05:00
Rob Crittenden
bbe1fdd8e9 Run ipa-webgui as apache and not as root 2008-01-11 13:05:44 -05:00
Rob Crittenden
1c4e4b3e14 Add function to retrieve a short list of attributes to make ipa-adddelegation
easier to use.
2008-01-04 16:39:41 -05:00
Rob Crittenden
dd28d4e6f6 Make button test consistent with rest of page 2008-01-07 16:02:40 -05:00
Rob Crittenden
0576193015 In add_service_principal() don't let the user pass in the realm.
This could result in a principal of the form: service/host@something@REALM
2008-01-07 14:03:13 -05:00
Rob Crittenden
db2e5b26b7 Use a more obvious name for the subject of the IPA self-signed CA 2008-01-04 11:22:43 -05:00
Simo Sorce
8de5f477d1 Support getting in a principal with out the REALM part 2007-12-21 15:18:43 -05:00
Karl MacMillan
19bdd1f166 - Enable ssl for replication.
- Add replication management script that allows listing
  adding, and deleting replicas.
0001-01-01 00:00:00 +00:00
Simo Sorce
a9e4e5a1e2 Finishe removing previous code to fetch keytabs 2007-12-21 12:31:31 -05:00
Karl MacMillan
84c758153f Remove ipa-keytab-util since it is superceded by the DS plugin. 0001-01-01 00:00:00 +00:00
Simo Sorce
b72905817a Merge version changes with upstream 2007-12-21 11:53:31 -05:00
Simo Sorce
ed50c663e8 Big changeset that includes the work around keytab management.
Following the changelog history from my dev tree, some comments are useful imo

------------------------------------------------------

user:        Simo Sorce <ssorce@redhat.com>
date:        Fri Dec 21 03:05:36 2007 -0500
files:       ipa-server/ipa-slapi-plugins/ipa-pwd-extop/test-get-keytab.c
description:
Remove remnants of the initial test tool

changeset:   563:4fe574b7bdf1
user:        Simo Sorce <ssorce@redhat.com>
date:        Fri Dec 21 02:58:37 2007 -0500
files:       ipa-server/ipa-slapi-plugins/ipa-pwd-extop/ipa_pwd_extop.c
description:
Maybe actually encrypting the keys will help :-)

changeset:   562:488ded41242a
user:        Simo Sorce <ssorce@redhat.com>
date:        Thu Dec 20 23:53:50 2007 -0500
files:       ipa-server/ipa-install/share/Makefile.am ipa-server/ipa-install/share/default-aci.ldif
description:
Fixes

changeset:   561:4518f6f5ecaf
user:        Simo Sorce <ssorce@redhat.com>
date:        Thu Dec 20 23:53:32 2007 -0500
files:       ipa-admintools/Makefile ipa-admintools/ipa-addservice
description:
transform the old ipa-getkeytab in a tool to add services as the new
ipa-getkeytab won't do it (and IMO it makes more sense to keep the
two functions separate anyway).

changeset:   559:25a7f8ee973d
user:        Simo Sorce <ssorce@redhat.com>
date:        Thu Dec 20 23:48:59 2007 -0500
files:       ipa-server/ipa-slapi-plugins/ipa-pwd-extop/ipa_pwd_extop.c
description:
Bugfixes

changeset:   558:28fcabe4aeba
user:        Simo Sorce <ssorce@redhat.com>
date:        Thu Dec 20 23:48:29 2007 -0500
files:       ipa-client/configure.ac ipa-client/ipa-client.spec ipa-client/ipa-client.spec.in ipa-client/ipa-getkeytab.c
description:
Configure fixes
Add ipa-getkeytab to spec
Client fixes

changeset:   557:e92a4ffdcda4
user:        Simo Sorce <ssorce@redhat.com>
date:        Thu Dec 20 20:57:10 2007 -0500
files:       ipa-client/Makefile.am ipa-client/configure.ac
description:
Try to make ipa-getkeytab build via autotools

changeset:   556:224894175d6b
user:        Simo Sorce <ssorce@redhat.com>
date:        Thu Dec 20 20:35:56 2007 -0500
files:       ipa-admintools/ipa-getkeytab ipa-client/ipa-getkeytab.c
description:
Messed a bit with hg commands.
To make it short:
- Remove the python ipa-getkeytab program
- Rename the keytab plugin test program to ipa-getkeytab
- Put the program in ipa-client as it should be distributed with the client
  tools

changeset:   555:5e1a068f2e90
user:        Simo Sorce <ssorce@redhat.com>
date:        Thu Dec 20 20:20:40 2007 -0500
files:       ipa-server/ipa-slapi-plugins/ipa-pwd-extop/test-get-keytab.c
description:
Polish the client program

changeset:   554:0a5b19a167cf
user:        Simo Sorce <ssorce@redhat.com>
date:        Thu Dec 20 18:53:49 2007 -0500
files:       ipa-server/ipa-install/share/default-aci.ldif ipa-server/ipa-install/share/default-keytypes.ldif ipa-server/ipa-install/share/kdc.conf.template ipa-server/ipa-install/share/kerberos.ldif ipa-server/ipa-slapi-plugins/ipa-pwd-extop/ipa_pwd_extop.c ipa-server/ipa-slapi-plugins/ipa-pwd-extop/test-get-keytab.c ipa-server/ipaserver/krbinstance.py
description:
Support retrieving enctypes from LDAP
Filter enctypes
Update test program

changeset:   553:f75d7886cb91
user:        Simo Sorce <ssorce@redhat.com>
date:        Thu Dec 20 00:17:40 2007 -0500
files:       ipa-server/ipa-slapi-plugins/ipa-pwd-extop/test-get-keytab.c
description:
Fix ber generation and remove redundant keys

changeset:   552:0769cafe6dcd
user:        Simo Sorce <ssorce@redhat.com>
date:        Wed Dec 19 19:31:37 2007 -0500
files:       ipa-server/ipa-slapi-plugins/ipa-pwd-extop/test-get-keytab.c
description:
Avoid stupid segfault

changeset:   551:1acd5fdb5788
user:        Simo Sorce <ssorce@redhat.com>
date:        Wed Dec 19 18:39:12 2007 -0500
files:       ipa-server/ipa-slapi-plugins/ipa-pwd-extop/ipa_pwd_extop.c
description:
If ber_peek_tag() returns LBER_ERROR it may just be that we are at the
end of the buffer. Unfortunately ber_scanf is broken in the sense that
it doesn't actually really consider sequence endings (due probably to the fact
they are just representation and do not reflect in the underlieing DER
encoding.)

changeset:   550:e974fb2726a4
user:        Simo Sorce <ssorce@redhat.com>
date:        Wed Dec 19 18:35:07 2007 -0500
files:       ipa-server/ipa-slapi-plugins/ipa-pwd-extop/ipa_pwd_extop.c ipa-server/ipa-slapi-plugins/ipa-pwd-extop/test-get-keytab.c
description:
First shot at the new method
2007-12-21 11:37:19 -05:00
Karl MacMillan
c761409490 Update versions for release. 0001-01-01 00:00:00 +00:00
Karl MacMillan
2855e9d40a Correct serial number for ds certs. 0001-01-01 00:00:00 +00:00
Karl MacMillan
ac0fb8ea52 Convert replication to use the new cert infrastructure and
correctly issue certs from the same authority. Also remove
support for read-only replicas since that work will not
be finished and tested for 1.0.
0001-01-01 00:00:00 +00:00
Karl MacMillan
6d9974dd95 Simplify kerberos calling. 0001-01-01 00:00:00 +00:00
Mark McLoughlin
42f4b72c16 Refactor keytab creation
There's a few places where we spawn of kadmin to add/modify
principals and create keytabs.

Refactor all that code into installutils.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
2007-12-18 18:03:34 +00:00
Mark McLoughlin
4814c0d3f6 Restart ipa-webgui in create_instance()
Just in case there is an existing ipa-webgui running
before ipa-server-install, restart the instance rather
than just starting it.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
2007-12-17 12:00:33 +00:00
Mark McLoughlin
4b4b0b4376 Fix error caused by creation steps patch merge
Merging the "host keytab" and "creation steps" patchs left
a stray old-style call to Service.step()

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
2007-12-17 10:17:24 +00:00
Simo Sorce
2faa288218 Add host keytab creation for masters 2007-12-13 16:44:57 -05:00
Rob Crittenden
baaead2709 Allow for direct entry of group names when creating delegations.
This requires a bit of trickery. I use the onblur() javascript function
to note when the field is left and store whatever was entered there.

Then when the page is submitted if a dn doesn't exist for that field
but they did enter something, do a lookup to see if there is a group by
that name.
2007-12-13 04:32:22 -05:00
Rob Crittenden
b5af99c51d Fix the UI indicators for mandatory fields.
The source and target groups weren't highlighted but the entire block of
checkboxes was and it looked absolutely horrible.
2007-12-12 15:18:28 -05:00
Mark McLoughlin
6976f92862 Refactor krbinstance and dsinstance creation steps
Creation steps are currently done with:

  self.start_creation(2, "Create foo")
  self.step("do foo")
  self.foo()
  self.step("do bar")
  self.bar()
  self.done_creation()

This patch refactors that into the much more
straightforward:

  self.step("do foo", self.foo)
  self.step("do bar", self.bar)
  self.start_creation("Create foo")

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
2007-12-13 09:31:28 +00:00
Mark McLoughlin
c049d2d821 Don't template files which don't contain variables
The following files hav no template variables, so don't
bother templating them:

  - memberof-conf.ldif
  - referint-conf.ldif
  - dna-conf.ldif
  - certmap.conf.template

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
2007-12-13 09:31:28 +00:00
Mark McLoughlin
065827d6e1 Refactor dsinstance ldap modify code
Just a patch to refactor lots of similar code in
dsinstance and krbinstance using a simple helper
method.

Note, there are some differences:
  - Some code used to call ldapmodify without -h 127.0.0.1
  - Some of the code used to just print an error rather than
    using logging.critical()
  - Some code used to log some extra debug

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
2007-12-13 09:31:28 +00:00
Mark McLoughlin
7ba901d777 Only update key/value files if necessary
update_key_val_in_file() shouldn't try and write to
a file if the key is already set to the given value
in the file

Rationale here is that if we write these files out
while building a system image, ipa-server-install
shouldn't need to re-write them and, therefore,
they don't need to be writable.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
2007-12-13 09:31:28 +00:00
Mark McLoughlin
2a036abe7a More ipautil fixing
Recently, dsinstance and krbinstance was fixed to
not import * from ipautil; do the same for the
rest of ipaserver.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
2007-12-13 09:31:28 +00:00
Mark McLoughlin
a39f1cb2cb Fix ldif to work with ldapmodify in openldap-2.4.x
It seems that in openldap-2.4.x ldapmodify has gotten somewhat
more picky about the ldif it accepts. See here for more details:

  https://bugzilla.redhat.com/422251

Not sure whether ldapmodify will be fixed, but for now just
fix the ldif.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
2007-12-13 09:31:28 +00:00
Karl MacMillan
b3c39632ea Merge. 0001-01-01 00:00:00 +00:00
Simo Sorce
c39d6d3be8 Merge in Rob aci patch (resolve conflict) 2007-12-12 16:42:19 -05:00
Simo Sorce
cecbca1a84 Separate out ACIs that affect radius 2007-12-12 14:16:52 -05:00
Simo Sorce
87bc5c4d63 Handle add/removing and stopping restarting daemons in update/remove 2007-12-12 13:58:55 -05:00
Karl MacMillan
913201a919 Fix spec file to grab certinstall. 0001-01-01 00:00:00 +00:00
Simo Sorce
88c0c7f321 from ipa.ipautil import * --> from ipa import ipautil 2007-12-12 13:15:56 -05:00
Simo Sorce
d76886ff4f - Better access control, make sure not even admins can read out passwords
- Insure admins can't locked out by mistake by inclusion in disabled groups
- Fix also minor error in krbinstance.py
2007-12-11 21:56:36 -05:00
Karl MacMillan
cf595511ff Move radius server components into a separate package. 0001-01-01 00:00:00 +00:00
Karl MacMillan
c9160e0233 Fix minor typo in unauthorized page. 0001-01-01 00:00:00 +00:00
Rob Crittenden
6390db3502 Add automatic browser configuration for kerberos SSO using javascript.
This uses the UniversalPreferencesWrite function to set the browser
preferences to allow negotiation and ticket forwarding in the IPA domain.
A self-signed certificate is generated to sign the javascript.
2007-12-12 09:36:32 -05:00
Karl MacMillan
1c3849eb57 User provided certs. 0001-01-01 00:00:00 +00:00
Karl MacMillan
8792559f74 Remove radiusinstance from ipa-server-install. 0001-01-01 00:00:00 +00:00
Karl MacMillan
7561d7c42d Remove radius from main install script and add
ipa-radius-install.
0001-01-01 00:00:00 +00:00
Karl MacMillan
148a55811d Return a proper error code from ipa-webgui so that
the init script can indicate when the service
fails to start.
0001-01-01 00:00:00 +00:00
Rob Crittenden
23ffab533f Make the old entry option in update_*, check for empty parameters and
fix some problems reported by pychecker.
2007-12-11 17:34:15 -05:00
Rob Crittenden
5c217ce31a Change from "Common Name" to "Full Name" 2007-12-11 15:14:29 -05:00
Rob Crittenden
10ac6c3c61 Enable searching for multiple things at once 2007-12-11 15:06:01 -05:00
Simo Sorce
5215b21ea4 merge with upstream 2007-12-11 14:19:10 -05:00
Simo Sorce
4f0b215414 Make sure we don't keep around old keys.
Fixes problem changing passwords seen only on servers where
re-installations where performed (and old secrets piled up)
2007-12-11 12:25:58 -05:00
Simo Sorce
01131e2a37 Make sure we don't keep around old keys.
Fixes problem changing passwords seen only on servers where
re-installations where performed (and old secrets piled up)
2007-12-11 12:25:58 -05:00
Simo Sorce
75493763f6 iMerge with upstream 2007-12-11 11:00:24 -05:00
Simo Sorce
0614024566 Minor fix 2007-12-11 10:59:07 -05:00
Rob Crittenden
ca8e71d938 Move the sort arrow to the left of the column title and don't overlap the text 2007-12-10 21:55:12 -05:00
Rob Crittenden
f169641aae Use title case for field labels 2007-12-10 17:44:04 -05:00
Rob Crittenden
2675f35fdf Tie the logging module to 'PythonOption IPADebug' in /etc/httpd/conf.d/ipa.conf 2007-12-11 09:56:37 -05:00
Simo Sorce
441e9206b5 We need the OpenSSL Crypto lib for the DES and MD4 functions to generate NT
and LM hashes.
2007-12-07 19:59:27 -05:00
Simo Sorce
647063253e Fix kdec.length or we may try to double free() or free() uninitiualized data. 2007-12-07 18:09:49 -05:00
Simo Sorce
0b51e32699 merge from upstream 2007-12-07 17:38:15 -05:00
Simo Sorce
11559e9a69 we *may* require it, it depend on the ditro in F8 cahing daemon configuration has been
incorporated in the default bind install.
2007-12-07 17:36:14 -05:00
Rob Crittenden
5e4a162954 Fix delegation in the UI and add a missing aci that allows writes.
Make ipa-deldelegation more user-friendly.
2007-12-07 16:08:12 -05:00
Rob Crittenden
b75d735b7e Add default e-mail domain to the IPA configuration 2007-12-10 11:53:00 -05:00
Rob Crittenden
c95550a164 Remove some debugging statements 2007-12-10 11:54:42 -05:00
Rob Crittenden
059e8f00ef Add principal management templates 2007-12-10 09:58:18 -05:00
Rob Crittenden
40ff6f21db Prompt user before downloading a keytab that this will create a new secret,
breaking any existing keytabs for that principal.
2007-12-06 11:56:14 -05:00
Rob Crittenden
592329af18 Use more common names for first and last name labels 2007-12-10 11:55:52 -05:00
Rob Crittenden
b3fa02225a Add back in some CSS that was removed in the big UI update.
This adds back required field colors and colored error and warning msgs.
2007-12-05 16:15:52 -05:00
Rob Crittenden
03fe2a8d6a Increase default max password lifetime from 10 to 90 days 2007-12-03 18:09:14 -05:00
Karl MacMillan
6243410bdd Install principal edit page files. 0001-01-01 00:00:00 +00:00
Karl MacMillan
abdbc50683 Import correct httpinstance.py 0001-01-01 00:00:00 +00:00
Karl MacMillan
4e377ad7e8 Fix message about no spaces in password - spaces work
fine with ssl setup shell script removed.
0001-01-01 00:00:00 +00:00
Rob Crittenden
99c676702b The uid_hidden field needs to be retained until after validation succeeds
otherwise if it ever fails, uid_hidden will be lost which can cause uid
to not be set which cascades into lots of other errors.
2007-12-06 17:00:38 -05:00
Rob Crittenden
04cccd4426 Improve the error message when an entry is not found.
We used to return the entire argument string ala:

('dc=freeipa,dc=org', 2, 'uid=foo', ['*'])

This adds a regex to try to print anything after = in the filter.
Not perfect but better.
2007-12-06 16:48:26 -05:00
Rob Crittenden
2a2d866552 Make uid an editable field in the Edit UI so we can do RDN changes
Fix group RDN changes
Remove a copy/paste error in the group UI update that caused 2 updates
Fix variable name so groups don't get user objectclasses
Remove color CSS for field backgrounds as they override disabled field display
2007-12-06 15:36:42 -05:00
Rob Crittenden
6ea3d9610e Utilize user and group objectclass lists in cn=ipaconfig
Change the syntax on user and group objectclasses in cn=ipaconfig
2007-12-06 00:30:26 -05:00
Karl MacMillan
f07cd5a5ad Update build requires for libcap. 0001-01-01 00:00:00 +00:00
Simo Sorce
92d773dc30 Improved ACIs 2007-11-30 16:57:48 -05:00
Simo Sorce
86c78cbe75 minor typos 2007-11-30 16:58:02 -05:00
rcritten@redhat.com
c32a960cae Compatibility changes to work on RHEL 5 with python 2.4 2007-11-30 15:53:02 -05:00
Simo Sorce
b04bed4e82 Min Pwd Change Time Check after Password reset and other minor fixes 2007-11-30 16:57:19 -05:00
Karl MacMillan
158b4e8ff4 Commit corrected certs.py 0001-01-01 00:00:00 +00:00
Karl MacMillan
ca118de76c Merge. 0001-01-01 00:00:00 +00:00
Rob Crittenden
86d80f12ca Add some javascript so we can put focus on the first field of the page. 2007-12-06 17:49:56 -05:00
Rob Crittenden
7e2f44df45 Add 'Edit Policy' button at top of page. 2007-12-06 17:46:09 -05:00