]> eyrie.org Git - kerberos/perl-kerberos.git/log
kerberos/perl-kerberos.git
6 years agoIgnore MYMETA.json.lock master
Russ Allbery [Sun, 31 Dec 2017 22:46:17 +0000 (14:46 -0800)]
Ignore MYMETA.json.lock

6 years agoUse check_funcs from Config::AutoConf
Russ Allbery [Sun, 31 Dec 2017 22:45:38 +0000 (14:45 -0800)]
Use check_funcs from Config::AutoConf

The native method now does what we want.  Bump our minimum
required version of Config::AutoConf.

6 years agoFix build for new Heimdal, new Config::AutoConf
Russ Allbery [Sun, 31 Dec 2017 22:39:42 +0000 (14:39 -0800)]
Fix build for new Heimdal, new Config::AutoConf

Current versions of Heimdal no longer include all of the libraries
when asking pkg-config for heimdal-kadm-server, so explicitly ask
for heimdal-krb5 as well and concatenate the flags together.

Pass the compiler flags into Config::AutoConf as well as the linker
flags to pick up Heimdal -I/usr/include/heimdal flags on Debian.

Adjust the call to check_decl for the new Config::AutoConf call
style.

9 years agoAdd repository and bug tracker information to metadata
Russ Allbery [Sun, 3 Aug 2014 19:43:29 +0000 (12:43 -0700)]
Add repository and bug tracker information to metadata

The bug tracker won't work yet, since I haven't uploaded the first
version to CPAN yet, but prepare for that day.

9 years agoAdd Changes file
Russ Allbery [Sun, 3 Aug 2014 19:41:38 +0000 (12:41 -0700)]
Add Changes file

We're some distance away from a 1.00 release, but may as well start
a Changes file.

9 years agoAdd some more work to the TODO list
Russ Allbery [Sun, 3 Aug 2014 19:38:46 +0000 (12:38 -0700)]
Add some more work to the TODO list

10 years agoMake t/kerberos/authenticate.t executable
Russ Allbery [Fri, 23 May 2014 21:31:14 +0000 (14:31 -0700)]
Make t/kerberos/authenticate.t executable

10 years agoSupport principal lists and expiration dates in change report
Russ Allbery [Wed, 14 May 2014 21:19:44 +0000 (14:19 -0700)]
Support principal lists and expiration dates in change report

In the password-change-report example, support reading the list
of principals from an external file, and change the meaning of the
-e option to take a cutoff expiration date.  Users will be included
if their password does not expire before that date.

10 years agoFix various bugs in password-change-report example
Russ Allbery [Wed, 23 Apr 2014 00:43:23 +0000 (17:43 -0700)]
Fix various bugs in password-change-report example

Nothing like actually running the program to find all the mistakes.

10 years agoAvoid using an undefined value in check_funcs
Russ Allbery [Tue, 22 Apr 2014 23:49:53 +0000 (16:49 -0700)]
Avoid using an undefined value in check_funcs

When the caller didn't pass in a notfound function, we were still
constructing one with an undefined value.  Stop doing that.

10 years agoUpdate MANIFEST for new additions release/0.03
Russ Allbery [Tue, 22 Apr 2014 23:27:04 +0000 (16:27 -0700)]
Update MANIFEST for new additions

10 years agoUpdate module versions to 0.03
Russ Allbery [Tue, 22 Apr 2014 23:25:54 +0000 (16:25 -0700)]
Update module versions to 0.03

10 years agoAdd example to report on principals without password changes
Russ Allbery [Tue, 22 Apr 2014 23:20:51 +0000 (16:20 -0700)]
Add example to report on principals without password changes

10 years agoAdd has_attribute method call for ::Kadmin::Entry
Russ Allbery [Mon, 21 Apr 2014 23:08:23 +0000 (16:08 -0700)]
Add has_attribute method call for ::Kadmin::Entry

This returns true if the entry has the given attribute, and false
otherwise.  Needed for fast checking of whether a given Kerberos
database entry is disabled.

10 years agoAdd an attributes method to Authen::Kerberos::Kadmin
Russ Allbery [Thu, 17 Apr 2014 09:07:35 +0000 (02:07 -0700)]
Add an attributes method to Authen::Kerberos::Kadmin

