mod_auth_kerb.cvs/.git
7 years agoExport error environment variables. gssweb-apache-murcia
Alejandro Perez [Fri, 24 Mar 2017 07:37:22 +0000 (07:37 +0000)]
Export error environment variables.
These should help developers to show nicer error messages to users (e.g. invalid credentials, not configured libraries, etc.).

7 years agoAdd support for escaping JSON strings.
Alejandro Perez [Thu, 9 Feb 2017 13:10:14 +0000 (14:10 +0100)]
Add support for escaping JSON strings.
JSON strings need to be scaped or attributes which " (such as SAML assertions) will not work as expected.

7 years agoImplemented support for exporting GSS NAME attributes as environment variables.
Alejandro Perez [Thu, 14 Jan 2016 15:41:37 +0000 (16:41 +0100)]
Implemented support for exporting GSS NAME attributes as environment variables.
This code is strogly based on the code from https://github.com/modauthgssapi/mod_auth_gssapi, whith the required adaptations for accommodating it to this module.

9 years agoBreak out of processing upon GSS error being reported. gssweb-apache
Mark Donnelly [Mon, 12 Jan 2015 15:58:08 +0000 (10:58 -0500)]
Break out of processing upon GSS error being reported.

The module was returning success upon GSS reporting a failure, so the
normal processing needs to be aborted and an error returned.

9 years agoFix minor issues blocking Firefox authentication from working:
Margaret Wasserman [Tue, 16 Dec 2014 21:15:43 +0000 (16:15 -0500)]
Fix minor issues blocking Firefox authentication from working:
- Check only first portion of content type against default type
- Handle non-GSSWeb messages better when there is no active authentication (DECLINE)
- Fix bug where nonce is corrupted (unintentional signed/unsigned integer conversion)

9 years agoFail on empty token
Sam Hartman [Mon, 24 Nov 2014 21:26:30 +0000 (16:26 -0500)]
Fail on empty token

9 years agoGet and set/unset content-length and content-type before other filter work.
Margaret Wasserman [Mon, 24 Nov 2014 20:15:13 +0000 (15:15 -0500)]
Get and set/unset content-length and content-type before other filter work.

9 years agoSet content-type and clear content-length and content-md5 in output filter.
Margaret Wasserman [Mon, 24 Nov 2014 19:30:18 +0000 (14:30 -0500)]
Set content-type and clear content-length and content-md5 in output filter.

9 years agoWhen we get a request from a non-gssweb client, make the filter pass gssweb-apache-2014-09-08
Margaret Wasserman [Sat, 6 Sep 2014 14:38:07 +0000 (10:38 -0400)]
When we get a request from a non-gssweb client, make the filter pass
the data along the filter chain without modification.

