Commit Graph

769 Commits

Author SHA1 Message Date
Rob Crittenden
8dafa9dc92 Add missing image 2008-04-03 15:40:11 -04:00
Simo Sorce
f7a425fff8 Need python-ldap in Requires 2008-04-02 19:13:46 -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
a903eacba2 Cut&patse error 2008-04-02 11:57:52 -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
625d9b2de8 - Better defaults for nss_ldap
- Make sure timeouts are not too high, so that machine does not hang if remote
  servers are not reachable
- Make sure root can always login no matter what the status of the ldap
  servers
- use rfc2307bis schema directive
2008-04-01 18:04:59 -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
a81ea4051b RHEL4 contrib client uninstall 2008-03-31 17:34:40 -04:00
Simo Sorce
28ac93a535 Implement client uninstall
(including RHEL4 contrib setup script)
2008-03-31 17:33:55 -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
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
382ff1d29e Put the replica hostname back together properly
439057
2008-03-27 10:20:15 -04:00
Rob Crittenden
c1ae716afc Normalize member DN's when determining whether they are in a group
as a direct or indirect member.

438387
2008-03-26 23:19:54 -04:00
Simo Sorce
503cea20c5 One line typo fix 2008-03-27 14:03:04 -04:00
Simo Sorce
372c8d23cd Fix setup script to use the right module name 2008-03-27 13:37:27 -04:00
Rob Crittenden
bde9959091 When getting members let user indicate what type of member they want.
The memberOf attribute includes members that are directly in the group
via the "member" attribute and those that are included as a result of
being in a group that is in the group.

The UI needs to be able to distinguish between the two.

438706
2008-03-27 09:54:41 -04:00
Nathan Kinder
07059a5ef2 Handle MODRDN operations properly for indirect group members.
Without this, an entry's memberOf attribute is not updated with
the new group DN when an indirect group is renamed.

This is in bugzilla for FDS as bz 438891.
2008-03-26 15:03:01 -07: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
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
Simo Sorce
934ac494b9 Add autoconf and automake stuff and provide a spec file.
To build a package one need to run autoconf and then create a tarball of the
RHEL4 directory so that the content is like this:

$ ls -1 ipa-client-0.99.0
aclocal.m4
AUTHORS
autom4te.cache
ChangeLog
configure
configure.ac
COPYING
INSTALL
install-sh
ipachangeconf.py
ipa-client-setup
ipa.conf
Makefile.am
Makefile.in
missing
NEWS
README
setup.py


the spec file will then be able to build a package for RHEL4
2008-03-25 15:17:21 -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
Simo Sorce
8bfe814358 Allow client install to specify ntp server name 2008-03-14 08:42:06 -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
c3fedca013 Don't define bogus realm/server in configuration file by default
Add default exception handler to avoid backtraces in cmdline tools
Enhance error message when the IPA server or realm can't be found

437565
2008-03-17 13:16:56 -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