]> eyrie.org Git - kerberos/kadmin-remctl.git/log
kerberos/kadmin-remctl.git
10 years agoCapitalize the generic error message from Heimdal backend master
Russ Allbery [Thu, 27 Mar 2014 19:51:45 +0000 (12:51 -0700)]
Capitalize the generic error message from Heimdal backend

This is more consistent with error messages used elsewhere at
Stanford and with the convention that will be used by krb5-strength.

10 years agoRelease 3.6 release/3.6
Russ Allbery [Wed, 15 Jan 2014 22:37:23 +0000 (14:37 -0800)]
Release 3.6

10 years agoRemove unused variable in passwd_change
Russ Allbery [Wed, 15 Jan 2014 22:35:26 +0000 (14:35 -0800)]
Remove unused variable in passwd_change

Caught by clang --analyze.

10 years agoUpdate warning flags from rra-c-util 5.1
Russ Allbery [Wed, 15 Jan 2014 22:33:54 +0000 (14:33 -0800)]
Update warning flags from rra-c-util 5.1

10 years agoUpdate to rra-c-util 5.1
Russ Allbery [Wed, 15 Jan 2014 22:31:32 +0000 (14:31 -0800)]
Update to rra-c-util 5.1

* Don't attempt to use Kerberos if no Kerberos error APIs were found.
* Improve error handling in xasprintf and xvasprintf.
* Check the return status of snprintf and vsnprintf properly.
* Preserve errno if snprintf fails in vasprintf replacement.

10 years agoChange my email address to eagle@eyrie.org
Russ Allbery [Wed, 15 Jan 2014 22:12:59 +0000 (14:12 -0800)]
Change my email address to eagle@eyrie.org

10 years agoMap create and reset_passwd quality failures to a generic message
Russ Allbery [Wed, 15 Jan 2014 20:59:08 +0000 (12:59 -0800)]
Map create and reset_passwd quality failures to a generic message

In the Heimdal backend, map password quality errors on account
creation or password reset to a generic error.  The kadmin protocol
doesn't have a mechanism for passing back the rich error message from
the password quality check, so all failures use the same error string.
Remap it here, since the error message from Heimdal is of dubious
accuracy.  This will only apply to sites that have patched Heimdal to
do password quality checks on administrative operations.

10 years agoAdd configuration option to set initial password expiration
Russ Allbery [Wed, 15 Jan 2014 03:06:22 +0000 (19:06 -0800)]
Add configuration option to set initial password expiration

Add a new per-instance configuration option to set the password
expiration time for newly-created principals.  Be aware that this only
controls the initial expiration period.  After the first password
change, further expiration periods are normally controlled by the KDC
configuration or policy.

10 years agoRelease 3.5 release/3.5
Russ Allbery [Fri, 11 Oct 2013 02:02:59 +0000 (19:02 -0700)]
Release 3.5

10 years agoUpdate to rra-c-util 4.10
Russ Allbery [Fri, 11 Oct 2013 02:00:48 +0000 (19:00 -0700)]
Update to rra-c-util 4.10

* Remove some unnecessary includes.

10 years agoStop remapping Heimdal kpasswd error messages
Russ Allbery [Fri, 11 Oct 2013 01:15:39 +0000 (18:15 -0700)]
Stop remapping Heimdal kpasswd error messages

Stop mapping password quality errors in the Heimdal kpasswd backend.
Instead, remove any prefix about an external password quality program
and pass the rest of the error message back to the user.

10 years agoReport better error when enabling or disabling unknown principals
Russ Allbery [Sat, 5 Oct 2013 23:03:26 +0000 (16:03 -0700)]
Report better error when enabling or disabling unknown principals

Check the existence of the principal before enabling or disabling it
in the Heimdal backend so that nonexistent principals report a clearer
error message instead of an internal error about getAttributes
failure.

10 years agoAdd NEWS entry for parsing the new Heimdal kpasswd prompts
Russ Allbery [Sat, 5 Oct 2013 23:00:31 +0000 (16:00 -0700)]
Add NEWS entry for parsing the new Heimdal kpasswd prompts

