Presently apache will segfault if mod_auth_tkt is set to hash the ip address when it tries to validate the hash. This patch will rectify that. Because ipv6 addresses are larger, I set the ip to 0 and append the ipv6 address after the ip/ts string. A similar patch is required to the PHP file generating the ticket:
--- auth_ticket.inc.php.20110724 2011-07-24 19:42:12.546087557 -0400
+++ auth_ticket.inc.php 2011-07-24 19:16:35.575490945 -0400
@@ -100,7 +100,14 @@
if( $ts == "" ) {
$ts = time();
}
- $ipts = pack( "NN", ip2long($ip), $ts );
+ $ipv6 = !(strpos($ip,':') === FALSE);
+ if(!$ipv6)
+ {
+ $ipts = pack( "NN", ip2long($ip), $ts );
+ } else {
+ $ipts = pack( "NN", 0, $ts );
+ $ipts = $ipts . $ip;
+ }
// make the cookie signature
$digest0 = hash('sha512', $ipts . $key . $user . "\0" . $tokens . "\0" . $data );
Patch to to support IPv6 hashing.