]> eyrie.org Git - kerberos/webauth.git/log
kerberos/webauth.git
6 years agoDeclare fast forward from 4.7.0-5 archive/debian/4.7.0-6
Russ Allbery [Fri, 29 Dec 2017 01:12:37 +0000 (17:12 -0800)]
Declare fast forward from 4.7.0-5

[dgit --quilt=gbp --overwrite]

6 years agoCorrectly honor WebKdcTokenMaxTTL for request tokens
Russ Allbery [Wed, 25 Nov 2015 22:42:24 +0000 (14:42 -0800)]
Correctly honor WebKdcTokenMaxTTL for request tokens

Gbp-Pq: Name 0005-Correctly-honor-WebKdcTokenMaxTTL-for-request-tokens.patch

6 years agoSet secure cookie flag properly with WebAuthSSLReturn
Russ Allbery [Sun, 9 Aug 2015 17:31:15 +0000 (10:31 -0700)]
Set secure cookie flag properly with WebAuthSSLReturn

If WebAuthSSLReturn is set to true, we may see non-SSL connections
that are SSL from the perspective of the browser (such as a WebAuth
server behind an L7 load balancer that does SSL termination).  In
this case, we still want to set the secure flag on the cookie so that
the browser properly restricts it to SSL connections.

Trigger setting the secure flag off the combination of whether the
request is SSL and whether WebAuthSSLReturn is set, rather than
just the former.

Gbp-Pq: Name 0004-Set-secure-cookie-flag-properly-with-WebAuthSSLRetur.patch

6 years agoAdd missing word in generic help for remember checkbox
Russ Allbery [Mon, 27 Apr 2015 01:27:31 +0000 (18:27 -0700)]
Add missing word in generic help for remember checkbox

There was a missing "neither" that made the help documentation
confusing.  Reported in Debian Bug#783289.

Change-Id: Ie1e3c1201cd3968fdebb592bf9bc86c95df36f79

Gbp-Pq: Name 0003-Add-missing-word-in-generic-help-for-remember-checkb.patch

6 years agoSuppress CGI warnings from param in list context
Robert Bradley [Sun, 29 Nov 2015 05:36:39 +0000 (21:36 -0800)]
Suppress CGI warnings from param in list context

Force scalar context to eliminate the new warning from the CGI
module:

FastCGI: server "/usr/share/webkdc/cgi/login.fcgi" stderr: CGI::param
called in list context from package WebLogin line 1615, this can lead
to vulnerabilities. See the warning in "Fetching the value or values
of a single named parameter" at /usr/share/perl5/CGI.pm line 436.

Gbp-Pq: Name 0002-Suppress-CGI-warnings-from-param-in-list-context.patch

6 years agoFix OpenSSL library probe
Russ Allbery [Sun, 13 Nov 2016 18:13:21 +0000 (10:13 -0800)]
Fix OpenSSL library probe

OpenSSL 1.1 doesn't have SSL_library_init as a regular function.
Use a different function to  probe for the OpenSSL library.

Gbp-Pq: Name 0001-Fix-OpenSSL-library-probe.patch

6 years agoFinalize changes for 4.7.0-6 debian/master debian/4.7.0-6
Russ Allbery [Fri, 29 Dec 2017 01:13:04 +0000 (17:13 -0800)]
Finalize changes for 4.7.0-6

6 years agoFix syntax error in secure cookie patch
Russ Allbery [Fri, 29 Dec 2017 01:09:22 +0000 (17:09 -0800)]
Fix syntax error in secure cookie patch

6 years agoOrphan the package
Russ Allbery [Fri, 29 Dec 2017 01:06:20 +0000 (17:06 -0800)]
Orphan the package

* Orphan this package, since I no longer use it and cannot therefore
  test or maintain it properly.  It has also been orphaned upstream.

6 years agoUse https URL in debian/watch
Russ Allbery [Fri, 29 Dec 2017 01:04:18 +0000 (17:04 -0800)]
Use https URL in debian/watch

6 years agoUpdate standards version to 4.1.3
Russ Allbery [Fri, 29 Dec 2017 01:02:12 +0000 (17:02 -0800)]
Update standards version to 4.1.3

6 years agoAdd various patches submitted upstream
Russ Allbery [Fri, 29 Dec 2017 00:59:51 +0000 (16:59 -0800)]
Add various patches submitted upstream

Upstream is dead and probably won't merge these, and they're all
good bug fixes, so add them to this final (by me) upload of the
Debian package.

6 years agoSwitch to the DEP-14 branch layout
Russ Allbery [Fri, 29 Dec 2017 00:48:19 +0000 (16:48 -0800)]
Switch to the DEP-14 branch layout

