harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leo Li" <liyilei1...@gmail.com>
Subject [classlib][auth]To get one file from Apache DS project.
Date Tue, 09 Oct 2007 09:31:07 GMT
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

Mime
View raw message