Commit Graph
100 Commits
Author SHA1 Message Date
Simo Sorce 4f81c2faec Make ipa_kpasswd listen on each single interface explicitly
instead of 0.0.0.0, this allows us to reply to a UDP request
by using the right source address to build the kerberos reply.
2008-05-29 09:43:39 -04:00
Simo Sorce 8fb4809465 Use openldap libraries by default as mozldap libs seem to break
ldap_extended_operation() somehow and ipa_kpasswd stops working
2008-05-29 09:43:28 -04:00
Simo Sorce dc7d62d543 Fix crash bug in ipa_kpasswd 2008-05-29 09:43:20 -04:00
Simo Sorce 8f082f2d4f Now that admin is in the common users tree make the nss_ldap
configuration look at the specific tree where users are and
not search the full server.
2008-05-29 09:43:08 -04:00
Simo Sorce 53afb67537 Fix the case where domain != lower(REALM)
add the domain to the ipa.conf file for apps that need to know
This should fix a bug in the replica setup
2008-05-29 09:43:00 -04:00
Simo Sorce f32f8d6d82 Use a value that is explicitly 64bit on all architectures 2008-05-23 15:07:49 -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
Simo Sorce 0695649926 Don't make the rpm %post fail just because the server has never been
configured before (and therefore there is nothing to upgrade, just let
it spit out warnings for admins that actually check whats going on.
2008-05-22 17:20:09 -04:00
Simo Sorce 0d023b2680 Fix testing for asprintf errors, we need to test the return value as
per standard the  buffer status is undefined.
While there also introduce a new spearate variable to return the final
error and keep using ret for local error checks. This avoid potentially
overwriting the correct return value when checking for asprintf ...
2008-05-22 11:44:02 -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
Simo Sorce d0f0d97be6 If there is an error we need to send back a reply ourselves.
Return also an intelligible error message.
2008-05-15 12:59:28 -04:00
Simo Sorce fb3555c483 For some unknown reason the sort control returns values sorted in reverse.
Ask for inverse order to get them straight ...
2008-05-15 12:59:28 -04:00
Simo Sorce 10f0881dba Implement checks to make sure we are not assigning a number that is in use.
Change config to support a maximum value so that ranges can be defined.
Add stubs to reach out and ask to swap in new ranges and notify that new
chuncks are needed/used.
2008-05-15 12:59:28 -04:00
Simo Sorce a86b1eaeed fix stupid typo,
thanks Nalin for spotting this.
2008-05-10 11:25:31 -04:00
Simo Sorce 0b2756bed7 Fix existence check, default_server is an array so we need to
check its length to determine if it is empty
2008-05-10 11:25:31 -04:00
Simo Sorce 5c4b1770c0 On IPA Servers connect to ourselves using localhost,
and avoid searching for KDC servers via DNS, we just connect
to ourselves.
2008-05-08 17:31:19 -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
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
Simo Sorce 70d5209b11 Fix a bug in our dns library, do not return the query as a reply if 0 replies were returned. 2008-05-07 14:42:49 -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
Simo Sorce 298747e15a Make sure we always have the [domain-realm] section or kerberos libs misbheave. 2008-04-22 15:28:42 -04:00
Simo Sorce 24a7cf3714 Fix client discovery and make sure command line options are not overwritten
with discovered options, just verified.
2008-04-09 15:55:46 -04:00
Simo Sorce 3e47b48068 Make sure we use the configured server in ipa.conf first, and
fallback to the discovered ones only if that's not available
2008-04-09 14:37:01 -04:00
Simo Sorce 70d3717e8b Add --permitted-enctypes command and add it to the man page too 2008-04-08 18:02:42 -04:00
Simo Sorce c45d58cc3f Make sure we start the NSCD daemon.
It makes a huge difference on clients, if we cache lookups
2008-04-08 14:58:52 -04:00
Simo Sorce f24842fd9d is_integer returns the integer, don't use an if clause, just check it, if it
is wrong it will just throw an exception and exit.
Fix error reporting to use the canonical str(e)
2008-04-08 14:35:26 -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
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
Simo Sorce f7a425fff8 Need python-ldap in Requires 2008-04-02 19:13:46 -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
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
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
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
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
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
Simo Sorce 8bfe814358 Allow client install to specify ntp server name 2008-03-14 08:42:06 -04:00
Simo Sorce c2d3a9343f Add --quiet option to ipa-getkeytab
Return message on success
Avoid SASL output from being printed
Make sure the man page is up to date
2008-03-05 14:54:13 -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
Simo Sorce c367b917d7 Contribute, RHEL4 compatible, simple setup script 2008-02-26 12:34:02 -05:00
Simo Sorce d2fd2270cd We do not require the Master password anymore, fix code and error message 2008-02-25 17:18:18 -05:00
Simo Sorce e50f0fdbee Fix unattended install 2008-02-25 17:16:18 -05:00
Simo Sorce 144a728182 Make sure KrbPrincipalName is unique server-wide 2008-02-21 22:31:16 -05:00
Simo Sorce fbb2637a48 Syntax error, ')' in the worng place throws nasty 500 errors on ldap errors :) 2008-02-21 17:16:17 -05:00
Simo Sorce 80feb3aecf cosmetic fixes 2008-02-21 14:39:50 -05:00
Simo Sorce ae0eaa0120 Let users write their own password, should fix 433707 2008-02-21 09:51:47 -05:00
Simo Sorce 33b746df58 merge 2008-02-21 09:38:39 -05:00
Simo Sorce f87db10a07 Purely indentiation, trailing spaces, cosmetic fixes 2008-02-21 09:36:35 -05:00
Simo Sorce 0996e55573 merge 2008-02-20 11:59:45 -05:00
Simo Sorce 30195fb5fb Pass in server and domain parameters if provided, so that they are not ignored 2008-02-19 15:57:53 -05:00
Simo Sorce 0ae42b28de Start ntpd first unless we do not want it.
Make sure we do sync the clock leaping to the current correct time.
This avoids problems with bad dates on certificates, etc..
2008-02-20 11:03:46 -05:00
Simo Sorce 46cb6e9bdd Run ipa-client-install after server install bits 2008-02-20 10:16:19 -05:00
Simo Sorce 0375112200 Add switch to be able to provide a comma separate list of encryption types
we want to have in the keytab.
This superceedes any default enctype.
2008-02-06 19:01:22 -05:00
Simo Sorce 3902a381d5 Add uniqueMember -> member mapping into /etc/ldap.conf on installation 2008-02-05 15:41:55 -05:00
Simo Sorce 8de5f477d1 Support getting in a principal with out the REALM part 2007-12-21 15:18:43 -05:00
Simo Sorce a9e4e5a1e2 Finishe removing previous code to fetch keytabs 2007-12-21 12:31:31 -05:00
Simo Sorce b72905817a Merge version changes with upstream 2007-12-21 11:53:31 -05:00
Simo Sorce ed50c663e8 Big changeset that includes the work around keytab management.
Following the changelog history from my dev tree, some comments are useful imo

