Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 1109 invoked from network); 9 Oct 2007 09:31:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Oct 2007 09:31:41 -0000 Received: (qmail 71497 invoked by uid 500); 9 Oct 2007 09:31:27 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 71477 invoked by uid 500); 9 Oct 2007 09:31:27 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 71468 invoked by uid 99); 9 Oct 2007 09:31:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Oct 2007 02:31:27 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of liyilei1979@gmail.com designates 64.233.182.190 as permitted sender) Received: from [64.233.182.190] (HELO nf-out-0910.google.com) (64.233.182.190) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Oct 2007 09:31:29 +0000 Received: by nf-out-0910.google.com with SMTP id k4so1402631nfd for ; Tue, 09 Oct 2007 02:31:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=YEzqh71L0QIGg8+80PhtOZZaBixxAeZK52c6sNGNpRU=; b=BTexkKdQfB+bfGz7lyr5zeOM7W7gkn0LtJN0nHCbBBNw0AOpDpPxnMVGYyqyczr5uccV0TIRxM3wExEX6XGfG2mVsAvqOU7hScoi019G+ClFcuRlSwF04R031Xpa54W/e5tjsaPMdqfjCumb3WKNFep/HQqPfKYSmsDr8WGYI1E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=EY6zGJA3Fky0nmELXqMzQ9j0ag+ZB5rJcfLeQOGkMz1G2B0IpJ6ReD6xUB/g1nOnpH9aVr99QJD+RedU1OcDeqHTSy+lrqUYMjY/+emsyVX6lckqg1/Trdr/SsVd0k0LQWvnd2IHTBVxlJlW+F9zv0HY2q8BKADxoHwd+baTNjk= Received: by 10.82.107.15 with SMTP id f15mr11265838buc.1191922267800; Tue, 09 Oct 2007 02:31:07 -0700 (PDT) Received: by 10.82.159.3 with HTTP; Tue, 9 Oct 2007 02:31:07 -0700 (PDT) Message-ID: Date: Tue, 9 Oct 2007 17:31:07 +0800 From: "Leo Li" To: dev@harmony.apache.org Subject: [classlib][auth]To get one file from Apache DS project. MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org 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