Commit Graph

769 Commits

Author SHA1 Message Date
Rich Megginson
c80ecc8c2a Added ipa-winsync-config.c - this handles dynamic configuration via the DSE callbacks, and gets default values from various configuration entries in the IPA tree 2008-10-13 14:09:04 -04:00
Rich Megginson
61b5a95dd1 Added support for posixAccount -lookup attribute containing the homeDirectory prefix and use that to construct the homeDirectory attribute -lookup attribute containing the default gidNumber and use that to add the gidNumber to new users -construct the gecos field from the cn attribute 2008-10-13 14:09:03 -04:00
Rich Megginson
6454956d51 Added the new IPA WinSync Plug-in Work done so far * added the new plugin to makefiles, spec file * added stubs for the api, including begin update, end update, and destroy callbacks * added config code to allow dynamic dse config changes and auto-discovery of realm and new user objectclass list 2008-10-13 14:09:03 -04:00
Rich Megginson
0951496593 Initial addition of ipa-winsync plugin 2008-10-13 14:09:02 -04:00
Martin Nagy
9b8f7b1eac ipa-change-master-key: Really exit when not run as root Also fix this for ipa-fix-CVE-2008-3274 2008-09-24 20:09:35 +02: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
Simo Sorce
bc70a5146f Remove reference to very unlikely service examples that are not
currently kerberized (and may never be due to their nature).
2008-09-18 17:23:12 -04:00
Martin Nagy
8683c23e9d Restart httpd and dirsrv services after yum upgrade.
Fixes: 441566
2008-09-17 23:06:33 +02:00
Martin Nagy
1634e09973 Add standard override options to ipa-replica-prepare
Fixes: 462489
2008-09-17 23:06:18 +02: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
Rob Crittenden
661dee8c03 Add more development packages to test for 2008-09-12 20:37:36 -04:00
Rob Crittenden
88960f1597 Sort updates by DN length and by default process all files in the updates dir.
The updates directory is currently hardcoded to /usr/share/ipa/updates.

All of the files are read into memory and then sorted by the length of the DN.
This is so we can be sure that parent entries are added before children.

Also add a man page.
2008-09-12 20:07:48 -04:00
Rob Crittenden
1eec34393b Update files for the schema compatibility plugin and RFC4876 profiles
Also handle syntax errors a bit more gracefully and allow the updater to
work on more than one file at a time.

Adjust to new config.py and use a custom exception class for syntax errors.

Also fix a error in parsing the separate files

Include slapi-nis in Requires

Includes work provided by Martin Nagy

460055
2008-09-12 20:07:41 -04:00
Rob Crittenden
ec57bc3e44 Tool for doing configuration updates over LDAP
This tool takes as input a file which contains basically an LDIF, prefixed
with a command: default, add, remove or only. These define the operations
to perform such as adding new entries, adding new sub-entries to an existing
entry, adding or modifying attributes in a record.

If an index entry is modified a task is created to re-create the index.

Schema may be added using this tool.

454031
2008-09-12 20:06:46 -04:00
Rob Crittenden
d33b7fc839 The True/False logic was reversed, so "no" meant remove the existing instance 2008-09-12 19:38:48 -04:00
Martin Nagy
885103c321 Rework config.py and change cli tools. Maintain order of IPA servers from command line, config and DNS. Parse options before detecting IPA configuration. Don't ignore rest of the options if one is missing in ipa.conf. Drop the --usage options, we will rely on --help. Fixes: 458869, 459070, 458980, 459234 2008-09-11 23:34:01 +02:00
Simo Sorce
57669ba432 Add script to simplify operations to fix CVE 2008 3274
Import all of change master key directly into the help fix,
allows for better control
2008-09-10 15:07:42 -04:00
Simo Sorce
8e7c98eb7f CVE 2008 3274 related fixes 2008-09-10 15:07:33 -04:00
Simo Sorce
86afc680cd Retrieve the kerberos configuration every time a new, it will be a bit slower
but will allow for changing configurations without having to restart DS.
Password operations are slow and rare enough this is an acceptable compromise.
2008-09-10 15:07:17 -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
ff82c4c1e5 Limit the mod_rewrite rules to just /ipa
459209
2008-08-21 09:48:48 -04:00
Simo Sorce
0c6aeee6f1 Fix segfault cause by empty target entry 2008-08-19 11:14:27 -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
c5b44f77a1 Comment out code that generates keys with a random salt, apparently this does not work as expected and generates faulty keys 2008-08-15 08:54:44 +02:00
Martin Nagy
828c9b9cdd Delete old mercurial files. 2008-08-15 08:54:37 +02:00
Rob Crittenden
4be5d862a6 When installing with an IPA-created CA generate the Firefox autoconfiguration files.
458871
2008-08-14 18:07:52 -04:00
Rob Crittenden
8edc9aa8aa Make Proxy directive wildcard match more specific so we can play nicer with other apps.
459061
2008-08-14 14:55:39 -04:00
Rob Crittenden
a013fe5cc2 Fix some copy/paste and other syntax errors from the validators commit.
450613, 457124
2008-08-14 14:55:35 -04:00
Simo Sorce
cee4b2cc1e Fix usage of mozldap libraries,
thanks to W. Michael Petullo <mike@flyn.org> for finding the problem.
2008-08-13 15:57:43 -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
Simo Sorce
0d6b6fa084 Implement password operation checks and key material generation for the
ldap add and modify operation performed on the userPassword attribute.