10 years agokadmin-backend-heim: Updated string expected in password changing
Jon Robertson [Wed, 2 Oct 2013 21:37:45 +0000 (14:37 -0700)]
kadmin-backend-heim: Updated string expected in password changing

kpasswd changed some of the output it gives when changing a password, so
that expect was failing to match.  Updated to include both new and old
format of the new password verification line.

10 years agoIncrease kpasswd timeouts and fix Perl warnings
Russ Allbery [Tue, 13 Aug 2013 22:22:19 +0000 (15:22 -0700)]
Increase kpasswd timeouts and fix Perl warnings

Also increase the timeout after doing the password change from 30
seconds to 60 seconds to reflect delays that we've seen in production.
Fix another Perl warning if the password change times out.

10 years agoUse get instead of list when checking for a principal on Heimdal
Russ Allbery [Tue, 13 Aug 2013 22:20:10 +0000 (15:20 -0700)]
Use get instead of list when checking for a principal on Heimdal

In the Heimdal backend, use get instead of list to check whether a
given principal already exists.  list requires a complete database
traversal and is much more resource-intensive.

10 years agoIncrease timeout on kpasswd initial authentication
Russ Allbery [Tue, 16 Jul 2013 23:59:21 +0000 (16:59 -0700)]
Increase timeout on kpasswd initial authentication

Increase the timeout for initial authentication during a kpasswd
password change to ten seconds.  The previous timeout of two seconds
was occasionally too short in production.  Also fix a Perl warning if
the initial authentication times out.

10 years agoImport KRB5_KDB_DISALLOW_SVR release/3.4
Russ Allbery [Tue, 9 Jul 2013 23:33:51 +0000 (16:33 -0700)]
Import KRB5_KDB_DISALLOW_SVR

Required for setting that flag on newly created accounts.

10 years agoRelease 3.4
Russ Allbery [Tue, 9 Jul 2013 22:10:55 +0000 (15:10 -0700)]
Release 3.4

10 years agoAdd AC_SYS_LARGEFILE and AM_PROG_AR to configure.ac
Russ Allbery [Tue, 9 Jul 2013 22:09:38 +0000 (15:09 -0700)]
Add AC_SYS_LARGEFILE and AM_PROG_AR to configure.ac

Following current best practices and Automake 1.13 requirements.

10 years agoFix MIT references in kadmin-backend-heim documentation
Russ Allbery [Tue, 9 Jul 2013 22:08:42 +0000 (15:08 -0700)]
Fix MIT references in kadmin-backend-heim documentation

Some of the kadmin-backend-heim documentation assumed configuration
for MIT Kerberos, referenced MIT Kerberos flags, or talked about
running an external kadmin binary.  Fix all of that, and also clean
up references to Kerberos v5 and be explicit about the KDC
implementation where appropriate.

10 years agoChange the default principal regex to allow two characters
Russ Allbery [Tue, 9 Jul 2013 21:57:18 +0000 (14:57 -0700)]
Change the default principal regex to allow two characters

Change the default allowed principal regex to allow two-character user
principals.  This is just a default and can be overridden by setting
the allowed key in the configuration.

10 years agoSet disallow-svr on all newly-created principals
Russ Allbery [Tue, 9 Jul 2013 21:56:35 +0000 (14:56 -0700)]
Set disallow-svr on all newly-created principals

Set the disallow-svr flag on all newly-created principals.  This
prohibits obtaining service tickets for the principal, which provides
some hardening against brute force attacks.  Since the create command
is designed for creation of user principals, not service principals,
and use of service tickets for user principals is quite obscure and
rare in Kerberos, this seems like a better default.

11 years agoFix a segfault in passwd_change on aborted authentication
Russ Allbery [Mon, 25 Mar 2013 22:31:19 +0000 (15:31 -0700)]
Fix a segfault in passwd_change on aborted authentication

If one aborts the initial Kerberos authentication, passwd_change
attempted to free a credential cache that was NULL.  Set ccache
to NULL until it's reused to avoid that behavior.

