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/09 11:31:07 UTC

[classlib][auth]To get one file from Apache DS project.

Hi, all:
     During implementing JndiLoginModule, I found we need a widget to
generated crypted unix password[1].
     And there is a implementation for this encrypt algorithm in
apache DS project[2]and it can save us reinventing wheels.  I intend
to include it as part of Harmony's code base and I recommend it be
treated as an external link since the algorithm seems requiring no
further maintain.
    One concern is that the file itself is not implemented by apache
DS project and it has its own license although it has also been under
APL. But I think it is OK for us. Any suggestion?

      Here is the license announcement:
/*
*  Licensed to the Apache Software Foundation (ASF) under one
*  or more contributor license agreements.  See the NOTICE file
*  distributed with this work for additional information
*  regarding copyright ownership.  The ASF licenses this file
*  to you under the Apache License, Version 2.0 (the
*  "License"); you may not use this file except in compliance
*  with the License.  You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing,
*  software distributed under the License is distributed on an
*  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
*  KIND, either express or implied.  See the License for the
*  specific language governing permissions and limitations
*  under the License.
*
*/

/*
* @(#)UnixCrypt.java 0.9 96/11/25
*
* Copyright (c) 1996 Aki Yoshida. All rights reserved.
*
* Permission to use, copy, modify and distribute this software
* for non-commercial or commercial purposes and without fee is
* hereby granted provided that this copyright notice appears in
* all copies.
*/





[1]
javadoc says:
     "...The format in which the user's information must be stored in
the directory service is specified in RFC 2307. ...
      This LoginModule assumes that the password is stored as a byte
array, which when converted to a String, has the following format:

        "{crypt}encrypted_password"
   "
   And "crypt" denotes that the password is encrypted by the schema of
crypt() unix call.


[2]http://svn.apache.org/repos/asf/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/UnixCrypt.java


-- 
Leo Li
China Software Development Lab, IBM

Re: [classlib][auth]To get one file from Apache DS project.

Posted by Mark Hindess <ma...@googlemail.com>.
On 9 October 2007 at 17:31, "Leo Li" <li...@gmail.com> wrote:
> Hi, all:
>      During implementing JndiLoginModule, I found we need a widget to
> generated crypted unix password[1].
>      And there is a implementation for this encrypt algorithm in
> apache DS project[2]and it can save us reinventing wheels.  I intend
> to include it as part of Harmony's code base and I recommend it be
> treated as an external link since the algorithm seems requiring no
> further maintain.
>     One concern is that the file itself is not implemented by apache
> DS project and it has its own license although it has also been under
> APL. But I think it is OK for us. Any suggestion?
> 
>       Here is the license announcement:
> /*
> *  Licensed to the Apache Software Foundation (ASF) under one
> *  or more contributor license agreements.  See the NOTICE file
> *  distributed with this work for additional information
> *  regarding copyright ownership.  The ASF licenses this file
> *  to you under the Apache License, Version 2.0 (the
> *  "License"); you may not use this file except in compliance
> *  with the License.  You may obtain a copy of the License at
> *
> *    http://www.apache.org/licenses/LICENSE-2.0
> *
> *  Unless required by applicable law or agreed to in writing,
> *  software distributed under the License is distributed on an
> *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
> *  KIND, either express or implied.  See the License for the
> *  specific language governing permissions and limitations
> *  under the License.
> *
> */
> 
> /*
> * @(#)UnixCrypt.java 0.9 96/11/25
> *
> * Copyright (c) 1996 Aki Yoshida. All rights reserved.

Leo, IANAL, but if the original author can reserves all rights then we
can just take it since this seems in conflict to the Apache License.  I
would have expected copyright (and associated rights) to be transferred
to Apache when the code is incorporated into an Apache project?

-Mark

> * Permission to use, copy, modify and distribute this software
> * for non-commercial or commercial purposes and without fee is
> * hereby granted provided that this copyright notice appears in
> * all copies.
> */
> 
> [1]
> javadoc says:
>      "...The format in which the user's information must be stored in
> the directory service is specified in RFC 2307. ...
>       This LoginModule assumes that the password is stored as a byte
> array, which when converted to a String, has the following format:
> 
>         "{crypt}encrypted_password"
>    "
>    And "crypt" denotes that the password is encrypted by the schema of
> crypt() unix call.
> 
> 
> [2]http://svn.apache.org/repos/asf/directory/shared/trunk/ldap/src/main/java/
> org/apache/directory/shared/ldap/util/UnixCrypt.java
> 
> 
> -- 
> Leo Li
> China Software Development Lab, IBM
>