------------------------------------------------------

user:        Simo Sorce <ssorce@redhat.com>
date:        Fri Dec 21 03:05:36 2007 -0500
files:       ipa-server/ipa-slapi-plugins/ipa-pwd-extop/test-get-keytab.c
description:
Remove remnants of the initial test tool

changeset:   563:4fe574b7bdf1
user:        Simo Sorce <ssorce@redhat.com>
date:        Fri Dec 21 02:58:37 2007 -0500
files:       ipa-server/ipa-slapi-plugins/ipa-pwd-extop/ipa_pwd_extop.c
description:
Maybe actually encrypting the keys will help :-)

changeset:   562:488ded41242a
user:        Simo Sorce <ssorce@redhat.com>
date:        Thu Dec 20 23:53:50 2007 -0500
files:       ipa-server/ipa-install/share/Makefile.am ipa-server/ipa-install/share/default-aci.ldif
description:
Fixes

changeset:   561:4518f6f5ecaf
user:        Simo Sorce <ssorce@redhat.com>
date:        Thu Dec 20 23:53:32 2007 -0500
files:       ipa-admintools/Makefile ipa-admintools/ipa-addservice
description:
transform the old ipa-getkeytab in a tool to add services as the new
ipa-getkeytab won't do it (and IMO it makes more sense to keep the
two functions separate anyway).

