Commit Graph
207 Commits
Author SHA1 Message Date
Rich Megginson 716d51c22a wait for sync agreement to be ready before starting
Added checking for error status - Added maxtries so that the script won't wait forever if there is something wrong
2008-11-13 11:19:02 -05:00
Rob Crittenden 17261c2520 Create a user for Windows PassSync and grant password changing permissions
This does 3 things:
1. Create a user for the Windows PassSync service
2. Add this use to the list of users that can skip password policies
3. Add an aci that grants permission to write the password attributes

471130
2008-11-12 15:52:57 -05:00
Rob Crittenden 49e4876ba9 Fix deleting a winsync replication agreement. 2008-11-12 15:52:51 -05:00
Rob Crittenden c7c2cf0956 Use the local connection when getting a replication ID for winsync.
We can't connect to the windows AD server to get a unique repliation ID.
So first see if this master already has one and if not, get an id from
the local DS.

469977
2008-11-05 12:02:20 -05:00
Rich Megginson 4ed44a06a1 use ipautil.CalledProcessError instead of CalledProcessError 2008-11-04 21:57:34 -05:00
Rob Crittenden f305864d90 Ensure that every replica gets a unique replication ID. Otherwise changes won't propogate between all replicas.
468732
2008-10-29 17:08:27 -04:00
Rob Crittenden 4862a8f9d9 Fix error if more than one values is being set in an only. The first entry wasn't being properly converted into a list so subsequent values caused it to crap out.
467102
2008-10-15 15:29:08 -04:00
Rich Megginson 38154073a8 Don't try to conditionally stop the server - it doesn't seem to work
Just call stop() - if it's not already running, no big deal
2008-10-13 14:09:11 -04:00
Rich Megginson 28195610f6 Add more winsync support to cli
The ipa-replica-manage list, init, and synch commands do not work for winsync
agreements.  This patch adds that support and some additional verbose logging.

The synch_master did not work correctly.  The way it should work is to set
the replication schedule to some bogus value, then reset it back to its
original setting.  This will force replication to take place immediately.
2008-10-13 14:09:10 -04:00
Rich Megginson be5e783f72 add --no-host-dns option to ipa-server-install - allows specifying a hostname that might actually exist but you do not want to even attempt to resolve it via DNS 2008-10-13 14:09:07 -04:00
Rich Megginson 5a5bfa2c70 Added support to IPA server install to install the winsync plugin configuration entry Added support to ipa-replica-manage to add winsync agreements. I mostly used the existing code for setting up replication agreements since replication and winsync are quite similar in their configuration. I just had to add some extra attributes to the sync agreement configuration. The tricky part was importing the Windows CA cert. 2008-10-13 14:09:07 -04:00
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