Commit Graph
196 Commits
Author SHA1 Message Date
Rob Crittenden 7b799d8c6f Fix class declaration to work with Python 2.4 2008-09-19 23:09:59 -04:00
Martin Nagy a62b85a233 Fix architecture detection in ldapupdate 2008-09-19 17:25:05 +02:00
Rob Crittenden ca07cdb390 Add detection to the update tool to detect when it would apply changes.
Remove SUP name from RFC2307bis.update to match FDS
2008-09-19 18:04:40 -04:00
Simo Sorce b4938f5e35 Fix syntax error 2008-09-18 17:23:13 -04:00
Rob Crittenden 00d54a5668 Move the bulk of ipa-ldap-updater into a python library.
This significantly simplifies the tool and makes it possible to apply
updates from the installer without forking off another process.
2008-09-17 20:56:18 -04:00
Rob Crittenden f736253b93 Run the LDAP updater at the end of the installation process.
Running at the end ensures that /etc/ipa/ipa.conf is created and generally
makes it more likely to succeed.

Added a new argument to ipa-server-installl, -y <password_file>, so we
don't have to pass it on the command-line.
2008-09-17 20:56:08 -04:00
Rob Crittenden aa8c4a53bf Allow passwords to work without a tty ala: echo password | some_program 2008-09-17 20:56:03 -04:00
Simo Sorce 8e7c98eb7f CVE 2008 3274 related fixes 2008-09-10 15:07:33 -04:00
Simo Sorce 2659fb0eb4 Minor bugs found while testing stuff.
- wrong import in certs.py makes ipa-replica-manage fail
- close the fs after the stash file is written so that the file is updated
  immediately and not when the fd is garbage collected
2008-08-21 11:04:52 -04:00
Rob Crittenden 548c169c5a Create temporary files used in self-signed cert requests in a temporary directory and ensure that it gets cleaned up when we're done with it.
458159
2008-08-15 11:05:31 -04:00
Simo Sorce 44689b93c9 Remove unused stuff. 2008-08-13 15:57:35 -04:00
Simo Sorce f5177e6b84 Install the ca.crt file early on so that we can always enforce SSL
protected connections to other LDAP servers
Fix error reporting on replica creation.
2008-08-13 15:36:57 -04:00
Rob Crittenden f5f8e8d884 NSS 3.12 added a header to the certutil output we need to skip
456694
2008-07-28 09:55:49 -04:00
Rob Crittenden a19d27717a Move the self-signed CA serialno file to /var/lib/ipa to adhere to the FHS
455064
2008-07-25 09:05:14 -04:00
Rob Crittenden 6980b07303 Rework the way SSL certificates are imported from PKCS#12 files.
Add the ability to provide PKCS#12 files during initial installation
Add the ability to provide PKCS#12 files when preparing a replica
Correct some issues with ipa-server-certinstall

452402
2008-07-14 09:06:52 -04:00
Rob Crittenden 42cada4594 When an LDAP connection fails, display the host one is trying to connect to.
450111
2008-06-09 22:13:54 -04:00
Rob Crittenden c58b7a3d7c Move version.py to the common ipa directory instead of being server-based so it can be used by the client tool.
Fix the client tool imports to fail more gracefully.
2008-06-03 22:39:11 -04:00
Rob Crittenden 165d26ce2b Make check_inst() a standalone function in bindinstance.
When an install instance is created that contains a pointer to a sysrestore
point it loads in the current configuration when instantiated. If an
instance is instantiated but not used then changes may occur to the
system state that it is unaware of. So one needs to take care in the order
that things are done to avoid losing information.

When bind was setup it was overwriting all data in sysrestore.state and
leaving just a [named] section. This caused problems at uninstall.

448173
2008-05-30 11:21:11 -04:00
Simo Sorce 3931d1d753 Move admin into cn=users,cn=accounts
After some deep thinking I think the advantages of keeping all
posix enabled user accounts under cn=users,cn=accounts overweight a
perceived better protection of the admin account by keeping it in a
separate tree.
2008-05-23 15:07:37 -04:00
Martin Nagy 2f69e7e18d Change file mode of log files to 600.
446869
2008-05-20 22:43:03 -04:00
Rob Crittenden 6c87f83180 Don't pass the Directory Manager password on the command-line to ldapmodify.
446865
2008-05-19 17:07:41 -04:00
Simo Sorce 6119f83799 Use split instead of find as split does not fail to provide a complete
component if no '.' is found.
2008-05-15 14:26:25 -04:00
Martin Nagy 28f312664e Fix typo, /etc/resolve.conf -> /etc/resolv.conf.
444660
2008-05-14 16:25:06 -04:00
Rob Crittenden 92d7f9c28a Make sure all services are stopped during uninstall.
We were just shutting down the KDC if it had been started prior to IPA
installation. We need to stop it in all cases.