11 years agoResynchronize README against the package web page
Russ Allbery [Mon, 25 Mar 2013 22:27:17 +0000 (15:27 -0700)]
Resynchronize README against the package web page

11 years agoRelease 3.3 release/3.3
Russ Allbery [Mon, 25 Mar 2013 17:24:48 +0000 (10:24 -0700)]
Release 3.3

11 years agoUpdate licensing information
Russ Allbery [Mon, 25 Mar 2013 17:17:02 +0000 (10:17 -0700)]
Update licensing information

Convert LICENSE to a copyright-format 1.0 file.  Switch licenses
from the older MIT license to the current Expat license.

11 years agoUpdate README to current format, update install instructions
Russ Allbery [Mon, 25 Mar 2013 16:42:59 +0000 (09:42 -0700)]
Update README to current format, update install instructions

Use my new layout for README with a separate LICENSE section.
Update the installation instructions around how finding the
Kerberos libraries works.

11 years agoUpdate to rra-c-util 4.8
Russ Allbery [Mon, 25 Mar 2013 16:33:34 +0000 (09:33 -0700)]
Update to rra-c-util 4.8

* Fix Heimdal libroken probes for old versions of Heimdal.
* Fix Kerberos header probing with non-standard include paths.
* Pass --deps to krb5-config if it is supported.
* Properly find krb5.h on NetBSD systems.
* Fix stripping of -I/usr/include from krb5-config output.
* Avoid using krb5-config if specific Kerberos paths are configured.
* Use PATH_KRB5_CONFIG instead of KRB5_CONFIG to locate krb5-config.
* Replace concat with xasprintf.
* xasprintf is now void and always calls the failure handler on error.
* Improve __attribute__ portability to old GCC or non-GCC compilers.
* Add -D_FORTIFY_SOURCE=2 to make warnings flags.
* Probe for ssize_t and replace it in portable/system.h if not found.
* Include strings.h in portable/system.h if it exists.
* Add a pointer to rra-c-util in all files.

11 years agoNEWS wording tweaks for the networking fix
Russ Allbery [Mon, 25 Mar 2013 15:35:25 +0000 (08:35 -0700)]
NEWS wording tweaks for the networking fix

11 years agoExit with non-zero status if check_passwd fails
Russ Allbery [Tue, 12 Mar 2013 02:30:02 +0000 (19:30 -0700)]
Exit with non-zero status if check_passwd fails

Exit with a non-zero status if the check_passwd command rejects the
password.  Previously, an error would be reported but the backend
would always report a successful zero status if the password could be
checked, even if it was rejected.

11 years agoBetter error when changing password of disabled account
Russ Allbery [Tue, 12 Mar 2013 02:29:25 +0000 (19:29 -0700)]
Better error when changing password of disabled account

Produce a better error message when trying to change the password of a
disabled account with the Heimdal backend.

11 years agoIn Heimdal version, do password strength check with IPC::Run
Russ Allbery [Tue, 12 Mar 2013 02:19:50 +0000 (19:19 -0700)]
In Heimdal version, do password strength check with IPC::Run

Something about the workaround code to suppress the stderr result
from Heimdal's libraries causes STDERR handling to get messed up
in Perl.  Since the password strength checking program returns its
error on stderr, this is a problem.  IPC::Run works properly and is
much more succinct, so switch to it.

11 years agoFurther Heimdal error handling fixes
Russ Allbery [Mon, 25 Feb 2013 04:23:30 +0000 (20:23 -0800)]
Further Heimdal error handling fixes

Clean up error reporting in the Heimdal version of kadmin-backend.
Use the correct (rather than the documented) way to tell
Heimdal::Kadm5 to throw exceptions, and ensure that all kadmin
functions uniformly use the same standard error formatting and exit
status for kadmin failures.

Also suppress the standard error output from the Heimdal library since
Heimdal::Kadm5 does not.

11 years agoRetry connecting to Heimdal if the first try fails
Russ Allbery [Fri, 22 Feb 2013 02:21:38 +0000 (18:21 -0800)]
Retry connecting to Heimdal if the first try fails