Returns the attributes set on a principal as a list of strings, or
as one string in the kadmin examine format.  Add documentation,
including an explanation of what all the attributes mean.

10 years agoRename internal functions to not use the krb5_* namespace
Russ Allbery [Thu, 17 Apr 2014 04:55:34 +0000 (21:55 -0700)]
Rename internal functions to not use the krb5_* namespace

Just in case we might eventually conflict with Kerberos functions,
rename internal functions to use an akrb_* prefix.

10 years agoAdd principal listing support to Authen::Kerberos::Kadmin
Russ Allbery [Thu, 17 Apr 2014 04:47:35 +0000 (21:47 -0700)]
Add principal listing support to Authen::Kerberos::Kadmin

10 years agoAdd entry modification and setting password expiration
Russ Allbery [Thu, 17 Apr 2014 01:46:22 +0000 (18:46 -0700)]
Add entry modification and setting password expiration

The optional parameter can be used to set the password expriation
in the entry, and there is a new modify() method that will write
back all modified entries in the principal entry.

10 years agoAdd password_expiration method to ::Kadmin::Entry
Russ Allbery [Thu, 17 Apr 2014 00:51:46 +0000 (17:51 -0700)]
Add password_expiration method to ::Kadmin::Entry

10 years agoAdd get() and Authen::Kerberos::Kadmin::Entry documentation
Russ Allbery [Thu, 17 Apr 2014 00:43:58 +0000 (17:43 -0700)]
Add get() and Authen::Kerberos::Kadmin::Entry documentation

10 years agoAdd documentation for the authenticate method
Russ Allbery [Thu, 17 Apr 2014 00:09:15 +0000 (17:09 -0700)]
Add documentation for the authenticate method

10 years agoFix test suite coding style issues
Russ Allbery [Wed, 16 Apr 2014 23:56:01 +0000 (16:56 -0700)]
Fix test suite coding style issues

Now that the test suite is working again, clean up some coding
style and formatting issues.

10 years agoUpdate to rra-c-util 5.4
Russ Allbery [Wed, 16 Apr 2014 23:46:09 +0000 (16:46 -0700)]
Update to rra-c-util 5.4

Fixes some email addresses to use the correct versions from
rra-c-util and update all the test programs to use the new
environment variables to control which tests are run.

10 years agoAdd basic kadmin get support
Russ Allbery [Wed, 16 Apr 2014 07:19:22 +0000 (00:19 -0700)]
Add basic kadmin get support

Create an Authen::Kerberos::Kadmin::Entry object, add basic get
support to Authen::Kerberos::Kadmin to return it, and support a
last_password_change method.  Use that to test that the password
was really changed in the kadmin test suite.

10 years agoMove krb5_principal wrapping to the utility code
Russ Allbery [Wed, 16 Apr 2014 05:36:06 +0000 (22:36 -0700)]
Move krb5_principal wrapping to the utility code

To prepare for returning Authen::Kerberos::Principal objects from
Authen::Kerberos::Kadmin methods, move the wrapping function to
the separate utility code.

10 years agoStore an Authen::Kerberos object in the ::Kadmin object
Russ Allbery [Wed, 16 Apr 2014 05:34:36 +0000 (22:34 -0700)]
Store an Authen::Kerberos object in the ::Kadmin object

Instead of storing a bare krb5_context object, store a wrapped
Authen::Kerberos object in the Authen::Kerberos::Kadmin object.
This will allow us to return other Authen::Kerberos::* objects
from Authen::Kerberos::Kadmin methods, with an underlying
Authen::Kerberos object to keep them alive.  It will also make it
easier later to allow the caller to provide an Authen::Kerberos
context.

10 years agoInclude util/util.h in implementations of its functions
Russ Allbery [Wed, 16 Apr 2014 05:33:06 +0000 (22:33 -0700)]
Include util/util.h in implementations of its functions

It's best practice to include the header file that defines a
function in the C code that implements the function so that the
compiler can detect prototype mismatches.

10 years agoChange my email address to rra@cpan.org
Russ Allbery [Sun, 13 Apr 2014 23:32:59 +0000 (16:32 -0700)]
Change my email address to rra@cpan.org