changeset:   559:25a7f8ee973d
user:        Simo Sorce <ssorce@redhat.com>
date:        Thu Dec 20 23:48:59 2007 -0500
files:       ipa-server/ipa-slapi-plugins/ipa-pwd-extop/ipa_pwd_extop.c
description:
Bugfixes

changeset:   558:28fcabe4aeba
user:        Simo Sorce <ssorce@redhat.com>
date:        Thu Dec 20 23:48:29 2007 -0500
files:       ipa-client/configure.ac ipa-client/ipa-client.spec ipa-client/ipa-client.spec.in ipa-client/ipa-getkeytab.c
description:
Configure fixes
Add ipa-getkeytab to spec
Client fixes

changeset:   557:e92a4ffdcda4
user:        Simo Sorce <ssorce@redhat.com>
date:        Thu Dec 20 20:57:10 2007 -0500
files:       ipa-client/Makefile.am ipa-client/configure.ac
description:
Try to make ipa-getkeytab build via autotools

changeset:   556:224894175d6b
user:        Simo Sorce <ssorce@redhat.com>
date:        Thu Dec 20 20:35:56 2007 -0500
files:       ipa-admintools/ipa-getkeytab ipa-client/ipa-getkeytab.c
description:
Messed a bit with hg commands.
To make it short:
- Remove the python ipa-getkeytab program
- Rename the keytab plugin test program to ipa-getkeytab
- Put the program in ipa-client as it should be distributed with the client
  tools

changeset:   555:5e1a068f2e90
user:        Simo Sorce <ssorce@redhat.com>
date:        Thu Dec 20 20:20:40 2007 -0500
files:       ipa-server/ipa-slapi-plugins/ipa-pwd-extop/test-get-keytab.c
description:
Polish the client program

changeset:   554:0a5b19a167cf
user:        Simo Sorce <ssorce@redhat.com>
date:        Thu Dec 20 18:53:49 2007 -0500
files:       ipa-server/ipa-install/share/default-aci.ldif ipa-server/ipa-install/share/default-keytypes.ldif ipa-server/ipa-install/share/kdc.conf.template ipa-server/ipa-install/share/kerberos.ldif ipa-server/ipa-slapi-plugins/ipa-pwd-extop/ipa_pwd_extop.c ipa-server/ipa-slapi-plugins/ipa-pwd-extop/test-get-keytab.c ipa-server/ipaserver/krbinstance.py
description:
Support retrieving enctypes from LDAP
Filter enctypes
Update test program

changeset:   553:f75d7886cb91
user:        Simo Sorce <ssorce@redhat.com>
date:        Thu Dec 20 00:17:40 2007 -0500
files:       ipa-server/ipa-slapi-plugins/ipa-pwd-extop/test-get-keytab.c
description:
Fix ber generation and remove redundant keys

changeset:   552:0769cafe6dcd
user:        Simo Sorce <ssorce@redhat.com>
date:        Wed Dec 19 19:31:37 2007 -0500
files:       ipa-server/ipa-slapi-plugins/ipa-pwd-extop/test-get-keytab.c
description:
Avoid stupid segfault

changeset:   551:1acd5fdb5788
user:        Simo Sorce <ssorce@redhat.com>
date:        Wed Dec 19 18:39:12 2007 -0500
files:       ipa-server/ipa-slapi-plugins/ipa-pwd-extop/ipa_pwd_extop.c
description:
If ber_peek_tag() returns LBER_ERROR it may just be that we are at the
end of the buffer. Unfortunately ber_scanf is broken in the sense that
it doesn't actually really consider sequence endings (due probably to the fact
they are just representation and do not reflect in the underlieing DER
encoding.)

