Return-Path: Delivered-To: apmail-directory-users-archive@www.apache.org Received: (qmail 49439 invoked from network); 11 Mar 2010 22:46:17 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 11 Mar 2010 22:46:17 -0000 Received: (qmail 25920 invoked by uid 500); 11 Mar 2010 22:45:43 -0000 Delivered-To: apmail-directory-users-archive@directory.apache.org Received: (qmail 25850 invoked by uid 500); 11 Mar 2010 22:45:43 -0000 Mailing-List: contact users-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@directory.apache.org Delivered-To: mailing list users@directory.apache.org Received: (qmail 25842 invoked by uid 99); 11 Mar 2010 22:45:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Mar 2010 22:45:43 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of elecharny@gmail.com designates 209.85.218.217 as permitted sender) Received: from [209.85.218.217] (HELO mail-bw0-f217.google.com) (209.85.218.217) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Mar 2010 22:45:35 +0000 Received: by bwz9 with SMTP id 9so631207bwz.25 for ; Thu, 11 Mar 2010 14:45:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=ShSzU3aFC7XqP2k0swGk8AGunrwzcAJ/QD8uMr98jS8=; b=pZ0emsrMEgQC2iSuTr0bOnDQySe0dU41mJoBxuJbS7GuNwazhpqoQ96mtoHs4vxGQ9 SUKM613dPj5YBkuE6YAfy9DBKhWPsakQQ5LSG1lT5m9F7aCmBiSNgP2OQ/R/FVHPadxI pcAVv/lmqHY/c+D05XAN6d0uneFaVDRmXDPC0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; b=PLN0ttEaThFBtfhQqARKDHSb2M+1gDQ0XMQ6mfzluAyHMKAJMcy8sDl6XcRiOH0l8W raC1lfK3vKQDXxGUUvu8RsJ1sfFQNdMhcgNNki+uzQz4doCy33igdgh5BpQEvSvPNsXp hdTx/dOI0fGlz0S0hyHaNq6LhwU2slv+9sVbI= Received: by 10.204.38.82 with SMTP id a18mr239544bke.155.1268347511197; Thu, 11 Mar 2010 14:45:11 -0800 (PST) Received: from emmanuel-lecharnys-MacBook-Pro.local (vol75-3-82-66-216-176.fbx.proxad.net [82.66.216.176]) by mx.google.com with ESMTPS id l1sm1959101bkl.14.2010.03.11.14.45.09 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 11 Mar 2010 14:45:09 -0800 (PST) Message-ID: <4B997274.8040009@gmail.com> Date: Thu, 11 Mar 2010 23:45:08 +0100 From: Emmanuel Lecharny Reply-To: elecharny@apache.org User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 MIME-Version: 1.0 To: users@directory.apache.org Subject: Re: first small ldap java design References: <4B957B3B.8040305@gmail.com> <790350B079ED634F9A4FDB52E267E2E6073F1A19@XMBIL103.northgrum.com> <790350B079ED634F9A4FDB52E267E2E6073F1A1C@XMBIL103.northgrum.com> In-Reply-To: <790350B079ED634F9A4FDB52E267E2E6073F1A1C@XMBIL103.northgrum.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org On 3/11/10 7:23 PM, Cook, Lee (IS) (Contr) wrote: > a simpler question. > if i authenticate by getting an InitialDirContext with a user as principal, > how can i use the context to pull this users attributes? > Context.getAttributes() expects a Name, confused... > You should have a look at http://java.sun.com/products/jndi/tutorial/trailmap.html.-- Regards, Cordialement, Emmanuel L�charny www.nextury.com