And we should restart nscd as it may have made an LDAP connection.

440322
2008-05-14 09:57:09 -04:00
Rob Crittenden 319cb38e28 Do a more thorough job of removing an existing DS instance.
Add /usr/lib/dirsrv/slapd-INSTANCE to the list of directories removed.

442753
2008-05-13 22:53:01 -04:00
Rob Crittenden ae641ed31b Include information on where to look if a hostname resolves to localhost.
442812
2008-05-09 14:04:04 -04:00
Simo Sorce 34c6ac06c6 Return better ewrror message that gives a hint about who actually returned it
+ Some cleanups (trainling spaces and such).
2008-05-08 17:03:43 -04:00
Rob Crittenden bd9dea888d Add a version API to the server so it knows what version it is.
435019
2008-05-08 13:01:27 -04:00
Rob Crittenden 2bb64e404c Don't prompt for confirmation of DM password when installing a replica.
It implies that you are setting a new password and you really aren't.

Also added a catch for KeyboardInterrupt with instructions on how to
recover from a partial install.

441607
2008-05-08 12:01:38 -04:00
Rob Crittenden 274eb708c2 Fix ownership of the Apache NSS cert and key databases.
The group "apache" needs to have read access to them so they will work in
Fedora 9+.
2008-04-30 09:44:48 -04:00
Rob Crittenden 4eb7c51e59 Better detection of DS not starting.
The dirsrv init script always returns 0 on status checks, even if an
instance is not started. So we have to look through the output instead.

442452
2008-04-14 23:14:16 -04:00
Rob Crittenden ce3f79e51c Configure the ipa_pwd_extop plugin on replicas.
If plugin isn't configured then the kerberos attributes don't get populated.
User's will get Preauthentication errors from the kerberos libraries
because there is no krbPrincipalKey to match against.

442134
2008-04-14 17:55:25 -04:00
Rob Crittenden 27691b9e1c Use the same kpasswd.keytab on all replicas.
If we generate a new keytab for each replica then effectively password
changes can only occur on the last replica created.

439905
2008-04-09 16:57:41 -04:00
Simo Sorce 6778085531 The kpasswd keytab must not be owned by the dirsrv user.
Fix copy&paste error.
2008-04-08 09:25:48 -04:00
Rob Crittenden d567aa4441 Add missing start_creation() so the install process will get kicked off. 2008-04-02 22:04:24 -04:00
Simo Sorce 7b5088955a Sysrestore fixes.
Latest patch used the wrong path and all files where actually going to /tmp
even if a different path was specified.
Makes also StateFile behave the same as FileStore, and be a public class, this
way a common path can be used too.
2008-03-31 17:27:56 -04:00
Simo Sorce 9d80ec5daf Better check for IPA nServer own address, avoid manually parsing /etc/hosts by
using nsswitch calls that read it and also take in account any other name
resolution mechanism that might be installed (like NIS lol :-).

This also should make the check support IPv6 transparently too (not tested)
2008-03-30 20:00:43 -04:00
Simo Sorce aac086582a Move sysrestore to ipa-python so it can be used by client scripts too.
Change backup format so files are all in a single directory (no dir
hierarchies) and use an index file so we can save also ownership and
permission info for the restore (and eventually other data later on).
2008-03-27 19:01:38 -04:00
Rob Crittenden b387570fe6 Properly detect when ports are available.
The DS setup program uses Perl and does a similar port available test.
It seems that perl always sets FD_CLOEXEC and python does not. This is
why the port test would pass in python but fail in perl.

439024
2008-03-27 15:33:06 -04:00
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 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 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
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
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
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 d5f5026454 Don't log passwords in ipaserver-install.log
433509
2008-02-26 10:48:45 -05:00
Rob Crittenden f02b5c1962 Use correct variable for determining the host name
435055
2008-02-26 22:34:06 -05:00
Simo Sorce 144a728182 Make sure KrbPrincipalName is unique server-wide 2008-02-21 22:31:16 -05:00