9 years agoFix the error handling path so that it won't hand back an output
Margaret Wasserman [Sat, 6 Sep 2014 13:59:46 +0000 (09:59 -0400)]
Fix the error handling path so that it won't hand back an output
token from the previous round if this round fails, and so that the
filter won't do anything if we received a request from a non gssweb
client (we don't have an output token or a valid nonce).

9 years agoMerge branch 'gssweb-apache' of ssh://moonshot.suchdamage.org/srv/git/mod_auth_kerb...
Mark Donnelly [Fri, 5 Sep 2014 15:45:09 +0000 (11:45 -0400)]
Merge branch 'gssweb-apache' of ssh://moonshot.suchdamage.org/srv/git/mod_auth_kerb into gssweb-apache

9 years agoCompatibility with both Apache 2.2 and 2.4.
Mark Donnelly [Fri, 5 Sep 2014 15:40:44 +0000 (11:40 -0400)]
Compatibility with both Apache 2.2 and 2.4.

The ap_log_rerror function has changed the parameters that it accepts between
Apache 2.2 and 2.4.  The gss_log function wraps around ap_log_rerror, so it
needs to deal with the new parameter that was added.

9 years agoMerge branch 'gssweb-apache' of moonshot.suchdamage.org:/srv/git/mod_auth_kerb into...
Margaret Wasserman [Fri, 5 Sep 2014 10:54:05 +0000 (06:54 -0400)]
Merge branch 'gssweb-apache' of moonshot.suchdamage.org:/srv/git/mod_auth_kerb into gssweb-apache

9 years agoUpdate the protocol description to match current code and include additonal detaisl...
Margaret Wasserman [Fri, 5 Sep 2014 10:52:29 +0000 (06:52 -0400)]
Update the protocol description to match current code and include additonal detaisl about encoding, etc.

9 years agoDon't include newlines in base64 encodings
Sam Hartman [Fri, 5 Sep 2014 10:07:24 +0000 (06:07 -0400)]
Don't include newlines in base64 encodings

9 years agoInclude connection keep-alive
Sam Hartman [Wed, 3 Sep 2014 20:35:30 +0000 (16:35 -0400)]
Include connection keep-alive

9 years agoBreak gss_get_conn_ctx() into two functions, on that retrieves a context, and one...
Margaret Wasserman [Wed, 3 Sep 2014 20:34:13 +0000 (16:34 -0400)]
Break gss_get_conn_ctx() into two functions, on that retrieves a context, and one that creates a new one.  Make corresponding changes in both modules.

9 years agoDon't use output_token after free
Sam Hartman [Wed, 3 Sep 2014 13:51:51 +0000 (09:51 -0400)]
Don't use output_token after free

9 years agoBase64 encode application data, instead of escaping. Fix typo in protocol. Add...
Margaret Wasserman [Wed, 3 Sep 2014 13:46:54 +0000 (09:46 -0400)]
Base64 encode application data, instead of escaping.  Fix typo in protocol.  Add debug statement to test code.

9 years agoFix client to continue
Sam Hartman [Tue, 2 Sep 2014 17:44:40 +0000 (13:44 -0400)]
Fix client to continue

9 years agoFix bugs with code to escape quotes.
Margaret Wasserman [Tue, 2 Sep 2014 15:21:13 +0000 (11:21 -0400)]
Fix bugs with code to escape quotes.

9 years agoUpdates/fixes to gssweb filter code.
Margaret Wasserman [Tue, 2 Sep 2014 12:02:12 +0000 (08:02 -0400)]
Updates/fixes to gssweb filter code.

9 years agoFilter is successfully called, still needs to do job properly.
Margaret Wasserman [Wed, 20 Aug 2014 13:31:09 +0000 (09:31 -0400)]
Filter is successfully called, still needs to do job properly.

9 years agoRemoved backup file.
Margaret Wasserman [Wed, 13 Aug 2014 20:47:34 +0000 (16:47 -0400)]
Removed backup file.

9 years agoApache auth hook appears to work, but filter still not registered properly. Added...
Margaret Wasserman [Wed, 13 Aug 2014 20:43:36 +0000 (16:43 -0400)]
Apache auth hook appears to work, but filter still not registered properly. Added test client.

9 years agoAdd code for output filter.
Margaret Wasserman [Wed, 6 Aug 2014 19:30:09 +0000 (15:30 -0400)]
Add code for output filter.

9 years agoCode for gssweb module check_user hook.
Margaret Wasserman [Wed, 9 Jul 2014 21:32:28 +0000 (17:32 -0400)]
Code for gssweb module check_user hook.

9 years agoEditorial changs to protocol description.
Margaret Wasserman [Wed, 2 Jul 2014 11:53:54 +0000 (07:53 -0400)]
Editorial changs to protocol description.

9 years agoAdded protocol description for GSS Web authentication.
Margaret Wasserman [Wed, 2 Jul 2014 11:42:18 +0000 (07:42 -0400)]
Added protocol description for GSS Web authentication.

9 years agoCleanly separate gssapi (negotiate) auth code from (future) gssweb auth code.
Margaret Wasserman [Sun, 29 Jun 2014 11:31:08 +0000 (07:31 -0400)]
Cleanly separate gssapi (negotiate) auth code from (future) gssweb auth code.

9 years agoRemove static qualifier from non-static funtions, finish .h reorg.
Margaret Wasserman [Sun, 29 Jun 2014 11:10:30 +0000 (07:10 -0400)]
Remove static qualifier from non-static funtions, finish .h reorg.

9 years agoUpdate include files to match code refactoring for two modules.
Margaret Wasserman [Sun, 29 Jun 2014 11:03:52 +0000 (07:03 -0400)]
Update include files to match code refactoring for two modules.

9 years agoAdd gssweb sources
Margaret Wasserman [Sun, 29 Jun 2014 10:15:53 +0000 (06:15 -0400)]
Add gssweb sources

9 years agoAdd auth_gssweb module to makefile
Margaret Wasserman [Sun, 29 Jun 2014 10:12:29 +0000 (06:12 -0400)]
Add auth_gssweb module to makefile

9 years agoRefactor existing mod_auth_gssapi code to support addition of gssweb module.
Margaret Wasserman [Wed, 18 Jun 2014 19:30:26 +0000 (15:30 -0400)]
Refactor existing mod_auth_gssapi code to support addition of gssweb module.

9 years agoAdd install-sh to mod-auth-kerb directory
Margaret Wasserman [Tue, 3 Jun 2014 19:40:52 +0000 (15:40 -0400)]
Add install-sh to mod-auth-kerb directory

10 years agoMerge branch 'moonshot-negotiate' of file:///srv/git/mod_auth_kerb
Sam Hartman [Mon, 3 Feb 2014 10:08:56 +0000 (05:08 -0500)]
Merge branch 'moonshot-negotiate' of file:///srv/git/mod_auth_kerb

12 years agouse "Negotiate" mechanism moonshot-negotiate
Luke Howard [Sun, 25 Sep 2011 13:40:47 +0000 (23:40 +1000)]
use "Negotiate" mechanism

12 years agoBuild fixes to support DESTDIR
Sam Hartman [Mon, 9 May 2011 21:07:23 +0000 (17:07 -0400)]
Build fixes to support DESTDIR

12 years agolicense and copyright statements moonshot.branch
kouril [Fri, 6 May 2011 09:47:25 +0000 (09:47 +0000)]
license and copyright statements

13 years agoReturn even last token on GSS errors
kouril [Fri, 1 Apr 2011 10:45:06 +0000 (10:45 +0000)]
Return even last token on GSS errors

13 years agoAdding testing CLI client (based off the Heimdal testing sample)
kouril [Mon, 28 Mar 2011 20:21:23 +0000 (20:21 +0000)]
Adding testing CLI client (based off the Heimdal testing sample)

13 years agoImproved building
kouril [Mon, 28 Mar 2011 20:12:22 +0000 (20:12 +0000)]
Improved building

13 years agoFixed building with gss libs (by Sam Hartman)
kouril [Mon, 28 Mar 2011 19:13:37 +0000 (19:13 +0000)]
Fixed building with gss libs (by Sam Hartman)

13 years agoimporting current version of mod_auth_gssapi
kouril [Wed, 15 Dec 2010 13:25:05 +0000 (13:25 +0000)]
importing current version of mod_auth_gssapi

13 years agoremoved "legacy" of mod_auth_kerb
kouril [Wed, 15 Dec 2010 13:24:09 +0000 (13:24 +0000)]
removed "legacy" of mod_auth_kerb

13 years agoremoved unnecessary files
kouril [Wed, 15 Dec 2010 13:18:18 +0000 (13:18 +0000)]
removed unnecessary files

13 years agoBetter r.e. to prevent from substituing empty strings on some platforms origin
kouril [Thu, 22 Jul 2010 09:13:54 +0000 (09:13 +0000)]
Better r.e. to prevent from substituing empty strings on some platforms

14 years agoremove some cc warnings (thanks to Joe Orton)
kouril [Tue, 11 Aug 2009 07:37:27 +0000 (07:37 +0000)]
remove some cc warnings (thanks to Joe Orton)

14 years ago- own up Kerberos in the resulting mechanism id
kouril [Tue, 11 Aug 2009 07:26:14 +0000 (07:26 +0000)]
- own up Kerberos in the resulting mechanism id
- return an error when the client wants multiple iterations of GSSAPI authN

14 years agotweaked Basic provider support
baalberith [Tue, 5 May 2009 12:39:52 +0000 (12:39 +0000)]
tweaked Basic provider support

15 years agodocumented KrbLocalUserMapping directive
baalberith [Fri, 17 Apr 2009 09:38:23 +0000 (09:38 +0000)]
documented KrbLocalUserMapping directive

15 years agoticket [2421120], added krb5-config command locating
baalberith [Thu, 16 Apr 2009 17:26:02 +0000 (17:26 +0000)]
ticket [2421120], added krb5-config command locating

15 years agofixed return value when using basic provider to pass the auth to other modules (in...
baalberith [Mon, 9 Mar 2009 19:52:17 +0000 (19:52 +0000)]
fixed return value when using basic provider to pass the auth to other modules (in case of fail).

15 years agoforgot something
baalberith [Thu, 5 Mar 2009 17:30:45 +0000 (17:30 +0000)]
forgot something

15 years agocode reorganization caused by last update
baalberith [Thu, 5 Mar 2009 17:06:20 +0000 (17:06 +0000)]
code reorganization caused by last update

15 years agoadded password verification invocation vie the AuthBasicProvider with krb value
baalberith [Fri, 27 Feb 2009 00:07:08 +0000 (00:07 +0000)]
added password verification invocation vie the AuthBasicProvider with krb value

15 years agoincreased version number v5.4
baalberith [Thu, 4 Dec 2008 10:14:03 +0000 (10:14 +0000)]
increased version number

15 years agochangelog
baalberith [Thu, 4 Dec 2008 10:11:35 +0000 (10:11 +0000)]
changelog

15 years agoadded changelog
baalberith [Thu, 4 Dec 2008 09:48:00 +0000 (09:48 +0000)]
added changelog

15 years agoremoved compilation warnings
baalberith [Tue, 2 Dec 2008 15:17:17 +0000 (15:17 +0000)]
removed compilation warnings

15 years agoreverted to 1.146, this will be part of another commit
baalberith [Tue, 2 Dec 2008 15:01:17 +0000 (15:01 +0000)]
reverted to 1.146, this will be part of another commit

15 years agomoved sed command to its own script(for BSD with non-GNU make users) + improved confi...
baalberith [Tue, 2 Dec 2008 14:49:13 +0000 (14:49 +0000)]
moved sed command to its own script(for BSD with non-GNU make users) + improved configure script to correctly handle with --with-krb5=yes

15 years agotickets [ 1427467 ], [ 1399384 ], [ 1169067 ], [ 1289096 ] implemented KrbServiceName...
baalberith [Sun, 19 Oct 2008 19:25:44 +0000 (19:25 +0000)]
tickets [ 1427467 ], [ 1399384 ], [ 1169067 ], [ 1289096 ] implemented KrbServiceName Any for password auth

15 years agofixed bug [1323202] Configure script doesnt correctly handle "--with-krb5"
baalberith [Tue, 14 Oct 2008 19:00:50 +0000 (19:00 +0000)]
fixed bug [1323202] Configure script doesnt correctly handle "--with-krb5"

15 years agoaccepted ticket [1859455]: <sys/types.h> should be included explicitly
baalberith [Tue, 14 Oct 2008 10:59:19 +0000 (10:59 +0000)]
accepted ticket [1859455]: <sys/types.h> should be included explicitly

15 years agoaccepted ticket [1707336]: Include valid options when calling krb5_get_init_creds_passw
baalberith [Sat, 11 Oct 2008 23:09:00 +0000 (23:09 +0000)]
accepted ticket [1707336]: Include valid options when calling krb5_get_init_creds_passw

15 years agorewriten already_succeeded function, tickets [ 1774288 ], [ 1891230 ]
baalberith [Wed, 8 Oct 2008 20:12:10 +0000 (20:12 +0000)]
rewriten already_succeeded function, tickets [ 1774288 ], [ 1891230 ]

15 years agofixed threading issues as described in ticket [ 1971514 ]
baalberith [Sat, 4 Oct 2008 08:51:17 +0000 (08:51 +0000)]
fixed threading issues as described in ticket [ 1971514 ]

15 years agominor update "HTTP" -> default SERVICE_NAME
baalberith [Thu, 2 Oct 2008 11:01:01 +0000 (11:01 +0000)]
minor update "HTTP" -> default SERVICE_NAME

15 years agoaccepted patch [ 1809998 ] "Accept any incoming credential in keytab" with some minor...
baalberith [Wed, 17 Sep 2008 14:01:55 +0000 (14:01 +0000)]
accepted patch [ 1809998 ] "Accept any incoming credential in keytab" with some minor changes

15 years agorewritten whole an to ln name mapping
baalberith [Tue, 19 Aug 2008 12:29:45 +0000 (12:29 +0000)]
rewritten whole an to ln name mapping

15 years agominor update, some debugging info + better memory management
baalberith [Wed, 13 Aug 2008 01:05:52 +0000 (01:05 +0000)]
minor update, some debugging info + better memory management

15 years agoadded auth name to local name mapping. Tickets [1957143], [1303627], [2013838 ],...
baalberith [Fri, 8 Aug 2008 11:56:55 +0000 (11:56 +0000)]
added auth name to local name mapping. Tickets [1957143], [1303627], [2013838 ], [1809803], [1373783], [1611526]

15 years agofixed [1851056] problem with password beginning with ':'
baalberith [Fri, 25 Jul 2008 22:22:03 +0000 (22:22 +0000)]
fixed [1851056] problem with password beginning with ':'

15 years agoMerge from the 5.3 branch (security fix). Tagged as merge_53_src, merge_53_dst, merge... merge.53.dst.after
kouril [Tue, 24 Jun 2008 12:59:53 +0000 (12:59 +0000)]
Merge from the 5.3 branch (security fix). Tagged as merge_53_src, merge_53_dst, merge_53_dst_after.

17 years agoLogged a debug message saying if or not the client delegated his/her credential merge.53.dst
kouril [Wed, 22 Nov 2006 11:11:16 +0000 (11:11 +0000)]
Logged a debug message saying if or not the client delegated his/her credential

17 years agoPass the get_gss_error() call with a full request struct so it could log a debug...
kouril [Wed, 22 Nov 2006 10:53:53 +0000 (10:53 +0000)]
Pass the get_gss_error() call with a full request struct so it could log a debug message with the GSSAPI codes

17 years agoImproved displying of error messages
kouril [Thu, 16 Nov 2006 08:39:36 +0000 (08:39 +0000)]
Improved displying of error messages

17 years agoIncreased version numbers v5.2
kouril [Mon, 6 Nov 2006 17:33:53 +0000 (17:33 +0000)]
Increased version numbers

17 years agoAdded definition of KRB5_LIB_FUNCTION (taken from MIT), which seems not to be
kouril [Mon, 6 Nov 2006 15:48:45 +0000 (15:48 +0000)]
Added definition of KRB5_LIB_FUNCTION (taken from MIT), which seems not to be
included sometimes (MIT 1.5.1).

17 years agoThe shell functions supported by BSD make:s doesn't do what we are used to from
kouril [Mon, 6 Nov 2006 15:36:08 +0000 (15:36 +0000)]
The shell functions supported by BSD make:s doesn't do what we are used to from
GNU make. Added a comment with two lines which provide the same functionality
also on BSD platforms. It'd be greate if they were wrapped with a if
statetement.

17 years agoUse krb5_rc_resolve_full() to detect the "none" rcache type. The previous code was...
kouril [Sat, 9 Sep 2006 08:01:03 +0000 (08:01 +0000)]
Use krb5_rc_resolve_full() to detect the "none" rcache type. The previous code was based on an internal function using non-public data structure.

17 years agoChanges in krb4 code
kouril [Mon, 4 Sep 2006 10:44:17 +0000 (10:44 +0000)]
Changes in krb4 code
- switch to apr 1.x
- allow the client to specify the realm

17 years agoincreased versions to 5.1 v5.1
kouril [Fri, 1 Sep 2006 11:36:19 +0000 (11:36 +0000)]
increased versions to 5.1

17 years agoDefined GSS_KRB5_NT_PRINCIPAL_NAME as gss_nt_krb5_name to make it work with older...
kouril [Fri, 1 Sep 2006 09:32:34 +0000 (09:32 +0000)]
Defined GSS_KRB5_NT_PRINCIPAL_NAME as gss_nt_krb5_name to make it work with older MITs (eg. from RH ES3)

17 years agoSwitched to use APR 1.x
kouril [Wed, 30 Aug 2006 06:41:51 +0000 (06:41 +0000)]
Switched to use APR 1.x
- apr 1.0 stopped shipping the compat headers defining old ap_* calls

17 years agochanged type to unsigned to be consistent with prototype
kouril [Wed, 30 Aug 2006 06:38:14 +0000 (06:38 +0000)]
changed type to unsigned to be consistent with prototype

17 years agoAdded context declaration
kouril [Thu, 24 Aug 2006 11:43:07 +0000 (11:43 +0000)]
Added context declaration

17 years agoBetter check if SPNEGO is supported by the kerberos implementation. Patch accepted...
kouril [Thu, 24 Aug 2006 10:50:32 +0000 (10:50 +0000)]
Better check if SPNEGO is supported by the kerberos implementation. Patch accepted from https://sourceforge.net/tracker/?func=detail&atid=464526&aid=1533173&group_id=51775

17 years agoDetect if the "none" replay cache type is supported before enforcing its use
kouril [Thu, 24 Aug 2006 10:48:38 +0000 (10:48 +0000)]
Detect if the "none" replay cache type is supported before enforcing its use

17 years agoBumbed version v5.0
kouril [Tue, 15 Aug 2006 13:35:53 +0000 (13:35 +0000)]
Bumbed version

17 years agotypo in error message
kouril [Tue, 15 Aug 2006 13:14:27 +0000 (13:14 +0000)]
typo in error message

17 years agoBetter solution to the "array type has incomplete element type" problem
kouril [Tue, 15 Aug 2006 12:58:01 +0000 (12:58 +0000)]
Better solution to the "array type has incomplete element type" problem

17 years agoCompatibilizing define's are pulled out from apr_compat.h and apu_compat.h
kouril [Tue, 15 Aug 2006 12:48:26 +0000 (12:48 +0000)]
Compatibilizing define's are pulled out from apr_compat.h and apu_compat.h

17 years agoThe KRB5RCACHETYPE variable is set in initialization calls. Its parameter is allocate...
kouril [Tue, 15 Aug 2006 12:42:03 +0000 (12:42 +0000)]
The KRB5RCACHETYPE variable is set in initialization calls. Its parameter is allocated using strdup().

17 years agoSome calls declared static to make gcc stop complainig about non existing prototypes
kouril [Tue, 15 Aug 2006 11:34:49 +0000 (11:34 +0000)]
Some calls declared static to make gcc stop complainig about non existing prototypes

17 years agoIgnore .libs
kouril [Tue, 15 Aug 2006 11:31:52 +0000 (11:31 +0000)]
Ignore .libs

17 years agoIgnore *.lo, *.slo
kouril [Tue, 15 Aug 2006 11:08:19 +0000 (11:08 +0000)]
Ignore *.lo, *.slo

17 years agoCommented out ContextFlags_units, which makes problem on SuSE 10
kouril [Tue, 15 Aug 2006 10:34:28 +0000 (10:34 +0000)]
Commented out ContextFlags_units, which makes problem on SuSE 10