10 years agoUpdate package manifest for recent additions
Russ Allbery [Sun, 13 Apr 2014 23:32:14 +0000 (16:32 -0700)]
Update package manifest for recent additions

10 years agoAdd initial support for obtaining credentials
Russ Allbery [Sat, 8 Mar 2014 01:32:05 +0000 (17:32 -0800)]
Add initial support for obtaining credentials

Add a new authenticate API that obtains initial credentials from
a keytab.  Only a few options are currently supported.  Also add
a basic implementation of Authen::Kerberos::Creds that's just
sufficient to check that authenticate is doing the right thing.

10 years agoDocument C API equivalents for Perl functions
Russ Allbery [Fri, 7 Mar 2014 05:03:56 +0000 (21:03 -0800)]
Document C API equivalents for Perl functions

10 years agoFix coding style issues in keytab test
Russ Allbery [Fri, 7 Mar 2014 05:03:38 +0000 (21:03 -0800)]
Fix coding style issues in keytab test

10 years agoAdd tests for keytab functions
Russ Allbery [Fri, 7 Mar 2014 04:52:57 +0000 (20:52 -0800)]
Add tests for keytab functions

Add a test suite for keytabs and keytab entries, as well as the
necessary test data.  Fix some bugs uncovered in the keytab and
keytab entry code that was not previously tested.

10 years agoAdd initial keytab and principal implementation
Russ Allbery [Fri, 7 Mar 2014 04:33:07 +0000 (20:33 -0800)]
Add initial keytab and principal implementation

Flesh out the Authen::Kerberos API considerably by adding some
glue for the first useful application.  Add classes to represent
keytabs, principals, and keytab entries.  Add more portability
glue so that we can start probing the nature of the local Kerberos
library.  Add tests for correct handling of principal objects.

10 years agoAlphabetize functions in Authen::Kerberos::Exception
Russ Allbery [Fri, 7 Mar 2014 02:26:41 +0000 (18:26 -0800)]
Alphabetize functions in Authen::Kerberos::Exception

10 years agoAdd initial Authen::Kerberos module
Russ Allbery [Thu, 6 Mar 2014 21:54:45 +0000 (13:54 -0800)]
Add initial Authen::Kerberos module

All this module supports so far is creating a Kerberos context.

10 years agoFix a stray =cut in Authen::Kerberos::Kadmin
Russ Allbery [Thu, 6 Mar 2014 21:52:46 +0000 (13:52 -0800)]
Fix a stray =cut in Authen::Kerberos::Kadmin

10 years agoMove CROAK_NULL and CROAK_NULL_SELF macros to util/util.h
Russ Allbery [Thu, 6 Mar 2014 21:10:52 +0000 (13:10 -0800)]
Move CROAK_NULL and CROAK_NULL_SELF macros to util/util.h

These macros will be used in Authen::Kerberos as well.

10 years agoMove Kerberos croak function into a utility library
Russ Allbery [Thu, 6 Mar 2014 21:05:15 +0000 (13:05 -0800)]
Move Kerberos croak function into a utility library

Rename kadmin_croak to krb5_croak and move it into a utility
library.  We will want to use it for Authen::Kerberos as well
as Authen::Kerberos::Kadmin.

10 years agoAdd new files to the manifest release/0.02
Russ Allbery [Tue, 4 Mar 2014 21:49:04 +0000 (13:49 -0800)]
Add new files to the manifest

10 years agoBump version to 0.02
Russ Allbery [Tue, 4 Mar 2014 21:29:50 +0000 (13:29 -0800)]
Bump version to 0.02

10 years agoAdd warnings that db_name and stash_file are often ignored
Russ Allbery [Sat, 1 Mar 2014 00:07:09 +0000 (16:07 -0800)]
Add warnings that db_name and stash_file are often ignored

10 years agoClean up style and critic issues in the test suite
Russ Allbery [Fri, 28 Feb 2014 23:55:21 +0000 (15:55 -0800)]
Clean up style and critic issues in the test suite

10 years agoExclude t/data from coverage testing
Russ Allbery [Fri, 28 Feb 2014 23:54:30 +0000 (15:54 -0800)]
Exclude t/data from coverage testing

