Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 97162 invoked from network); 12 Oct 2007 07:31:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Oct 2007 07:31:33 -0000 Received: (qmail 17161 invoked by uid 500); 12 Oct 2007 07:31:20 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 16922 invoked by uid 500); 12 Oct 2007 07:31:19 -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 16913 invoked by uid 99); 12 Oct 2007 07:31:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Oct 2007 00:31:19 -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 t.p.ellison@gmail.com designates 66.249.92.170 as permitted sender) Received: from [66.249.92.170] (HELO ug-out-1314.google.com) (66.249.92.170) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Oct 2007 07:31:22 +0000 Received: by ug-out-1314.google.com with SMTP id u40so586190ugc for ; Fri, 12 Oct 2007 00:31:00 -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:user-agent:mime-version:to:subject:references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding; bh=NR4b2PNHTs8Hg4cEDPAq8Q9PUuS50PzcjDw8n79oXZs=; b=jGr9JBdMYz+dKPpF10Zo3ARubtu1LjOueZjf6oFflqwbe5KAkm2lYqz4A32KmHWGSUGJHGnNEPa5HcRRb/QJm9WmXF/Jfl7fPRG8MSllt7RJ6SxEUG1DDLYSJPovSe+e3L6piajF/YMTwncE+XCYprO31z/v4vFNojmixZXdHw8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding; b=a9X2Pj+nAJIlDllBhD8OTEKsOCovsS5pGX3l/jefiiGWiQWbbixHbBEZzFomoEfqMxbzEpr9WJ+6+wVZyv4Y05bg2Fh353zQeHft+zpfbPQGUFc0nK8X/UfsHAJi0FoXYrAZlkMjmgM5f1tbMy3OAoTvS2TC6JmWT/JqyPWhOHA= Received: by 10.66.249.8 with SMTP id w8mr4051802ugh.1192174260380; Fri, 12 Oct 2007 00:31:00 -0700 (PDT) Received: from ?192.168.0.2? ( [86.111.176.100]) by mx.google.com with ESMTPS id m4sm292597ugc.2007.10.12.00.30.57 (version=SSLv3 cipher=RC4-MD5); Fri, 12 Oct 2007 00:30:58 -0700 (PDT) Message-ID: <470F22AE.6040600@gmail.com> Date: Fri, 12 Oct 2007 08:30:54 +0100 From: Tim Ellison User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: dev@harmony.apache.org Subject: Re: [classlib][jndi] Bind operation has now been added to ldap service provider References: <473c46620710110318s7c01abb3vb71cad82ca80e39@mail.gmail.com> <473c46620710111909r24e9912eq730f9b4d4988b0bc@mail.gmail.com> In-Reply-To: <473c46620710111909r24e9912eq730f9b4d4988b0bc@mail.gmail.com> X-Enigmail-Version: 0.95.3 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Spark Shen wrote: > I am feeling upset that my patch draws no one's interest. :-( > Would any committer take a look at my contribution? It's for ldap bind > operation, which is used to say hello to ldap server. Sorry to hear that, but I don't think you have great cause to be upset Spark, your patch was applied within 24hrs of you uploading it! There are many more waiting in JIRA much longer than that. You did the right think to raise it on the dev list, but please be realistic about the timescales we can work to over e-mail. Regards, Tim > 2007/10/11, Spark Shen : >> Hi all >> >> I have implemented Ldap bind operation, and file it at >> http://issues.apache.org/jira/browse/HARMONY-4928. >> It now targets at version 3 ldap protocol, and only supports simple(clear >> text) authentication. >> >> The implementation for add operation is added through >> http://issues.apache.org/jira/browse/HARMONY-4910. >> Currently, the decode function for add operation is not yet implemented. >> >> I will add more features for ldap service provider in the future. >> >> Any one who is interested can verify this functionality using the >> following code: >> >> import java.io.IOException; >> import java.net.UnknownHostException; >> >> import javax.net.SocketFactory; >> >> import org.apache.harmony.jndi.provider.ldap.BindOp; >> import org.apache.harmony.jndi.provider.ldap.LdapClient; >> import org.apache.harmony.jndi.provider.ldap.LdapMessage; >> import org.apache.harmony.jndi.provider.ldap.LdapResult; >> >> /** >> * This class demonstrate how to connect to and send BindRequest to Ldap >> server. >> */ >> public class Sample { >> @SuppressWarnings("unused") >> public static void main(String[] args) throws UnknownHostException, >> IOException { >> // anonymous binds >> BindOp bind = new BindOp("cn=Coder,dc=InitialDN", "secret"); >> >> // Initialize to your ldap server address >> LdapClient client = new LdapClient(SocketFactory.getDefault(), >> >> , 389); >> >> LdapMessage response = client.doOperation(bind, null); >> >> System.out.println(response.getMessageId()); >> LdapResult re = bind.getResult(); >> System.out.println(re.getErrorMessage()); >> System.out.println(re.getMachedDN()); >> System.out.println(re.getResultCode()); >> System.out.println(re.getReferrals()); >> } >> } >> >> -- >> Spark Shen >> China Software Development Lab, IBM > > > >