Commit Graph

634 Commits

Author SHA1 Message Date
Simo Sorce
6f4d71d2cc Indent the plugin accordingly to our style guidelines.
Used indent -kr -nut dna.c for most of the changes
2008-05-07 14:45:46 -04:00
Rob Crittenden
8e7561cff6 Refine our web space some more so that everything we reference is in /ipa
UI: /ipa/ui
XML-RPC: /ipa/xml
errors: /ipa/errors
config: /ipa/config

I had to hardcode that URI into the CSS pages but TurboGears handles the
rest of the translations with tg.url().

Added a version to ipa.conf and ipa-rewrite.conf so we can update them
in the future if needed with ipa-upgradeconfig

440443
2008-05-07 09:41:32 -04:00
Rob Crittenden
5ad2af3429 Redo the way versioning works in freeIPA.
The file VERSION is now the sole-source of versioning.

The generated .spec files will been removed in the maintainer-clean targets
and have been removed from the repository.

By default a GIT build is done. To do a non-GIT build do:

 $ make TARGET IPA_VERSION_IS_GIT_SNAPSHOT=no

When updating the version you can run this to regenerate the version:

 $ make version-update

The version can be determined in Python by using ipaserver.version.VERSION
2008-05-05 13:53:57 -04:00
W. Michael Petullo
29ddbc610c This patch begins the process of replacing OpenLDAP with mozldap.
FreeIPA relies on RedHat's Directory Server, which uses mozldap.
A FreeIPA build using mozldap would reduce the project's dependencies and
redundant code. In addition, mozldap uses NSS instead of OpenSSL.
This is beneficial for the reasons listed in [1].

[1] http://fedoraproject.org/wiki/FedoraCryptoConsolidation
2008-05-01 09:59:43 -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
306d8241b3 Fix the client-side search size limit.
I've changed the variable name searchlimit to sizelimit to match the
name in python-ldap (and hopefully therefore be more readable).

The big change was changing the default value from 0 to -1. As 0 we were
never using the value from cn=ipaconfig

python-ldap expects this to be an int type

In the UI sizelimit was hardcoded at 0 for users

439880
2008-04-25 16:46:13 -04:00
Simo Sorce
1e3276cec1 Make sure recent ldapmodify tool (as in F9) do not complain by splitting the
operation into 2 modify operations
2008-04-25 14:18:39 -04:00
Rob Crittenden
47e6a75cff Add nfs as a service principal type.
440242
2008-04-23 15:42:41 -04:00
Rob Crittenden
03b3dbd2ab Don't let a user change their own uid. Fix some related errors if they try.
440895
2008-04-23 15:36:14 -04:00
Rob Crittenden
2427e7c130 Don't allow a replica to prepare a replica for itself.
442756
2008-04-23 15:36:13 -04:00
Nathan Kinder
d854d25483 Fixed various memory leaks in memberOf plug-in.
440474
2008-04-22 16:55:50 -04:00
Rob Crittenden
def28f3d5b Become version 1.0.0 2008-04-16 14:29:17 -07:00
Rob Crittenden
dce8008167 Catch all errors when obtaining an LDAP connection.
442582
2008-04-15 21:08:55 -07: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
b1f58e5441 Don't quit trying to lock a user if they aren't in the activated group.
Users are considered activated by default so don't need to be in the
activated group explicitly. Ignore the "not in group" error when trying
to remove them.

442470
2008-04-14 23:13:58 -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
0f00ba24a2 SELinux fix from Dan Walsh
440646
2008-04-07 23:50:43 -04:00
Rob Crittenden
f88f9f3cc0 Add (post) to Requires: ipa-server-spec 2008-04-07 23:45:00 -04:00
Rob Crittenden
039581d1ed Some SELinux policy changes provided by Dan Walsh.
440651
2008-04-07 23:38:51 -04:00
Simo Sorce
dc861888ad Add _ntp SRV record 2008-04-07 15:27:42 -04:00
Simo Sorce
f16d2d6e2d Password policy checks fixes.
- don't let a user set a password identical to the current one.
- don't check more then the policy defined number of passwords in history
- don't set an history longer than policy defined
2008-04-07 09:26:18 -04:00
Rob Crittenden
ac5a35086e Don't allow the admin user to be removed from the admins group.
439281
2008-04-04 17:41:32 -04:00
Rob Crittenden
cb4648a8af Add missing normalizeDN() when removing members from a group.
438387
2008-04-04 16:30:36 -04:00
Rob Crittenden
a761093a30 Create /etc/ipa/ipa.conf earlier in the installation process.
Because the ipa.config() object raises an error if there is no configuration
file and auto-detection fails, ipa_webgui may fail to start at install time.