We may have tiny support programs in the t/data directory.  Those
shouldn't be run as part of coverage testing.  Not only will they
probably not contribute to coverage, they may do disruptive things
like expect something on standard input.

10 years agoSpecify test databases in kdc.conf
Russ Allbery [Fri, 28 Feb 2014 08:41:47 +0000 (00:41 -0800)]
Specify test databases in kdc.conf

Setting the database when calling kadm5_init_with_password_ctx
doesn't actually work.  Set all the database paths in kdc.conf.

10 years agoStart a TODO list with the need for error codes
Russ Allbery [Fri, 28 Feb 2014 23:32:37 +0000 (15:32 -0800)]
Start a TODO list with the need for error codes

10 years agoFix password quality checking
Russ Allbery [Fri, 28 Feb 2014 23:31:43 +0000 (15:31 -0800)]
Fix password quality checking

When using the kadmin libraries in server mode, we have to do
password quality checking ourselves, since the library never does
it.  Add the required code to the chpass implementation, add a
test configuration, and test password quality.

10 years agoSet KRB5_CONFIG when running the test suite release/0.01
Russ Allbery [Fri, 28 Feb 2014 05:36:14 +0000 (21:36 -0800)]
Set KRB5_CONFIG when running the test suite

For some reason, initializing the kadmin library wants to map
the local host to a realm.

10 years agoIgnore Debian packaging files when checking the distribution
Russ Allbery [Fri, 28 Feb 2014 05:15:50 +0000 (21:15 -0800)]
Ignore Debian packaging files when checking the distribution

10 years agoAdd Test::RRA modules from rra-c-util needed for tests
Russ Allbery [Fri, 28 Feb 2014 05:15:15 +0000 (21:15 -0800)]
Add Test::RRA modules from rra-c-util needed for tests

10 years agoGet Heimdal compiler flags using pkg-config
Russ Allbery [Fri, 28 Feb 2014 04:36:00 +0000 (20:36 -0800)]
Get Heimdal compiler flags using pkg-config

For right now, until we support a wider range of Kerberos libraries,
get the Heimdal compiler flags using pkg-config.  This will let the
package build properly on a Debian system with heimdal-multidev but
not heimdal-dev.

10 years agoUpdate manifest for recently added files
Russ Allbery [Fri, 28 Feb 2014 04:24:33 +0000 (20:24 -0800)]
Update manifest for recently added files

10 years agoTidy t/kadmin/heimdal.t code
Russ Allbery [Sat, 22 Feb 2014 04:59:35 +0000 (20:59 -0800)]
Tidy t/kadmin/heimdal.t code

10 years agoAdd some initial tests for password change
Russ Allbery [Sat, 22 Feb 2014 04:53:13 +0000 (20:53 -0800)]
Add some initial tests for password change

10 years agoAdd more configuration parameters, fix various bugs
Russ Allbery [Sat, 22 Feb 2014 04:50:56 +0000 (20:50 -0800)]
Add more configuration parameters, fix various bugs

Add config_file, db_name, and stash_file configuration parameters
and pass them into either libkadm5srv or the Kerberos context as
needed.

Fix the code to set the elements of the exception thrown from the
Kerberos kadmin code.  hv_stores is a better API to use here.

Use KADM5_ADMIN_SERVICE instead of a hard-coded string.

Include the Authen::Kerberos::Exception class in the
Authen::Kerberos::Kadmin class so that exceptions will stringify
and compare properly by default.

10 years agoShorten the Authen::Kerberos::Exception to_string code
Russ Allbery [Sat, 22 Feb 2014 04:50:16 +0000 (20:50 -0800)]
Shorten the Authen::Kerberos::Exception to_string code

Rewrite the code to be more succinct and to use fewer conditional
blocks.

10 years agoInitial version
Russ Allbery [Fri, 21 Feb 2014 18:53:50 +0000 (10:53 -0800)]
Initial version

Compiles and loads, but hasn't been tested and doesn't support the
configuration parameters required for effective testing.  The only
functionality implemented so far is server-mode support for the
Heimdal libkadm5srv library.