* Switch to the DEP-14 branch layout and update debian/gbp.conf and
  Vcs-Git accordingly.

6 years agoUpdate debhelper compatibility level to V11
Russ Allbery [Fri, 29 Dec 2017 00:46:34 +0000 (16:46 -0800)]
Update debhelper compatibility level to V11

* Update debhelper compatibility level to V11.
  - Remove now-unnecessary explicit dependency on dh-autoreconf.

6 years agoUpload to unstable instead debian/4.7.0-5
Russ Allbery [Mon, 7 Aug 2017 15:03:30 +0000 (08:03 -0700)]
Upload to unstable instead

OpenSSL has symbol versioning and we don't mess about inside Apache,
so we should be able to upload straight to unstable.

6 years agoChange upload target to experimental
Russ Allbery [Mon, 7 Aug 2017 14:54:52 +0000 (07:54 -0700)]
Change upload target to experimental

6 years agoFix OpenSSL library probe
Russ Allbery [Sun, 13 Nov 2016 18:13:21 +0000 (10:13 -0800)]
Fix OpenSSL library probe

OpenSSL 1.1 doesn't have SSL_library_init as a regular function.
Use a different function to  probe for the OpenSSL library.

Gbp-Pq: Name 0001-Fix-OpenSSL-library-probe.patch