Add helper functions to reduce code duplication.

Do not enforce encrypted connections on ldap add/ldap mod for compatibility
reasons. (We cannot enforce people not to send the password in the clear
anyway, we can only refuse to accept it at the most which does not gain
you much if someone then re-send you the same password previously exposed)
2008-08-12 14:48:41 -04:00
Simo Sorce
9648da8f5f Fix versioning for configure.ac and ipa-python/setup.py
Fix make maintainer-clean

Also make RPM naming consistent by using a temp RELEASE file.
This one helps when testing builds using rpms.
Just 'echo X > RELEASE' to build a new rpms (X, X+1, X+2 ...)

Version 1.1.0 was released some times ago, bump up to 1.1.1
2008-08-11 18:31:05 -04:00
Simo Sorce
0368d4329a Used the encrypt_file and decrypt_file utility functions to encrypt replica
information. This way we do not risk to leave around sensitive data.
Set the destination host in the replica file too and do checks against
in ipa-replica-install
2008-08-11 18:30:57 -04:00
Simo Sorce
599fe1a0f5 Use larger set from which to choose chars for random passwords.
Use SystemRandom() instead of Random() so that the randomicity
is non-deterministic.
2008-08-11 18:30:40 -04:00
Simo Sorce
1b613fafa6 Treat Jan 1 1970 in krbPrincipalExpiration as a special date that means
the account Never Expires
2008-08-07 11:50:33 -04:00
Rob Crittenden
110f60da8e Change user and group validators to match shadow-utils
This sets the regex to [a-zA-Z0-9_.][a-zA-Z0-9_.-]{0,30}[a-zA-Z0-9_.$-]?

Also change the validators to return True/False

450613, 457124
2008-08-07 11:21:33 -04:00
Martin Nagy
fbc74a0cb4 Fix few syntax errors. 2008-08-06 19:17:13 +02:00
Rob Crittenden
df2b40303f Fix python syntax error: missing colon. 2008-08-06 11:27:30 -04:00
Jason Gerard DeRose
4deb919ce4 Use % format string to fix nbsp problem in userlist.kid (fixes #453779) 2008-07-30 10:28:14 -04:00
Rob Crittenden
6efb547987 Shift search base for users and groups to "cn=accounts, baseDN"
450552
2008-07-29 11:33:51 -04:00
Rob Crittenden
bae3a2101f Fix encoding issue when manually loading templates for forms
We used to manually load the template files for the edit pages using
turbogears.meta.load_kid_template(). Unfortunately this went through
the one code path where encoding was completely ignored. It ended up
defaulting to sys.getdefaultencoding() which is 'ascii'. So even though
most of the templates are loaded as 'utf-8' the few that really mattered
weren't.

The fix is to call kid.load_template() ourselves and set the encoding of
the class we just loaded to either the setting in the app.cfg file or
to the normal default value of 'utf-8'.

454076
2008-07-29 11:32:02 -04:00
Rob Crittenden
cdba310f02 Change Title label to Job Title for clarity
453780
2008-07-29 11:24:52 -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
cf06dd9f84 Don't assume that the Firefox autoconfig files exist.
These are created by an object-signing cert and needs to be done
after the fact if a server is created with user-supplied PKCS#12 files.

452402
2008-07-28 09:54:16 -04:00