440475
2008-04-03 15:49:07 -04:00
Rob Crittenden
8dafa9dc92 Add missing image 2008-04-03 15:40:11 -04:00
Rob Crittenden
c30a533de6 Don't try to update ipauserobjectclasses or ipagroupobjectclasses
since they aren't being displayed anymore. They will just get blanked.

Also add some error handling in ipahelper.fix_incoming_fields()

438256
2008-04-02 21:15:49 -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
1083207dca Make sure we have ipa-client installed as now ipa-server-install calls
ipa-client-install
2008-04-02 12:36:25 -04:00
Simo Sorce
0d5f45b3dd Stricter directory control for ipa daemons, each one it's own directory 2008-04-01 18:07:14 -04:00
Simo Sorce
c260d63245 Move ipa_kpasswd credential cache in its own directory 2008-04-01 17:33:53 -04:00
Rob Crittenden
05efbe9991 Fix typo in python directive. Fixes marking a group active.
440142
2008-04-01 22:01:23 -04:00
Rob Crittenden
6d136d7fff Fix crash when creating new groups. You can't iterate over a None variable.
440081
2008-04-01 15:46:50 -04:00
Rob Crittenden
04da7a1ecc Fix AVC when for reading /proc during password change on RHEL 5
438007
2008-04-01 15:40:42 -04:00
Rob Crittenden
98f8a31320 No need to use a regular expression to find the replication host
430015
2008-03-31 18:27:42 -04:00
Simo Sorce
af50f341ad Call client uninstall from server uninstall so that uninstall reverses also
client bits.
2008-03-31 17:35:45 -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
e666bfbca7 Some more function name errors due to merge from DS own memberof plugin that
has different function names. This was a runtime linker crash bug :/
2008-03-31 17:22:37 -04:00
Rob Crittenden
749c396aae On the delegation edit screen allow the direct entry of a group name
Fix the redirection errors, it was going to back to the Add delegation page

438257
2008-03-24 17:03:40 -04:00
Rob Crittenden
4b4a13c201 Don't try to add the default group to a user when creating the group.
This is done automatically and trying to do so will return an error.

432106
2008-03-31 15:17:39 -04:00
Rob Crittenden
58cfc7ab68 Fix account activation.
We do account activation by using a Class of Service based on group
membership. A problem can happen if the entry itself has an nsaccountlock
attribute and you try doing Class of Service work as well because the
local attribute has priority. So try to detect that the entry has a local
nsAccountLock attribute and report an appropriate error.

Don't allow the admins or editors groups to be de-activated.

Return a better error message if account [in]activation fails.

Catch errors when doing group [in]activation.

439230
2008-03-31 11:36:13 -04:00
Simo Sorce
1737dbb174 Fix typo 2008-03-31 12:53:45 -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
Nathan Kinder
6340de3fb8 Avoid listing a group as a memberOf itself when a circular grouping
is created.

We basically just need to add a check to see if we're to use a group
DN as the memberOf value when performing an operation on itself for
all operation types.

439450
2008-03-28 14:18:18 -07:00
Nathan Kinder
80149d9f11 Fixed handling of modify operations that delete all present member
values without specifying the values to delete in the memberOf
plug-in.  Member entries were not being updated because the code
used the values in the mod to find the member entries to update.

The fix is to detect when a delete modify has no values specified
and just use the replace code since it compares the pre-op and
post-op copies of the group to figure out what member entries to
update.

439097
2008-03-28 08:56:06 -07:00
Rob Crittenden
767acbee06 Put replica info file into /var/lib/ipa instead of the current directory
439120
2008-03-28 15:56:07 -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
b7924139d8 Don't allow the admin user to be removed using the XML-RPC Interface.
If a site really wants it gone then can delete it via LDAP.

439281
2008-03-28 15:28:28 -04:00
Rob Crittenden
034d9d6753 Do case-less comparisons when considering objectclass but store the
current value to prevent unnecessary LPAP updates (and failed writes)

Don't check against these lists on updates, only add them on new entries.

Disable the ability to configure in the UI these values for now.

438256
2008-03-28 14:47:53 -04:00