Re: [opensc-devel] Some small PAM prompt changes to pam_pkcs11 module

2008-10-14 Thread Huie-Ying Lee
Ludovic Rousseau wrote: > On Mon, Oct 13, 2008 at 8:24 PM, Huie-Ying Lee <[EMAIL PROTECTED]> wrote: > >> OK, the updated patch is attached. >> > > Commited in revision 341. > http://www.opensc-project.org/pam_pkcs11/changeset/341 > > I added som

Re: [opensc-devel] Some small PAM prompt changes to pam_pkcs11 module

2008-10-13 Thread Huie-Ying Lee
Ludovic Rousseau wrote: On Fri, Oct 10, 2008 at 8:38 PM, Huie-Ying Lee <[EMAIL PROTECTED]> wrote: Robert Relyea wrote: It still looks like you are unconditionally changing the prompt to be 'Enter your user name'. That still leaves the problem of telling the user that &

Re: [opensc-devel] Some small PAM prompt changes to pam_pkcs11 module

2008-10-10 Thread Huie-Ying Lee
Robert Relyea wrote: Huie-Ying Lee wrote: Hello, I have completed the prompt configuration enhancement, as suggested by Ludovic. In this enhancement, I added a new field, token_type, in the pam_pkcs11.conf file. The value of the "token_type" will be used in the user promp

Re: [opensc-devel] Some small PAM prompt changes to pam_pkcs11 module

2008-10-09 Thread Huie-Ying Lee
rt card". The pam_pkcs11 source code has been updated accordingly and the patch file is attached here. Please feel free to modify the prompt messages, as you see fit. Thanks, Huie-Ying Huie-Ying Lee wrote: Ludovic Rousseau wrote: I propose to use a configuration here. The d

Re: [opensc-devel] Some small PAM prompt changes to pam_pkcs11 module

2008-09-30 Thread Huie-Ying Lee
Ludovic Rousseau wrote: > On Tue, Sep 30, 2008 at 1:49 AM, Huie-Ying Lee <[EMAIL PROTECTED]> wrote: >> Ludovic Rousseau wrote: >>> Hello, >>> >>> On Sat, Sep 27, 2008 at 12:27 AM, Huie-Ying Lee <[EMAIL PROTECTED]> >>> wrote: >>>

Re: [opensc-devel] Some small PAM prompt changes to pam_pkcs11 module

2008-09-29 Thread Huie-Ying Lee
Douglas E. Engert wrote: > > > Huie-Ying Lee wrote: >> Hello, >> >> The pam_pkcs11 module assumpts that all PKCS#11 tokens are >> smartcards, so it will display "Smart card" key word in the PAM >> prompt message.However, most of the PKCS#

Re: [opensc-devel] Some small PAM prompt changes to pam_pkcs11 module

2008-09-29 Thread Huie-Ying Lee
Ludovic Rousseau wrote: > Hello, > > On Sat, Sep 27, 2008 at 12:27 AM, Huie-Ying Lee <[EMAIL PROTECTED]> wrote: > >> The pam_pkcs11 module assumpts that all PKCS#11 tokens are smartcards, so >> it will display "Smart card" key word in the PAM prompt mess

Re: [opensc-devel] Some small PAM prompt changes to pam_pkcs11 module

2008-09-29 Thread Huie-Ying Lee
Robert Relyea wrote: > Huie-Ying Lee wrote: >> Hello, >> >> The pam_pkcs11 module assumpts that all PKCS#11 tokens are >> smartcards, so it will display "Smart card" key word in the PAM >> prompt message.However, most of the PKCS#11 tokens a

[opensc-devel] Some small PAM prompt changes to pam_pkcs11 module

2008-09-26 Thread Huie-Ying Lee
Hello, The pam_pkcs11 module assumpts that all PKCS#11 tokens are smartcards, so it will display "Smart card" key word in the PAM prompt message. However, most of the PKCS#11 tokens are not Smart cards. so we modified some prompt messages to avoid confusion when we ported this module to S

[opensc-devel] another small porting change to the pam_pkcs11 module

2008-09-24 Thread Huie-Ying Lee
Hello, In the pam_pkcs11 module, it requires PKCS#11 modules to have uid = 0 and gid = 0.With this restriction, /usr/lib/libpkcs11.so on Solaris OS could not be loaded successfully because its gid is 2.

Re: [opensc-devel] Slot/token selection changes to the pam_pkcs11 module

2008-09-08 Thread Huie-Ying Lee
Ludovic Rousseau wrote: On Thu, Aug 28, 2008 at 1:02 AM, Huie-Ying Lee <[EMAIL PROTECTED]> wrote: Douglas E. Engert wrote: This sounds like an interesting change. But could it be reworked to allow the use of either the slot_num or the slot_description? (But not both.) This woul

Re: [opensc-devel] Slot/token selection changes to the pam_pkcs11 module

2008-08-28 Thread Huie-Ying Lee
Ludovic Rousseau wrote: > On Thu, Aug 28, 2008 at 1:02 AM, Huie-Ying Lee <[EMAIL PROTECTED]> wrote: > >> Douglas E. Engert wrote: >> >>> This sounds like an interesting change. But could it be reworked to >>> allow the use of either the slot_num

Re: [opensc-devel] Slot/token selection changes to the pam_pkcs11 module

2008-08-27 Thread Huie-Ying Lee
his sounds like a good suggestion. In fact, I was also thinking about this arrangement prior to submit this patch. I will go ahead to make the enhancement and resummit the patch. Thanks, Huie-Ying > Huie-Ying Lee wrote: >> Hi, >> >> To port the pam_pkcs11 module to OpenSolar

[opensc-devel] Slot/token selection changes to the pam_pkcs11 module

