You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by Leo Li <li...@gmail.com> on 2007/10/08 08:59:32 UTC

[classlib][auth]To move org.apache.harmony.auth.UnixPrincipal related classes to common directory.

Hi, all
     I found that JndiLoginModule will associate a UnixPrincipal,
UnixNumericUserPrincipal, and the relevant UnixNumericGroupPrincipals
with the subject if logging succeeds no matter whether it is a windows
client or unix client.

    So I will move UnixPrincipal related classes from current Unix
specified directory to common directory if no one objects.


Good luck!
Leo

-- 
Leo Li
China Software Development Lab, IBM

Re: [classlib][auth]To move org.apache.harmony.auth.UnixPrincipal related classes to common directory.

Posted by Leo Li <li...@gmail.com>.
On 10/8/07, Stepan Mishura <st...@gmail.com> wrote:
> On 10/8/07, Leo Li <li...@gmail.com> wrote:
> > On 10/8/07, Stepan Mishura <st...@gmail.com> wrote:
> > > On 10/8/07, Leo Li <li...@gmail.com> wrote:
> > > > On 10/8/07, Jimmy,Jing Lv <fi...@gmail.com> wrote:
> > > > > Hi,
> > > > >
> > > > >    So shall we also rename them for clear and precise? :)
> > > >
> > > >   The tricky thing here is that the UnixPrincipal represents the
> > > > principal on the target server which provides unix interface. :)
> > > > (Besides, java doc also claims that they are UnixPrincipals).
> > > >
> > >
> > > What about NTDomainPrincipal, NTSidPrimaryGroupPrincipal and so on?
> > > Should we move them too?
> >
> >   Seems RI also includes these classes in the distribution of linux release.
> >   But what puzzles me is that from the java doc, NTDomainPrincipal is
> > only referenced by NTLoginModule if I have not missed something and
> > the NTLoginModule itself is not included in the RI distribution on
> > linux.
> >   However, at least to be compatible with RI, I agree to move
> > NTDomainPrincipal to common directory as well.
>
> Sorry, may be may first question was too short/unclear and caused
> misunderstanding.
>
> You wrote that "the UnixPrincipal represents the principal on the
> target server which provides unix interface". So I asked by analogy -
> is there any server which provides windows interface? If yes then we
> may consider moving NT* classes.

   Excuse me, I think I must have also puzzled you.:) The word about
"unix interface" is really too misleading. Actually the Jndi service
always gives the user information in a unix style according to RFC2307
as the doc of JndiLoginModule requires:"The format in which the user's
information must be stored in the directory service is specified in
RFC 2307."

   Furthermore, the java doc of JndiLoginModule concludes:
   "...If the user entered a valid username and password, this
LoginModule associates a UnixPrincipal, UnixNumericUserPrincipal, and
the relevant UnixNumericGroupPrincipals with the Subject."

    I think about JndiLoginModule, only UnixPrincipal related classes
are needed. So I recommend to leave  NT* classes where they currently
resides till there is a solid demand to move them in the future.

>
> IMO, this is not compatibility issue - the list of classes that RI
> includes into a distribution for login modules. And I think this is
> not the case when we should consider RI to make a technical decision.
> Correct?
>
> Thanks,
> Stepan.
>
> <SNIP>
>


-- 
Leo Li
China Software Development Lab, IBM

Re: [classlib][auth]To move org.apache.harmony.auth.UnixPrincipal related classes to common directory.

Posted by Stepan Mishura <st...@gmail.com>.
On 10/8/07, Leo Li <li...@gmail.com> wrote:
> On 10/8/07, Stepan Mishura <st...@gmail.com> wrote:
> > On 10/8/07, Leo Li <li...@gmail.com> wrote:
> > > On 10/8/07, Jimmy,Jing Lv <fi...@gmail.com> wrote:
> > > > Hi,
> > > >
> > > >    So shall we also rename them for clear and precise? :)
> > >
> > >   The tricky thing here is that the UnixPrincipal represents the
> > > principal on the target server which provides unix interface. :)
> > > (Besides, java doc also claims that they are UnixPrincipals).
> > >
> >
> > What about NTDomainPrincipal, NTSidPrimaryGroupPrincipal and so on?
> > Should we move them too?
>
>   Seems RI also includes these classes in the distribution of linux release.
>   But what puzzles me is that from the java doc, NTDomainPrincipal is
> only referenced by NTLoginModule if I have not missed something and
> the NTLoginModule itself is not included in the RI distribution on
> linux.
>   However, at least to be compatible with RI, I agree to move
> NTDomainPrincipal to common directory as well.

Sorry, may be may first question was too short/unclear and caused
misunderstanding.

You wrote that "the UnixPrincipal represents the principal on the
target server which provides unix interface". So I asked by analogy -
is there any server which provides windows interface? If yes then we
may consider moving NT* classes.

IMO, this is not compatibility issue - the list of classes that RI
includes into a distribution for login modules. And I think this is
not the case when we should consider RI to make a technical decision.
Correct?

Thanks,
Stepan.

<SNIP>

Re: [classlib][auth]To move org.apache.harmony.auth.UnixPrincipal related classes to common directory.