In the Heimdal version of kadmin-backend, retry the kadmin connection
once if the first connection fails.  This is a workaround for a
transient networking error that we're seeing at Stanford and therefore
may not be fully appropriate for other sites.  Even on a successful
reconnect, this will cause some errors to be sent to standard error
due to the behavior of Heimdal::Kadm5.

12 years agoStrip whitespace from the username after prompting in passwd_change
Russ Allbery [Sat, 3 Dec 2011 05:47:46 +0000 (21:47 -0800)]
Strip whitespace from the username after prompting in passwd_change

When prompting for a username in passwd_change, strip any surrounding
whitespace from that username before proceeding.

13 years agoRelease 3.2 release/3.2
Russ Allbery [Thu, 9 Jun 2011 21:54:46 +0000 (14:54 -0700)]
Release 3.2

13 years agoNote in README that kasetkey requires old wallet versions
Russ Allbery [Thu, 9 Jun 2011 21:54:13 +0000 (14:54 -0700)]
Note in README that kasetkey requires old wallet versions

13 years agoUpdate LICENSE and README license statement
Russ Allbery [Thu, 9 Jun 2011 21:53:06 +0000 (14:53 -0700)]
Update LICENSE and README license statement

13 years agoUse the correct form of the Stanford copyright statement
Russ Allbery [Thu, 9 Jun 2011 21:40:58 +0000 (14:40 -0700)]
Use the correct form of the Stanford copyright statement

13 years agoUpdate the default attribute handling to match production
Russ Allbery [Thu, 9 Jun 2011 21:38:26 +0000 (14:38 -0700)]
Update the default attribute handling to match production

Always set preauth for newly created accounts, whether disabled or
not, to match the way that this is done in production.

13 years agoUpdate to rra-c-util 3.6
Russ Allbery [Thu, 9 Jun 2011 21:33:44 +0000 (14:33 -0700)]
Update to rra-c-util 3.6

* Check for krb5-config in /usr/kerberos/bin as well as user's PATH.
* Add replacement for krb5_appdefault_* functions for AIX Kerberos.
* Fix broken GCC attribute markers.
* Fix Kerberos library probing without transitive shared libraries.
* Suppress warnings when probing for AIX-only Kerberos headers.
* Support Heimdal GSS-API on OpenBSD without a separate libroken.
* Update GCC warning flags for GCC 4.6.1.

13 years agoAdd support for separate password change blacklist
Russ Allbery [Wed, 8 Jun 2011 20:26:04 +0000 (13:26 -0700)]
Add support for separate password change blacklist

Add support for a separate blacklist of principals whose passwords
cannot be changed with reset_passwd but who do not themselves have the
ability to reset passwords.

13 years agoAdd NEWS entry for attribute setting in kadmin-backend-heim
Russ Allbery [Thu, 6 Jan 2011 20:24:29 +0000 (12:24 -0800)]
Add NEWS entry for attribute setting in kadmin-backend-heim

13 years agoMinor coding style fix in kadmin-backend-heim
Russ Allbery [Thu, 6 Jan 2011 20:23:24 +0000 (12:23 -0800)]
Minor coding style fix in kadmin-backend-heim

13 years agoUntabify kadmin-backend-heim
Russ Allbery [Thu, 6 Jan 2011 20:22:15 +0000 (12:22 -0800)]
Untabify kadmin-backend-heim

13 years agoCorrectly handle incorrect password errors from Heimdal
Russ Allbery [Thu, 6 Jan 2011 20:20:50 +0000 (12:20 -0800)]
Correctly handle incorrect password errors from Heimdal

Properly handle incorrect password errors from Heimdal's kpasswd.
Previously, if change_passwd failed because the original password was
incorrect, kadmin-remctl would output a confusing Expect error.

13 years agoFixed to kadmin_create default attributes in kadmin-backend-heim
Jon Robertson [Thu, 5 Aug 2010 04:21:39 +0000 (21:21 -0700)]
Fixed to kadmin_create default attributes in kadmin-backend-heim