changeset:   550:e974fb2726a4
user:        Simo Sorce <ssorce@redhat.com>
date:        Wed Dec 19 18:35:07 2007 -0500
files:       ipa-server/ipa-slapi-plugins/ipa-pwd-extop/ipa_pwd_extop.c ipa-server/ipa-slapi-plugins/ipa-pwd-extop/test-get-keytab.c
description:
First shot at the new method
2007-12-21 11:37:19 -05:00
Simo Sorce 2faa288218 Add host keytab creation for masters 2007-12-13 16:44:57 -05:00
Simo Sorce 01131e2a37 Make sure we don't keep around old keys.
Fixes problem changing passwords seen only on servers where
re-installations where performed (and old secrets piled up)
2007-12-11 12:25:58 -05:00
Simo Sorce 3defaaf7ba Make admintools discover the domain using DNS calls to find the LDAP server. 2007-12-11 10:58:39 -05:00
Simo Sorce c39d6d3be8 Merge in Rob aci patch (resolve conflict) 2007-12-12 16:42:19 -05:00
Simo Sorce cecbca1a84 Separate out ACIs that affect radius 2007-12-12 14:16:52 -05:00
Simo Sorce 87bc5c4d63 Handle add/removing and stopping restarting daemons in update/remove 2007-12-12 13:58:55 -05:00
Simo Sorce 88c0c7f321 from ipa.ipautil import * --> from ipa import ipautil 2007-12-12 13:15:56 -05:00
Simo Sorce d76886ff4f - Better access control, make sure not even admins can read out passwords
- Insure admins can't locked out by mistake by inclusion in disabled groups
- Fix also minor error in krbinstance.py
2007-12-11 21:56:36 -05:00
Simo Sorce c0b809efd5 Move dnsclient into ipa-python so that I will be able to use it in ipaconfig 2007-12-10 16:31:21 -05:00
Simo Sorce 25c542870d Fix client installation tool 2007-12-04 09:01:40 -05:00
Simo Sorce 441e9206b5 We need the OpenSSL Crypto lib for the DES and MD4 functions to generate NT
and LM hashes.
2007-12-07 19:59:27 -05:00
Simo Sorce 647063253e Fix kdec.length or we may try to double free() or free() uninitiualized data. 2007-12-07 18:09:49 -05:00
Simo Sorce 0b51e32699 merge from upstream 2007-12-07 17:38:15 -05:00
Simo Sorce 11559e9a69 we *may* require it, it depend on the ditro in F8 cahing daemon configuration has been
incorporated in the default bind install.
2007-12-07 17:36:14 -05:00
Simo Sorce 92d773dc30 Improved ACIs 2007-11-30 16:57:48 -05:00
Simo Sorce 86c78cbe75 minor typos 2007-11-30 16:58:02 -05:00
Simo Sorce b04bed4e82 Min Pwd Change Time Check after Password reset and other minor fixes 2007-11-30 16:57:19 -05:00
Simo Sorce 5215b21ea4 merge with upstream 2007-12-11 14:19:10 -05:00
Simo Sorce 4f0b215414 Make sure we don't keep around old keys.
Fixes problem changing passwords seen only on servers where
re-installations where performed (and old secrets piled up)
2007-12-11 12:25:58 -05:00
Simo Sorce 75493763f6 iMerge with upstream 2007-12-11 11:00:24 -05:00
Simo Sorce 0614024566 Minor fix 2007-12-11 10:59:07 -05:00
Simo Sorce 463a0462d3 Make admintools discover the domain using DNS calls to find the LDAP server. 2007-12-11 10:58:39 -05:00
Simo Sorce a5617680ba Move dnsclient into ipa-python so that I will be able to use it in ipaconfig 2007-12-10 16:31:21 -05:00
Simo Sorce 77a105688c Fix ticket #70 2007-11-01 13:56:03 -04:00
Simo Sorce b456d8424a more s/unique// wrt groups members/objectclasses 2007-11-21 16:07:07 -05:00
Simo Sorce 3580d0affb Use groupOfNames and member, not groupOfUniqueNames and uniqueMember 2007-11-20 10:22:43 -05:00
Simo Sorce bec524485a Fix subtle errors in kpasswd 2007-11-20 17:41:26 -05:00
Simo Sorce 56d67b86e1 Fix bad segfault when pwvals is null 2007-11-19 19:34:27 -05:00
Simo Sorce 44f9f13e17 Remove default SASL mappings if any to avoid conflicts with IPA SASL mappings 2007-11-19 19:34:10 -05:00
Simo Sorce c6532b621d fix ldif typo 2007-11-19 19:33:36 -05:00