Re: AWSToken (Kerberos) module, PHP or command-line

From: Lucas Rockwell <lucasr_at_tsw.berkeley.edu>
Date: Tue Mar 15 2005 - 15:24:15 PST

Magneters, et. al,

Posting this to the list so that others will see it in the archives if
they are having problems.

These are instructions for compiling the AWSTokenDecode command line
tool (1) and awstoken PHP extension (2) on Mac OS X (10.3.x):

1) To compile AWSTokenDecode you need to modify the Makefile so that it
points to the gcc program. To do this edit line 5 so that it look like
this:

CC= /usr/bin/gcc

Then make the program:

% make

The above results in a binary file named AWSTokenDecode. You can put
AWSTokenDecode anywhere you like. A standard location would be
/usr/local/bin.

% sudo cp AWSTokenDecode /usr/local/bin/

-----

2) To compile the awstoken PHP extension you need to create a symlink
for glibtoolize -- libtoolize is needed by phpize, but it is called
glibtoolize on OS X (if you are making the shared module):

% sudo ln -s /usr/bin/glibtoolize /usr/bin/libtoolize

Then follow the instructions in the README file. Note however, that you
do not need to enable extension=awstoken.so in php.ini. In fact, this
did not work for me at all. Instead I put in the actual path to the
extension_dir directive in php.ini. Mine looks like this:

extension_dir = "/usr/lib/php/extensions/no-debug-non-zts-20020429/"

awstoken.so in inside of no-debug-non-zts-20020429/.

-----

Note 1: The % above means the command prompt -- you do not actually
type the % sign. If you are using the default install of Panther
(10.3.x) you will likely see a $ instead of a %.

Note 2: All of the above assumes that you have the Apple developer
tools installed. If you do not, none of the above will work. You can
get the latest release of the Apple dev tools by setting up a free
account at Apple's dev site:

https://connect.apple.com/

Probably better to use the latest tools from the dev site (XCode 1.5
and gcc 3.3) than the ones that came with Panther.

-lucas

-----------------------------------------------
Lucas Rockwell
System Administrator/Programmer
The Scholar's Workstation
510.643.6853
lucasr@tsw.berkeley.edu

On Mar 15, 2005, at 9:39 AM, Daniel Sabsay wrote:

> Has anyone compiled the AWSToken (Kerberos dencryption) module for
> MacOS X client? I am having trouble with the build.
>
> Would you be willing to share? I am interested in both the
> command-line program and the PHP module. I really need
> AWStokenDecode.
>
> I also have tried using the command line...
>
> OPENSSL RSAUTL -in [decodedb64sig] -keyform DER -verify -pubin -inkey
> [AWSPublicKey]
>
> ...but it doesn't seem to work. Perhaps because the AWS public-key
> format is nonstandard??
>
> -- Daniel Sabsay, Programmer/Analyst
> Disabled Student Program
> 260 Cesar Chavez Student Center
> University of California
> Berkeley, CA 94720-4250
>
>
> -----------------------------------------------------------------------
> -
> The following was automatically added to this message by the list
> server:
>
> For information about MAGNet, its meetings and events, and its
> mailing list, including information on subscribing and unsubscribing,
> see the MAGNet Web site at <http://magnet.berkeley.edu/>.
>
>

------------------------------------------------------------------------
The following was automatically added to this message by the list server:

For information about MAGNet, its meetings and events, and its
mailing list, including information on subscribing and unsubscribing,
see the MAGNet Web site at <http://magnet.berkeley.edu/>.
Received on Tue Mar 15 15:27:00 2005

This archive was generated by hypermail 2.1.8 : Tue Mar 15 2005 - 15:27:00 PST