The code for creating a Kerberos principal was trying to get the default
set of attributes and then modify them before fully creating the account,
in order to properly create a disabled account.  However, the default
attributes seem to not be created until the principal is fully created,
so we actually lose the default attributes by doing so.  As a fix, hand
the routine our own default set of attributes.  This isn't optimal, but
it's better than nothing.

13 years agoRelease 3.1 release/3.1
Russ Allbery [Wed, 21 Jul 2010 21:45:21 +0000 (14:45 -0700)]
Release 3.1

13 years agoFix version detection in autogen for man page generation
Russ Allbery [Wed, 21 Jul 2010 21:43:54 +0000 (14:43 -0700)]
Fix version detection in autogen for man page generation

13 years agoUpdate to rra-c-util 2.5
Russ Allbery [Wed, 21 Jul 2010 21:31:44 +0000 (14:31 -0700)]
Update to rra-c-util 2.5

* Restore default settings after probing for GSS-API libraries.
* Support the *BSD build of Heimdal in the Kerberos probes.
* Fix krb5_free_error_message replacement for older Kerberos libraries.

13 years agoCheck that the type argument to check_expire is valid
Russ Allbery [Tue, 20 Jul 2010 21:04:39 +0000 (14:04 -0700)]
Check that the type argument to check_expire is valid

13 years agoFix check_expires for MIT, update documentation
Russ Allbery [Tue, 20 Jul 2010 20:54:22 +0000 (13:54 -0700)]
Fix check_expires for MIT, update documentation

The MIT implementation of check_expires was calling str2time twice.
Also update the documentation to reflect that the second argument to
check_expires is optional and "now" is a valid expiration time.

13 years agoUpdate kadmin remctl configuration for new commands
Russ Allbery [Tue, 20 Jul 2010 20:35:47 +0000 (13:35 -0700)]
Update kadmin remctl configuration for new commands

13 years agoAdd documentation for the new functions
Russ Allbery [Thu, 15 Jul 2010 01:01:16 +0000 (18:01 -0700)]
Add documentation for the new functions

Add POD documentation for pwexpiration and check_expire, and clarify
the time format for expiration.  Also alphabetize the quick help
summary.

13 years agoUse %Y-%m-%d for date formatting instead of %F
Russ Allbery [Wed, 14 Jul 2010 02:23:15 +0000 (19:23 -0700)]
Use %Y-%m-%d for date formatting instead of %F

%F is C99 and is not necessarily portable.

13 years agoAdd NEWS entries for pwexpiration and check_expire
Russ Allbery [Wed, 14 Jul 2010 02:21:37 +0000 (19:21 -0700)]
Add NEWS entries for pwexpiration and check_expire

14 years agokadmin-backend-heim: Accept 'never' for expirations
Jon Robertson [Fri, 11 Jun 2010 17:46:33 +0000 (10:46 -0700)]
kadmin-backend-heim: Accept 'never' for expirations

Accept never as a valid value for account and password expirations.  This
does currently cause a warning from Heimdal::Kadm5, but it still works.

14 years agokadmin-backend: Fixed expiration time output
Jon Robertson [Fri, 11 Jun 2010 07:28:19 +0000 (00:28 -0700)]
kadmin-backend: Fixed expiration time output

When expiration time was not set but password expiration time was, and
the soonest time of the two was requested, nothing was returned.  Fixed
this to return the password expiration time.

14 years agoAdded more support for account and password expiration
Jon Robertson [Wed, 26 May 2010 18:14:08 +0000 (11:14 -0700)]
Added more support for account and password expiration

* Fixed bugs in the existing expiration command for Heimdal, and added
  it to the help command for both MIT and Heimdal.
* Added pwexpiration command that works like the expiration command, but
  for password expiration.
* Added check_expire command that will return expiration times in GMT
  for either account or password expiration.

The commands have been tested against Heimdal, though not yet against MIT.

14 years agoImprove principal creation attributes for Heimdal
Russ Allbery [Sun, 16 May 2010 19:17:36 +0000 (12:17 -0700)]
Improve principal creation attributes for Heimdal

In the Heimdal backend, don't set KADM5_POLICY_NORMAL_MASK or
KADM5_POLICY_CLR as attributes when creating a new principal.  These
are not valid attribute values and end up setting or clearing large
numbers of other attributes.