Posted by Leo Li <li...@gmail.com>.
On 10/8/07, Stepan Mishura <st...@gmail.com> wrote:
> On 10/8/07, Leo Li <li...@gmail.com> wrote:
> > On 10/8/07, Jimmy,Jing Lv <fi...@gmail.com> wrote:
> > > Hi,
> > >
> > >    So shall we also rename them for clear and precise? :)
> >
> >   The tricky thing here is that the UnixPrincipal represents the
> > principal on the target server which provides unix interface. :)
> > (Besides, java doc also claims that they are UnixPrincipals).
> >
>
> What about NTDomainPrincipal, NTSidPrimaryGroupPrincipal and so on?
> Should we move them too?

   Seems RI also includes these classes in the distribution of linux release.
   But what puzzles me is that from the java doc, NTDomainPrincipal is
only referenced by NTLoginModule if I have not missed something and
the NTLoginModule itself is not included in the RI distribution on
linux.
   However, at least to be compatible with RI, I agree to move
NTDomainPrincipal to common directory as well.


> -Stepan.
>
> > >
> > > 2007/10/8, Leo Li <li...@gmail.com>:
> > > > Hi, all
> > > >      I found that JndiLoginModule will associate a UnixPrincipal,
> > > > UnixNumericUserPrincipal, and the relevant UnixNumericGroupPrincipals
> > > > with the subject if logging succeeds no matter whether it is a windows
> > > > client or unix client.
> > > >
> > > >     So I will move UnixPrincipal related classes from current Unix
> > > > specified directory to common directory if no one objects.
> > > >
> > > >
> > > > Good luck!
> > > > Leo
> > > >
> > > > --
> > > > Leo Li
> > > > China Software Development Lab, IBM
> > > >
> > >
> > >
> > > --
> > >
> > > Best Regards!
> > >
> > > Jimmy, Jing Lv
> > > China Software Development Lab, IBM
> > >
> >
> >
> > --
> > Leo Li
> > China Software Development Lab, IBM
>


-- 
Leo Li
China Software Development Lab, IBM

Re: [classlib][auth]To move org.apache.harmony.auth.UnixPrincipal related classes to common directory.

Posted by Stepan Mishura <st...@gmail.com>.
On 10/8/07, Leo Li <li...@gmail.com> wrote:
> On 10/8/07, Jimmy,Jing Lv <fi...@gmail.com> wrote:
> > Hi,
> >
> >    So shall we also rename them for clear and precise? :)
>
>   The tricky thing here is that the UnixPrincipal represents the
> principal on the target server which provides unix interface. :)
> (Besides, java doc also claims that they are UnixPrincipals).
>

What about NTDomainPrincipal, NTSidPrimaryGroupPrincipal and so on?
Should we move them too?

-Stepan.

> >
> > 2007/10/8, Leo Li <li...@gmail.com>:
> > > Hi, all
> > >      I found that JndiLoginModule will associate a UnixPrincipal,
> > > UnixNumericUserPrincipal, and the relevant UnixNumericGroupPrincipals
> > > with the subject if logging succeeds no matter whether it is a windows
> > > client or unix client.
> > >
> > >     So I will move UnixPrincipal related classes from current Unix
> > > specified directory to common directory if no one objects.
> > >
> > >
> > > Good luck!
> > > Leo
> > >
> > > --
> > > Leo Li
> > > China Software Development Lab, IBM
> > >
> >
> >
> > --
> >
> > Best Regards!
> >
> > Jimmy, Jing Lv
> > China Software Development Lab, IBM
> >
>
>
> --
> Leo Li
> China Software Development Lab, IBM

Re: [classlib][auth]To move org.apache.harmony.auth.UnixPrincipal related classes to common directory.

Posted by Leo Li <li...@gmail.com>.
On 10/8/07, Jimmy,Jing Lv <fi...@gmail.com> wrote:
> Hi,
>
>    So shall we also rename them for clear and precise? :)

   The tricky thing here is that the UnixPrincipal represents the
principal on the target server which provides unix interface. :)
(Besides, java doc also claims that they are UnixPrincipals).

>
> 2007/10/8, Leo Li <li...@gmail.com>:
> > Hi, all
> >      I found that JndiLoginModule will associate a UnixPrincipal,
> > UnixNumericUserPrincipal, and the relevant UnixNumericGroupPrincipals
> > with the subject if logging succeeds no matter whether it is a windows
> > client or unix client.
> >
> >     So I will move UnixPrincipal related classes from current Unix
> > specified directory to common directory if no one objects.
> >
> >
> > Good luck!
> > Leo
> >
> > --
> > Leo Li
> > China Software Development Lab, IBM
> >
>
>
> --
>
> Best Regards!
>
> Jimmy, Jing Lv
> China Software Development Lab, IBM
>


-- 
Leo Li
China Software Development Lab, IBM

Re: [classlib][auth]To move org.apache.harmony.auth.UnixPrincipal related classes to common directory.

Posted by "Jimmy,Jing Lv" <fi...@gmail.com>.
Hi,

    So shall we also rename them for clear and precise? :)

2007/10/8, Leo Li <li...@gmail.com>:
> Hi, all
>      I found that JndiLoginModule will associate a UnixPrincipal,
> UnixNumericUserPrincipal, and the relevant UnixNumericGroupPrincipals
> with the subject if logging succeeds no matter whether it is a windows
> client or unix client.
>
>     So I will move UnixPrincipal related classes from current Unix
> specified directory to common directory if no one objects.
>
>
> Good luck!
> Leo
>
> --
> Leo Li
> China Software Development Lab, IBM
>


-- 

Best Regards!

Jimmy, Jing Lv
China Software Development Lab, IBM