2008-08-27 Thread Huie-Ying Lee
Hi, To port the pam_pkcs11 module to OpenSolaris, we made a change in the slot/token selection scheme to resolve an incompatibility issue between the OpenSC/pam_pkcs11 module and Solaris Cryptographic Framework library (a PKCS#11 implementation). We would like to share with you why the ch

Re: [opensc-devel] one small porting change to the pam_pkcs11 module

2008-08-19 Thread Huie-Ying Lee
Ludovic Rousseau wrote: > On Mon, Aug 18, 2008 at 11:58 PM, Huie-Ying Lee <[EMAIL PROTECTED]> wrote: > >> Thought it a little bit more on this ... >> Although my changes work fine, it use more memory than it needs. >> Adding an implementation of strndup() on a p

Re: [opensc-devel] one small porting change to the pam_pkcs11 module

2008-08-18 Thread Huie-Ying Lee
Huie-Ying Lee wrote: > Ludovic Rousseau wrote: > >> On Fri, Aug 15, 2008 at 12:28 AM, Huie-Ying Lee <[EMAIL PROTECTED]> wrote: >> >> >>> Hello, >>> >>> >> Hello, >> >> >> >>&g

Re: [opensc-devel] one small porting change to the pam_pkcs11 module

2008-08-18 Thread Huie-Ying Lee
Ludovic Rousseau wrote: > On Fri, Aug 15, 2008 at 12:28 AM, Huie-Ying Lee <[EMAIL PROTECTED]> wrote: > >> Hello, >> > > Hello, > > >> The "strndup()" function is a Gnu extension which is not supported on >> Solaris OS or standar

[opensc-devel] one small porting change to the pam_pkcs11 module

2008-08-14 Thread Huie-Ying Lee
Hello, The "strndup()" function is a Gnu extension which is not supported on Solaris OS or standard C library. To resolve a related compilation error, we made a small change to the src/tools/pkcs11_setup.c file for the Solaris port. Please accept the change, so that it will be more portable for

[opensc-devel] two small bug fixes to the pam_pkcs11 module

2008-08-11 Thread Huie-Ying Lee
Hi, The pam_pkcs11 module has been successfully ported to OpenSolaris recently and I would like to contribute some changes we made for Solaris port to OpenSC. Let me start with 2 small bug fixes first. These two small bugs are 1) tools/make_hash_link.sh In line 57 and line 66, $

Re: [opensc-devel] some build questions about OpenSC/pam_pkcs11 module

2008-04-01 Thread Huie-Ying Lee
Ludovic Rousseau wrote: > On Mon, Mar 31, 2008 at 11:17 PM, Huie-Ying Lee <[EMAIL PROTECTED]> wrote: >> After I found the automake, autoconf and libtool on Solaris, I tried to >> run bootstra

Re: [opensc-devel] some build questions about OpenSC/pam_pkcs11 module

2008-04-01 Thread Huie-Ying Lee
Ludovic Rousseau wrote: > On Wed, Mar 26, 2008 at 3:13 AM, Huie-Ying Lee <[EMAIL PROTECTED]> wrote: >> We are porting the version 0.6.0 of the pam_pkcs11 source officially, >> however, I would like to take a look at the latest revision of source. How >> can I s

Re: [opensc-devel] some build questions about OpenSC/pam_pkcs11 module

2008-03-31 Thread Huie-Ying Lee
Huie-Ying Lee wrote: > Peter Stuge wrote: >> On Wed, Mar 26, 2008 at 06:27:02PM -0700, Huie-Ying Lee wrote: >>> I found that Solaris doesn't support "automake", "aclocal" and >>> "libtoolize" commands currently >> >> I s

Re: [opensc-devel] some build questions about OpenSC/pam_pkcs11 module

2008-03-27 Thread Huie-Ying Lee
Peter Stuge wrote: > On Wed, Mar 26, 2008 at 06:27:02PM -0700, Huie-Ying Lee wrote: >> I found that Solaris doesn't support "automake", "aclocal" and >> "libtoolize" commands currently > > I suggest that you install automake, autoconf and l

Re: [opensc-devel] some build questions about OpenSC/pam_pkcs11 module

2008-03-26 Thread Huie-Ying Lee
Douglas E. Engert wrote: > > > Huie-Ying Lee wrote: > [...] >>> >>>> I changed the above code tp the code below and added the >>>> -DSUN_SOLARIS flag to the Maekfile.am file. >>>> > [...] >>>> >>>> However, the

Re: [opensc-devel] some build questions about OpenSC/pam_pkcs11 module

2008-03-25 Thread Huie-Ying Lee
Ludovic Rousseau wrote: > On Fri, Mar 21, 2008 at 12:51 AM, Huie-Ying Lee <[EMAIL PROTECTED]> wrote: >> Q2: To meet the Solaris file location convention, I changed the default >> location of the pam_pkcs11.conf file in the pam_config.c file. To reserve >> the origin

Re: [opensc-devel] some build questions about OpenSC/pam_pkcs11 module

2008-03-25 Thread Huie-Ying Lee
Douglas E. Engert wrote: Thank you for your help. Please see my comments below ... > > > Huie-Ying Lee wrote: >> Hi, >> >> >> I'm a Solaris engineer at Sun Micros. We have been working on porting >> the OpenSC/pam_pkcs11 module, version 0

[opensc-devel] some build questions about OpenSC/pam_pkcs11 module

2008-03-20 Thread Huie-Ying Lee
Hi, I'm a Solaris engineer at Sun Micros. We have been working on porting the OpenSC/pam_pkcs11 module, version 0.6.0, to Solaris. During the porting, I encountered a couple of build issues and I would appreciate if you can help me with them. Q1: According to the configure.in file, the defa