In the Heimdal backend, don't unconditionally set the preauth required
attribute on newly created principals.  This should be handled using
the "default" principal in Heimdal to configure the desired default
principal lifetime and attributes.

14 years agoReplace checking with policy for kadmin-backend
Russ Allbery [Fri, 26 Mar 2010 06:09:45 +0000 (23:09 -0700)]
Replace checking with policy for kadmin-backend

kadmin-backend for an MIT Kerberos server no longer has the boolean
checking configuration parameter, which said whether to do password
checking.  Instead, there is a new policy configuration parameter
which, if set, sets that password policy for newly created accounts.
To duplicate the previous behavior when checking was true, set policy
to "standard".

14 years agoImprove the documentation of create_opts
Russ Allbery [Fri, 26 Mar 2010 06:04:39 +0000 (23:04 -0700)]
Improve the documentation of create_opts

14 years agoAdd TODO for setting the password expiration time
Russ Allbery [Fri, 26 Mar 2010 06:04:27 +0000 (23:04 -0700)]
Add TODO for setting the password expiration time

14 years agoAdd NEWS entries for changes from Garrett Wollman
Russ Allbery [Fri, 26 Mar 2010 06:04:13 +0000 (23:04 -0700)]
Add NEWS entries for changes from Garrett Wollman

14 years agoNote in documentation that expiration is not propagated
Russ Allbery [Fri, 26 Mar 2010 05:59:58 +0000 (22:59 -0700)]
Note in documentation that expiration is not propagated

14 years agoImplement the expiration function for Heimdal
Russ Allbery [Fri, 26 Mar 2010 05:59:08 +0000 (22:59 -0700)]
Implement the expiration function for Heimdal

14 years agoFix option alphabetization in kadmin-backend-heim
Russ Allbery [Fri, 26 Mar 2010 04:27:56 +0000 (21:27 -0700)]
Fix option alphabetization in kadmin-backend-heim

14 years agoRename extra_options to create_opts
Russ Allbery [Fri, 26 Mar 2010 04:25:32 +0000 (21:25 -0700)]
Rename extra_options to create_opts

Also add it to the comment ahead of the %CONFIG hash.

14 years agoAdd documentation for extra_options
Russ Allbery [Fri, 26 Mar 2010 04:22:48 +0000 (21:22 -0700)]
Add documentation for extra_options

Also alphabetize the configuration options by moving locked and
reformat it somewhat.

14 years agoAdd expiration command and kadmin extra options
Garrett Wollman [Fri, 26 Mar 2010 04:17:06 +0000 (21:17 -0700)]
Add expiration command and kadmin extra options

Add an expiration command to the MIT Kerberos interface that sets the
expiration time for a principal.  Add an extra_options configuration
parameter that adds extra options to the kadmin create command for that
principal.

14 years agoAllow underscores in examine
Russ Allbery [Fri, 26 Mar 2010 04:12:13 +0000 (21:12 -0700)]
Allow underscores in examine

Allow underscores in principal names by default in the examine
function.

14 years agoUpdate blurb for heimdal support
Russ Allbery [Thu, 18 Feb 2010 04:28:49 +0000 (20:28 -0800)]
Update blurb for heimdal support

14 years agoInclude .gitignore and autogen in the distribution release/3.0
Russ Allbery [Wed, 17 Feb 2010 18:46:56 +0000 (10:46 -0800)]
Include .gitignore and autogen in the distribution

14 years agoRelease 3.0
Russ Allbery [Wed, 17 Feb 2010 18:43:37 +0000 (10:43 -0800)]
Release 3.0

14 years agoMap all external check errors to the same generic kpasswd error
Russ Allbery [Tue, 16 Feb 2010 18:10:52 +0000 (10:10 -0800)]
Map all external check errors to the same generic kpasswd error

For the Heimdal version of kadmin-backend, map all errors from the
external password check program except for password too short errors
to the same generic kpasswd string, maintaining our interface for AS
systems even if Cracklib provides specific errors.