6 years agowebauth (4.7.0-5) unstable; urgency=medium
Russ Allbery [Mon, 7 Aug 2017 14:54:47 +0000 (07:54 -0700)]
webauth (4.7.0-5) unstable; urgency=medium

  * Update build dependency to libssl-dev (OpenSSL 1.1).  (Closes: #859788)
  * Remove old transitional packages for the Apache module renaming.
  * Update standards version to 4.0.1.
    - Change all extra priorities to optional.

[dgit import unpatched webauth 4.7.0-5]

6 years agoImport webauth_4.7.0-5.debian.tar.xz
Russ Allbery [Mon, 7 Aug 2017 14:54:47 +0000 (07:54 -0700)]
Import webauth_4.7.0-5.debian.tar.xz

[dgit import tarball webauth 4.7.0-5 webauth_4.7.0-5.debian.tar.xz]

6 years agoAdd bug closer for OpenSSL 1.1
Russ Allbery [Mon, 7 Aug 2017 14:54:31 +0000 (07:54 -0700)]
Add bug closer for OpenSSL 1.1

6 years agoDrop transitional packages, bump standards version
Russ Allbery [Mon, 7 Aug 2017 14:53:29 +0000 (07:53 -0700)]
Drop transitional packages, bump standards version

* Remove old transitional packages for the Apache module renaming.
* Update standards version to 4.0.1.
  - Change all extra priorities to optional.

6 years agoBuild against OpenSSL 1.1
Russ Allbery [Mon, 7 Aug 2017 14:35:25 +0000 (07:35 -0700)]
Build against OpenSSL 1.1

7 years agoFinalize changes for 4.7.0-4 debian/4.7.0-4
Russ Allbery [Sun, 13 Nov 2016 18:43:39 +0000 (10:43 -0800)]
Finalize changes for 4.7.0-4

7 years agoUpdate standards version to 3.9.8
Russ Allbery [Sun, 13 Nov 2016 18:34:51 +0000 (10:34 -0800)]
Update standards version to 3.9.8

7 years agoAdd bug closer for FTBFS bug
Russ Allbery [Sun, 13 Nov 2016 18:33:59 +0000 (10:33 -0800)]
Add bug closer for FTBFS bug

7 years agoDepend on libssl1.0-dev
Russ Allbery [Sun, 13 Nov 2016 18:32:17 +0000 (10:32 -0800)]
Depend on libssl1.0-dev

* Depend on libssl1.0-dev anyway, since Apache currently requires
  libssl1.0-dev and otherwise build dependencies are not installable.

7 years agoRun wrap-and-sort -ast
Russ Allbery [Sun, 13 Nov 2016 18:31:04 +0000 (10:31 -0800)]
Run wrap-and-sort -ast

7 years agoFix a duplicate word in debian/copyright
Russ Allbery [Sun, 13 Nov 2016 18:28:33 +0000 (10:28 -0800)]
Fix a duplicate word in debian/copyright

7 years agoChange Vcs-Git and Vcs-Browser to https URLs
Russ Allbery [Sun, 13 Nov 2016 18:27:43 +0000 (10:27 -0800)]
Change Vcs-Git and Vcs-Browser to https URLs

7 years agoFix duplicate words in the documentation caught by Lintian
Russ Allbery [Sun, 13 Nov 2016 18:25:50 +0000 (10:25 -0800)]
Fix duplicate words in the documentation caught by Lintian

7 years agoMark libwebauth-perl Multi-Arch: same
Russ Allbery [Sun, 13 Nov 2016 18:23:17 +0000 (10:23 -0800)]
Mark libwebauth-perl Multi-Arch: same

* Mark libwebauth-perl Multi-Arch: same, trusting the multiarch hinter
  to be correct about this.

7 years agoAdd configure patch for OpenSSL library detection
Russ Allbery [Sun, 13 Nov 2016 18:15:10 +0000 (10:15 -0800)]
Add configure patch for OpenSSL library detection

* Add a patch to change the function used to probe for the OpenSSL
  library, allowing WebAuth to build against OpenSSL 1.1.

8 years agoFix typo in bug closer in the changelog
Russ Allbery [Fri, 21 Aug 2015 03:52:00 +0000 (20:52 -0700)]
Fix typo in bug closer in the changelog

8 years agoOverride apache2-module-depends-on-real-apache2-package debian/4.7.0-3
Russ Allbery [Fri, 21 Aug 2015 02:24:13 +0000 (19:24 -0700)]
Override apache2-module-depends-on-real-apache2-package

* Add overrides for apache2-module-depends-on-real-apache2-package,
  which appears to be a bug in either lintian or dh_apache2.

8 years agoMention WebKDC in the libwebkdc-perl package description
Russ Allbery [Fri, 21 Aug 2015 02:14:38 +0000 (19:14 -0700)]
Mention WebKDC in the libwebkdc-perl package description

* Mention WebKDC in the description of libwebkc-perl in case someone is
  searching for packages containing that module.

8 years agoBuild-Depend on libmodule-build-perl
Russ Allbery [Fri, 21 Aug 2015 02:04:49 +0000 (19:04 -0700)]
Build-Depend on libmodule-build-perl

* Explicitly Build-Depend on libmodule-build-perl, since it will be
  removed from Perl core in the next release.  (Closes: #7961560)

9 years agoMerge pull request #3 from rra/debian
Jon Robertson [Tue, 28 Apr 2015 22:02:31 +0000 (15:02 -0700)]
Merge pull request #3 from rra/debian

Debian

9 years agoFinalize changes for 4.7.0-2 debian/4.7.0-2
Russ Allbery [Mon, 27 Apr 2015 01:53:21 +0000 (18:53 -0700)]
Finalize changes for 4.7.0-2

Change-Id: I808ffc031f1a7ac11ed36d55c518dfafadc36ebe

9 years agoRefresh debian/copyright
Russ Allbery [Mon, 27 Apr 2015 01:41:29 +0000 (18:41 -0700)]
Refresh debian/copyright

Change-Id: I8745ee9898c0f1150cc6e522ceed3d77a72bf8f4

9 years agoFix upstream distribution signing key
Russ Allbery [Mon, 27 Apr 2015 01:38:22 +0000 (18:38 -0700)]
Fix upstream distribution signing key

Change-Id: Id12c850d9118b8379563ad75575d55c388acf20b

9 years agoAdd debian/gbp.conf for repository layout
Russ Allbery [Mon, 27 Apr 2015 01:34:38 +0000 (18:34 -0700)]
Add debian/gbp.conf for repository layout

* Add debian/gbp.conf reflecting the branch layout of the default
  packaging repository.

Change-Id: I443c538d160bda08d6f79d260c471100a6dc4ce3

9 years agoAdd unconditional dependency on libtime-duration-perl
Russ Allbery [Mon, 27 Apr 2015 01:32:58 +0000 (18:32 -0700)]
Add unconditional dependency on libtime-duration-perl

Moved libtime-duration-perl to Depends from Suggests.  This is now
used unconditionally upstream.  (Closes: #783288)

Change-Id: I7e537475bec7dcc6a4f97bfeae26e4ad5d811bac

9 years agoStart changelog for 4.7.0-2
Russ Allbery [Mon, 27 Apr 2015 01:31:28 +0000 (18:31 -0700)]
Start changelog for 4.7.0-2

Change-Id: I8adcebabe1c684bc92c8d9aa429dcb30f10622f0

9 years agoUpdate standards version to 3.9.6 debian/4.7.0-1
Russ Allbery [Mon, 6 Apr 2015 00:17:42 +0000 (17:17 -0700)]
Update standards version to 3.9.6

9 years agoImport webauth_4.7.0.orig.tar.xz
Russ Allbery [Mon, 6 Apr 2015 00:17:38 +0000 (17:17 -0700)]
Import webauth_4.7.0.orig.tar.xz

[dgit import orig webauth_4.7.0.orig.tar.xz]

9 years agoRename libwebauth11 to libwebauth12 for upstream SONAME change
Russ Allbery [Mon, 6 Apr 2015 00:02:03 +0000 (17:02 -0700)]
Rename libwebauth11 to libwebauth12 for upstream SONAME change

9 years agoUpdate changelog for the experimental upload to Debian
Russ Allbery [Sun, 5 Apr 2015 23:43:19 +0000 (16:43 -0700)]
Update changelog for the experimental upload to Debian

9 years agoUpdated changelog for new release
Jon Robertson [Wed, 10 Dec 2014 21:04:43 +0000 (13:04 -0800)]
Updated changelog for new release

9 years agocontrol: Added new perl dependencies and libjansson dependencies
Jon Robertson [Wed, 10 Dec 2014 21:04:33 +0000 (13:04 -0800)]
control: Added new perl dependencies and libjansson dependencies

9 years agoMerge tag 'upstream/4.7.0' into debian
Jon Robertson [Wed, 10 Dec 2014 20:47:48 +0000 (12:47 -0800)]
Merge tag 'upstream/4.7.0' into debian

Upstream version 4.7.0

9 years agoImported Upstream version 4.7.0 upstream/latest upstream/4.7.0
Jon Robertson [Wed, 10 Dec 2014 20:47:39 +0000 (12:47 -0800)]
Imported Upstream version 4.7.0

9 years agoRelease 4.7.0 release/4.7.0
Jon Robertson [Wed, 10 Dec 2014 18:58:09 +0000 (10:58 -0800)]
Release 4.7.0

9 years agoNew mod_webauth tests now include lib path
Jon Robertson [Tue, 2 Dec 2014 22:44:47 +0000 (14:44 -0800)]
New mod_webauth tests now include lib path

Short and dirty hack as I'm not sure where I want to put these in the
end, to pass the strict testing for now.

9 years agoFinished first pass at mod_webkdc automated tests
Jon Robertson [Tue, 30 Sep 2014 05:22:01 +0000 (22:22 -0700)]
Finished first pass at mod_webkdc automated tests

The main tests are now all complete save PHP.  The multifactor tests
have been halted for now due to waiting on template completion and
having higher-priority tasks to finish.

9 years agoWebLogin.pm: Tickle the error flag for error_multifactor_tiemout
Jon Robertson [Thu, 25 Sep 2014 05:35:17 +0000 (22:35 -0700)]
WebLogin.pm: Tickle the error flag for error_multifactor_tiemout

9 years agoWebAuth.pm: Added missing WA_PEC_LOGIN_TIMEOUT
Jon Robertson [Tue, 23 Sep 2014 22:23:54 +0000 (15:23 -0700)]
WebAuth.pm: Added missing WA_PEC_LOGIN_TIMEOUT

9 years agorun-tests: Fixed declaration errors
Jon Robertson [Tue, 23 Sep 2014 21:10:33 +0000 (14:10 -0700)]
run-tests: Fixed declaration errors

9 years agoUpdated new run-tests scripts to use better version requirement
Jon Robertson [Tue, 23 Sep 2014 20:46:41 +0000 (13:46 -0700)]
Updated new run-tests scripts to use better version requirement

9 years agoGive a validation remctl command its own timeout error
Jon Robertson [Mon, 22 Sep 2014 20:44:34 +0000 (13:44 -0700)]
Give a validation remctl command its own timeout error

In order to set up out of band methods that will time out if the user
doesn't respond to the out of band prompt (such as a phone call), we
need to have a validation remctl call tell us specifically if it timed
out.  Currently it's just sent as a WK_ERR_UNRECOVERABLE_ERROR, which
makes it impossible to carve out special logic for a timeout.  This will
now be sent as its own error code.

Currently this is only true for validate and not for the userinfo
command.  If we later need to do special things for userinfo timeouts as
well, we'll build on this work.

9 years agoWebLogin.pm: Fixed an error with devices_cache
Jon Robertson [Thu, 18 Sep 2014 06:27:59 +0000 (23:27 -0700)]
WebLogin.pm: Fixed an error with devices_cache

I'd forgotten that we needed to reset it explicitly and that it wouldn't
just get picked up again on page reload.

9 years agoFirst pass at updating all tests for clarity and auto-running
Jon Robertson [Thu, 18 Sep 2014 06:26:18 +0000 (23:26 -0700)]
First pass at updating all tests for clarity and auto-running

Clarified a lot of the test information on the index page.  Started to
do scripts with WWW::Mechanize to test an install.  These tests do rely
on the Stanford templates so aren't good for general use.  But then, the
multifactor tests were already relying on assumptions about our
infrastructure.

9 years agoWebLogin.pm: Fixed missing initial freeze of devices for hidden field
Jon Robertson [Fri, 12 Sep 2014 03:37:04 +0000 (20:37 -0700)]
WebLogin.pm: Fixed missing initial freeze of devices for hidden field

9 years agoWebLogin.pm: Push device id to SMS command
Jon Robertson [Fri, 12 Sep 2014 03:00:06 +0000 (20:00 -0700)]
WebLogin.pm: Push device id to SMS command

9 years agomod_webkdc.c: Fixed default factor XML from <id> to <factor>
Jon Robertson [Tue, 19 Aug 2014 06:23:49 +0000 (23:23 -0700)]
mod_webkdc.c: Fixed default factor XML from <id> to <factor>

Change-Id: Ia4ac5e78f6b6808eab1ef6848a88a25ab548138b
Reviewed-on: https://gerrit.stanford.edu/1617
Reviewed-by: Jon Robertson <jonrober@stanford.edu>
Tested-by: Jon Robertson <jonrober@stanford.edu>
9 years agoWebLogin: Changes for better multifactor handling
Jon Robertson [Tue, 26 Aug 2014 06:18:03 +0000 (23:18 -0700)]
WebLogin: Changes for better multifactor handling

* Reread multifactor data from fields on the multifactor template page.
* Pass a FreezeThaw version of the devices to the template as well, so
  that it can be kept for future iterations.
* Attempt multifactor login even if there is no passcode given, to
  accomodate non-passcode methods.
* Catch the unrecoverable error page from multifactor temporarily, as
  we'll hit that error if an out-of-band method times out.  Later we
  want to expose the timeout as an actual error on its own instead so
  that we can match against it rather than unrecoverable error.

Change-Id: I950b200c9ab58abfff9e59f65b29cd06c4c8d98c
Reviewed-on: https://gerrit.stanford.edu/1618
Reviewed-by: Jon Robertson <jonrober@stanford.edu>
Tested-by: Jon Robertson <jonrober@stanford.edu>
9 years agomod_webkdc.c: Fixed typo of response->devices to response-logins
Jon Robertson [Tue, 19 Aug 2014 05:03:44 +0000 (22:03 -0700)]
mod_webkdc.c: Fixed typo of response->devices to response-logins

Change-Id: Idc5563e974100763aedb7b899644aec4c6cd869e
Reviewed-on: https://gerrit.stanford.edu/1616
Reviewed-by: Jon Robertson <jonrober@stanford.edu>
Tested-by: Jon Robertson <jonrober@stanford.edu>
9 years agoAdd temporary test code to the multifactor template
Russ Allbery [Fri, 15 Aug 2014 00:44:32 +0000 (17:44 -0700)]
Add temporary test code to the multifactor template

To check the data returned from the WebKDC for the default device
and factor, and for the device list, add some temporary testing
code to print all of that out in the template.  This should probably
be removed before a release.

Change-Id: I703045244f79bdd07881314ad4cb1d92dd73a808
Reviewed-on: https://gerrit.stanford.edu/1615
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
9 years agoAdd support for new multifactor data in WebLogin code
Russ Allbery [Fri, 15 Aug 2014 00:43:23 +0000 (17:43 -0700)]
Add support for new multifactor data in WebLogin code

Support reading device_id from the posted form and passing it
through in the login token.  Support reading the default device
and factor and the device list from mod_webkdc and exposing it
to the templates.  Not yet tested thoroughly or end-to-end.

Change-Id: I14f9f5acafe8c00a249e29a6e43c3c48de1ce0c3
Reviewed-on: https://gerrit.stanford.edu/1614
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
9 years agoAdd new WebKdcUserInfoJSON configuration directive
Russ Allbery [Thu, 14 Aug 2014 23:14:14 +0000 (16:14 -0700)]
Add new WebKdcUserInfoJSON configuration directive

Expose the new JSON mode of the user information service in the
mod_webkdc configuration with a new WebKdcUserInfoJSON directive.

Change-Id: I668b3b23294a0bc7df88ffe1cb4926c5d9becf83
Reviewed-on: https://gerrit.stanford.edu/1613
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
9 years agoProvide the device and default factor information to WebLogin
Russ Allbery [Thu, 14 Aug 2014 01:26:33 +0000 (18:26 -0700)]
Provide the device and default factor information to WebLogin

Pass the device information and default device through from the
user information service to the response to a WebLogin
<requestTokenRequest> so that it can be, eventually, passed all the
way to the templates.

Change-Id: I550aa18e21788e24ebd103d0ce859272e40d23de
Reviewed-on: https://gerrit.stanford.edu/1612
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
9 years agoBump Perl module version numbers
Russ Allbery [Thu, 14 Aug 2014 01:17:22 +0000 (18:17 -0700)]
Bump Perl module version numbers

Change-Id: I604384d7ec83f55933bcf5656eecf309cb8d1a3b
Reviewed-on: https://gerrit.stanford.edu/1611
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
9 years agoAdd support for default and device info in userinfo calls
Russ Allbery [Thu, 14 Aug 2014 00:23:16 +0000 (17:23 -0700)]
Add support for default and device info in userinfo calls

In the JSON implementation of the user information call, add
support for reading default device information and the list of
configured devices.  Add support for passing in the device ID
for validate calls, and pull it out of the login token.  (This
field is ignored with the old XML protocol.)

Change-Id: Iffadd85499024000b459dada843de29a1b9462ed
Reviewed-on: https://gerrit.stanford.edu/1610
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
9 years agoChange the protocol for returning device information to WebLogin
Russ Allbery [Thu, 14 Aug 2014 00:22:20 +0000 (17:22 -0700)]
Change the protocol for returning device information to WebLogin

Use more, separate XML elements to better match the information
model returned by the user information service using JSON, instead
of collapsing everything as attributes.

Change-Id: I9916fe0be77ccd189c6527576b10257c781ff854
Reviewed-on: https://gerrit.stanford.edu/1609
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
9 years agoRecognize more failed login error codes from Kerberos
Russ Allbery [Thu, 14 Aug 2014 00:16:16 +0000 (17:16 -0700)]
Recognize more failed login error codes from Kerberos

Recognize KRB5_BAD_ENCTYPE, KRB5_GET_IN_TKT_LOOP, KRB5_PREAUTH_FAILED,
and KRB5KRB_AP_ERR_MODIFIED as additional synonyms for a failed login
error code.  Various combinations of recent MIT and Heimdal with
different KDCs return these error codes if the password is incorrect.

Change-Id: I7d6e3621d497ce1c74924e058aebc5ff388ee332
Reviewed-on: https://gerrit.stanford.edu/1608
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
9 years agoAdd new device_id field to login tokens
Russ Allbery [Wed, 13 Aug 2014 23:48:44 +0000 (16:48 -0700)]
Add new device_id field to login tokens

This will be used by WebLogin to pass the authenticating device
identifier through to the WebKDC.  Add the field to the login
token encoding and to all of the various tests, and adjust the
test suite construction of login tokens to account for the extra
field.  Pass through a value in multifactor tests in preparation
for further tests that actually use that field.

Change-Id: I00cfbe3ed3ebe57294c8caa4c0e1041301e21577
Reviewed-on: https://gerrit.stanford.edu/1607
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
9 years agoFix the title of the Libtool versioning chapter in HACKING
Russ Allbery [Tue, 12 Aug 2014 21:07:31 +0000 (14:07 -0700)]
Fix the title of the Libtool versioning chapter in HACKING

Change-Id: Idd00dfaa3078fbb6ccc9a93c198e57c1cd2d75cd
Reviewed-on: https://gerrit.stanford.edu/1606
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
9 years agoAdd a note about possible Kerberos APIs for ticket serialization
Russ Allbery [Tue, 12 Aug 2014 03:26:58 +0000 (20:26 -0700)]
Add a note about possible Kerberos APIs for ticket serialization

Peter Mogensen pointed out MIT Kerberos APIs that can be used to
serialize a ticket in a native format, which would be a nice
replacement for our home-grown serialization format.  Add a note
about that to TODO.

Change-Id: I3474b97b71e46c23e92a735427f6e6887925d412
Reviewed-on: https://gerrit.stanford.edu/1605
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
9 years agoUpdate HACKING with further steps in the release process
Russ Allbery [Thu, 7 Aug 2014 20:50:03 +0000 (13:50 -0700)]
Update HACKING with further steps in the release process

Document bumping the shared library versioning and the Debian
package build step.

Change-Id: I5abe7939a34d02f0b0336b462f034f1b6de1cdaf
Reviewed-on: https://gerrit.stanford.edu/1604
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
9 years agoBump shared library versioning
Russ Allbery [Thu, 7 Aug 2014 20:42:43 +0000 (13:42 -0700)]
Bump shared library versioning

The addition of the new json flag in the user information service
configuration will force this, and I plan on changing the API for
the user information service calls as well.

Change-Id: I0617dd16d8a0e55049916e449c8050d1dfa48b99
Reviewed-on: https://gerrit.stanford.edu/1603
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
9 years agoRefactor JSON command construction
Russ Allbery [Thu, 7 Aug 2014 02:26:23 +0000 (19:26 -0700)]
Refactor JSON command construction

Avoid some duplicate code by pulling out the mechanics of building
the argv vector into a separate function.

Change-Id: I7c2716140cb305dd99febbb2118cf6a9f9dd9236
Reviewed-on: https://gerrit.stanford.edu/1602
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
9 years agoRefactor JSON argument construction with macros
Russ Allbery [Thu, 7 Aug 2014 02:13:13 +0000 (19:13 -0700)]
Refactor JSON argument construction with macros

Add macros that wrap the error checking when building JSON objects
and that correctly free temporary objects.  Use that to restructure
the command construction so that it shouldn't leak memory and is
much easier to read.

Change-Id: Ic60d73a9c2b6646740528feb9aca6215d492ba6e
Reviewed-on: https://gerrit.stanford.edu/1601
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
9 years agoUse macros to clean up JSON parsing
Russ Allbery [Thu, 7 Aug 2014 01:50:47 +0000 (18:50 -0700)]
Use macros to clean up JSON parsing

Add a set of macros that do proper return status checking, and
make use of those to make the JSON parsing code less horrible
and more succinct.

Change-Id: I5fbee0733d1320e94212c9ea78f58dbef505545e
Reviewed-on: https://gerrit.stanford.edu/1600
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
9 years agoMake perltidy happy with cmd-webkdc-json formatting
Russ Allbery [Thu, 7 Aug 2014 01:27:55 +0000 (18:27 -0700)]
Make perltidy happy with cmd-webkdc-json formatting

Change-Id: Ibe8880aa047c28feaddc82038589de0cf5878041
Reviewed-on: https://gerrit.stanford.edu/1599
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
9 years agoRefactor userinfo code
Russ Allbery [Thu, 7 Aug 2014 00:35:03 +0000 (17:35 -0700)]
Refactor userinfo code

Separate the remctl support, XML parsing, and JSON parsing into
separate source files to make each source file more comprehensible.

While doing this, stop always sending ip to the user information
service in the JSON protocol.  Now that we have a protocol that can
handle optional arguments easily, don't send ip if we don't have an
IP address.

Change-Id: I956e926dbaee5a742d80b0d5a27ffeda1456a7bf
Reviewed-on: https://gerrit.stanford.edu/1598
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
9 years agoFix skipped test count in userinfo tests
Russ Allbery [Thu, 7 Aug 2014 00:34:25 +0000 (17:34 -0700)]
Fix skipped test count in userinfo tests

When userinfo tests failed, the number of tests skipped was often
not correct.  Fix most (but possibly not all) of the counts.

Change-Id: Iacd908be23c095f399634b4c37346f7a3a205804
Reviewed-on: https://gerrit.stanford.edu/1597
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
9 years agoAttempt multifactor tests twice, with and without JSON
Russ Allbery [Tue, 5 Aug 2014 00:43:36 +0000 (17:43 -0700)]
Attempt multifactor tests twice, with and without JSON

For further testing of the JSON user information service, run all
the multifactor login tests twice, once with XML and once with
JSON.

Change-Id: I08c06a174e1eaa657cb70828ad62b8506d12c470
Reviewed-on: https://gerrit.stanford.edu/1596
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
9 years agoFix userinfo test suite for JSON, fix various issues revealed
Russ Allbery [Tue, 5 Aug 2014 00:43:09 +0000 (17:43 -0700)]
Fix userinfo test suite for JSON, fix various issues revealed

The test suite wasn't actually being run due to a logic error.
Correct that issue and fix various issues uncovered by the test
suite.

Change-Id: I64d21e33456db1c64ddf0db82be8b3fabe507530
Reviewed-on: https://gerrit.stanford.edu/1595
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
9 years agoRemove unused JSON test files
Russ Allbery [Tue, 5 Aug 2014 00:42:28 +0000 (17:42 -0700)]
Remove unused JSON test files

I never ended up using the generic success and failure test files.

Change-Id: Ia15fd11eb503e19d807c85ab2143552ea01f3926
Reviewed-on: https://gerrit.stanford.edu/1594
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
9 years agoIgnore a memory leak in MIT Kerberos mechlist initialization
Russ Allbery [Mon, 4 Aug 2014 22:02:58 +0000 (15:02 -0700)]
Ignore a memory leak in MIT Kerberos mechlist initialization

This is a real, if small, leak, but it's in the MIT Kerberos GSS-API
implementation, so there's nothing other code can do about it.

Change-Id: Iaa41282508b809eeca4bf2c40c583a7ddbd0a371
Reviewed-on: https://gerrit.stanford.edu/1593
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
9 years agoClose memory leak on user information service failure
Russ Allbery [Mon, 4 Aug 2014 22:01:12 +0000 (15:01 -0700)]
Close memory leak on user information service failure

Make sure that we free the JSON-encoded argument before returning
the error.

Change-Id: Ic3f9942896022a7b979b3eb63f4cc674c9bbea87
Reviewed-on: https://gerrit.stanford.edu/1592
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
9 years agoEnable JSON testing and fix one minor bug
Russ Allbery [Mon, 4 Aug 2014 20:52:20 +0000 (13:52 -0700)]
Enable JSON testing and fix one minor bug

Enable testing of the new JSON support in the user information
service, and fix one minor bug that surfaced in that testing.
The JSON code now produces results equivalent to the non-JSON
code.

Change-Id: If037f546d0e7a61f6707a28601e9fd4443d92adb
Reviewed-on: https://gerrit.stanford.edu/1591
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
9 years agoRefactor userinfo test suite
Russ Allbery [Mon, 4 Aug 2014 20:27:16 +0000 (13:27 -0700)]
Refactor userinfo test suite

Separate the tests into a function so that we will later be able
to call them twice, once using JSON and once without.

Change-Id: I6717e864f3a8b714e38f3e209dd0eba74a812b71
Reviewed-on: https://gerrit.stanford.edu/1590
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
9 years agoResync TODO with JIRA
Russ Allbery [Sun, 3 Aug 2014 05:01:40 +0000 (22:01 -0700)]
Resync TODO with JIRA

All the JIRA ticket numbers changed, so bring TODO back in line
with JIRA.

Change-Id: Ia873b15e34ce2652463d1fdcf8695dba8b08c46d
Reviewed-on: https://gerrit.stanford.edu/1589
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
9 years agoInitial framework for testing JSON user information calls
Russ Allbery [Sat, 2 Aug 2014 02:22:10 +0000 (19:22 -0700)]
Initial framework for testing JSON user information calls

Add the remctl interface, the Perl backend, and the JSON data
for testing the user information service with JSON.  This is not
yet hooked into the test suite.

Change-Id: I1bdddcc8b0104217e276014e6b0246ba5cb46169
Reviewed-on: https://gerrit.stanford.edu/1585
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
9 years agoInitial implementation of JSON user information service support
Russ Allbery [Sat, 2 Aug 2014 02:18:52 +0000 (19:18 -0700)]
Initial implementation of JSON user information service support

An initial implementation of a new user information service protocol
that uses JSON for communication.  The JSON call and parsing of the
result is implemented and compiles, but is not yet tested and is
probably buggy.  The code is in significant need of refactoring at
some point.

Change-Id: Ieefe5b372600a5a8dd73688a59760daf4d6c8e64
Reviewed-on: https://gerrit.stanford.edu/1584
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
9 years agoRemove remctl and kadmin-remctl references in README
Russ Allbery [Sat, 2 Aug 2014 01:22:55 +0000 (18:22 -0700)]
Remove remctl and kadmin-remctl references in README

This was for the separate query for the user's password expiration,
which is no longer supported in favor of pulling that information
from the user information service and passing it down from mod_webkdc.

Change-Id: Iaeba7fe731ce471aaabef2e92d1f9b450996a5dc
Reviewed-on: https://gerrit.stanford.edu/1583
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
9 years agoAdd Autoconf probe for Jansson
Russ Allbery [Tue, 29 Jul 2014 22:18:40 +0000 (15:18 -0700)]
Add Autoconf probe for Jansson

We will be using the Jansson library to parse JSON exchanges with
the user information service.

Change-Id: Id39e3327c7d03b5681c3a991bbad6d59c265bbd9
Reviewed-on: https://gerrit.stanford.edu/1582
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
9 years agoRemove stray column from rm factor definition
Russ Allbery [Wed, 23 Jul 2014 23:56:04 +0000 (16:56 -0700)]
Remove stray column from rm factor definition

In the mod_webauth manual, the rm factor definition had a stray
column that messed up the formatting.

Change-Id: I35cacdf37cea28a82560fdbf9a441789308f3a2c
Reviewed-on: https://gerrit.stanford.edu/1580
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
9 years agoAdjust for library SONAME bump debian/4.6.1-1
Russ Allbery [Wed, 23 Jul 2014 21:28:13 +0000 (14:28 -0700)]
Adjust for library SONAME bump

* Rename packages and change library symbols for upstream SONAME bump
  and symbol versioning changes.

Change-Id: I8cdf018a3f1438dcfb3701be6d7024db888511d2

9 years agoFinalize changes for 4.6.1-1
Russ Allbery [Wed, 23 Jul 2014 21:08:45 +0000 (14:08 -0700)]
Finalize changes for 4.6.1-1

Change-Id: I0feb8f7796c8cc03b88afcdaba945ff866eec960