14 years agoDo password strength checking for create and reset_passwd
Russ Allbery [Tue, 16 Feb 2010 18:00:48 +0000 (10:00 -0800)]
Do password strength checking for create and reset_passwd

For the Heimdal version of kadmin-backend, do password strength checking
and report a proper error in both create and reset_passwd.  Previously,
a failure of strength checking would cause a silent failure to create a
principal.

14 years agoAdded another case for kpasswd error translation
Jon Robertson [Tue, 16 Feb 2010 17:59:57 +0000 (09:59 -0800)]
Added another case for kpasswd error translation

Added case for Heimdal error where password is short but not extremely short,
mapping to the one MIT too short error.

14 years agoAdded translation of MIT kpasswd errors to Heimdal
Jon Robertson [Tue, 16 Feb 2010 17:52:24 +0000 (09:52 -0800)]
Added translation of MIT kpasswd errors to Heimdal

For downstream apps that currently expect the change_passwd errors to be
specific strings, we translate known error cases from Heimdal kpasswd to
the matching error cases from MIT kpasswd.

14 years agoUse external program password checking in kadmin-backend-heim
Russ Allbery [Thu, 11 Feb 2010 04:55:46 +0000 (20:55 -0800)]
Use external program password checking in kadmin-backend-heim

Use the Heimdal external program API for password strength checking in
kadmin-backend-heim and check password strength on create if strength
checking is enabled for that instance, since the Heimdal kadmin API
doesn't enforce password strength on passwords changed by
administrators.

14 years agoUpdate copyright and remove trailing whitespace
Russ Allbery [Thu, 11 Feb 2010 04:33:38 +0000 (20:33 -0800)]
Update copyright and remove trailing whitespace

Update the copyright date, add Jon Robertson to the acknowledgements,
and remove trailing whitespace in kadmin-backend-heim.

14 years agoUpdated examine output for salt data
Jon Robertson [Thu, 11 Feb 2010 01:33:29 +0000 (17:33 -0800)]
Updated examine output for salt data

Changed Heimdal's pw-salt output to instead read 'no salt' as MIT kadmin
would output.

14 years agoAdd THANKS section to README
Russ Allbery [Thu, 11 Feb 2010 00:05:47 +0000 (16:05 -0800)]
Add THANKS section to README

14 years agoUpdate requirements in README for Heimdal support
Russ Allbery [Thu, 11 Feb 2010 00:04:01 +0000 (16:04 -0800)]
Update requirements in README for Heimdal support

14 years agoUpdate TODO for the 2.5 release
Russ Allbery [Thu, 11 Feb 2010 00:02:04 +0000 (16:02 -0800)]
Update TODO for the 2.5 release

Add the code duplication in kadmin-backend-heim and remove the need to
import messages-krb5.*.

14 years agoWe no longer have to say ksetpass error handling is horrible
Russ Allbery [Wed, 10 Feb 2010 23:59:53 +0000 (15:59 -0800)]
We no longer have to say ksetpass error handling is horrible

14 years agoUpdate LICENSE for rra-c-util imports and new autotools
Russ Allbery [Wed, 10 Feb 2010 23:17:37 +0000 (15:17 -0800)]
Update LICENSE for rra-c-util imports and new autotools

14 years agoNote in NEWS that kadmin-backend-heim is temporary
Russ Allbery [Wed, 10 Feb 2010 23:11:55 +0000 (15:11 -0800)]
Note in NEWS that kadmin-backend-heim is temporary

14 years agoUpdate m4/lib-pathname.m4 to rra-c-util 3.0
Russ Allbery [Wed, 10 Feb 2010 23:08:42 +0000 (15:08 -0800)]
Update m4/lib-pathname.m4 to rra-c-util 3.0

No changes that affect this package.  Update only for tidiness.

14 years agoEnable silent rules for make warnings
Russ Allbery [Wed, 10 Feb 2010 23:07:55 +0000 (15:07 -0800)]
Enable silent rules for make warnings

14 years agoCast result_string in ksetpass for Heimdal
Russ Allbery [Wed, 10 Feb 2010 23:06:08 +0000 (15:06 -0800)]
Cast result_string in ksetpass for Heimdal

The Heimdal krb5_set_password_using_ccache function returns krb5_data
structs and on Heimdal the data element is a void *.  Cast it to a
char * for our diagnostic output.

14 years agoRewrite the error handling in ksetpass and passwd_change
Russ Allbery [Wed, 10 Feb 2010 23:03:58 +0000 (15:03 -0800)]
Rewrite the error handling in ksetpass and passwd_change

Take advantage of the new portability layer and use die/warn and
die_krb5/warn_krb5 where appropriate.  Use xmalloc and concat functions
where appropriate.  Use the Kerberos portability layer to avoid calling
deprecated functions on Heimdal.

14 years agoImport the portability and utility library from rra-c-util
Russ Allbery [Wed, 10 Feb 2010 22:12:51 +0000 (14:12 -0800)]
Import the portability and utility library from rra-c-util

Synchronized with rra-c-util 3.0.  The portability and utility library
isn't used yet.  That will come in subsequent commits.

14 years agoAnchor the top-level patterns in .gitignore
Russ Allbery [Wed, 10 Feb 2010 22:12:20 +0000 (14:12 -0800)]
Anchor the top-level patterns in .gitignore

14 years agoGenerate a man page for kadmin-backend-heim as well
Russ Allbery [Wed, 10 Feb 2010 22:11:34 +0000 (14:11 -0800)]
Generate a man page for kadmin-backend-heim as well

14 years agoMultiple output and production readiness fixes
Jon Robertson [Wed, 10 Feb 2010 16:44:31 +0000 (08:44 -0800)]
Multiple output and production readiness fixes

* Changed formatting of Expect statements for kpasswd to use Heimdal
kpasswd.
* Removed testing line that was specifying realm.
* Fixed date output for the examine command.
* Fixed days output for the examine command when only one day.
* Fixed output for the examine command when principal does not exist.
* Fixed bug in kadmin_reset with sending instance rather than principal to
be reset.

14 years agoAdded ability to ignore enable for locked accounts
Jon Robertson [Tue, 26 Jan 2010 00:45:13 +0000 (16:45 -0800)]
Added ability to ignore enable for locked accounts

Added a new configuration option for each instance type, locked.  This is
an array containing a command and all arguments to it, which is used to
determine if a principal is marked to not be re-enabled via kadmin-backend.
If no command is set, none is checked.  The command is given the instance
name, and if the command returns 0, then the instance is locked and may
not be re-enabled via this interface.  This is done to support accounts
that may be locked for policy reasons, where we must go through extra steps
befor re-enabling the command.

14 years agoAdd NEWS entries for recent changes
Russ Allbery [Wed, 20 Jan 2010 05:55:55 +0000 (21:55 -0800)]
Add NEWS entries for recent changes

14 years agoAdded translator of Heimdal output to MIT get output
Jon Robertson [Wed, 13 Jan 2010 20:26:58 +0000 (12:26 -0800)]
Added translator of Heimdal output to MIT get output

Heimdal uses a different syntax for the output of its get command than
MIT's getprinc.  The output from the examine command was originally based
upon the Heimdal::Kadm5 'dump' command, which models its output off of
Heimdal's get command.  Because downstream apps might be taking the output
of kadmin-backend examine, we replicate the Heimdal::Kadm5 code to
construct the get output here, but modelled to replicate MIT instead.  In
the long term, we would love to verify and have any applications using
the output fixed so that we aren't taking the arbitrary workaround.

14 years agoAdded version of kadmin-backend for Heimdal
Jon Robertson [Thu, 10 Dec 2009 18:58:55 +0000 (10:58 -0800)]
Added version of kadmin-backend for Heimdal

kadmin-backend-heim will use Heimdal::Kadm5 to operate on a Heimdal KDC
as kadmin-backend works on an MIT KDC.  All functions are the same, and
it is identical from a use standpoint.  The longer-term plan will merge
the two back together and let kadmin-backend choose whether to use Heimdal
or MIT based on a config file value, but that is waiting on some discovery
first.