Return-Path: X-Original-To: apmail-directory-users-archive@www.apache.org Delivered-To: apmail-directory-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 86CF3172C5 for ; Thu, 24 Sep 2015 13:58:41 +0000 (UTC) Received: (qmail 40370 invoked by uid 500); 24 Sep 2015 13:58:41 -0000 Delivered-To: apmail-directory-users-archive@directory.apache.org Received: (qmail 40327 invoked by uid 500); 24 Sep 2015 13:58:41 -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 40309 invoked by uid 99); 24 Sep 2015 13:58:41 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Sep 2015 13:58:41 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 8F7C9181131 for ; Thu, 24 Sep 2015 13:58:40 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.101 X-Spam-Level: X-Spam-Status: No, score=-0.101 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_MSPIKE_H2=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id wrEDKY8vCoyS for ; Thu, 24 Sep 2015 13:58:32 +0000 (UTC) Received: from mail-pa0-f53.google.com (mail-pa0-f53.google.com [209.85.220.53]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 26F0D2308B for ; Thu, 24 Sep 2015 13:58:32 +0000 (UTC) Received: by pacgz1 with SMTP id gz1so7450986pac.3 for ; Thu, 24 Sep 2015 06:58:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=2wHb4RqIWtsm5GnYUylVPqzxneOkV/H+/aKCun6LX0U=; b=nb2IpXLdPreNM3IklY0H/PR6CAcpux5CAvCC6KFSIMwP8/HX5Uwhqt6GyILWZRiqb2 vV/Ni4DMtQphv2zxtzvkE1lA4sWQ5ttPR2su3bDPTg8QdzleGAjECr2DNB6tpWLxD55O 4UbNY0Q3HbSTLKzZCh20kIHGYNoVu5aJ48SK4v4vvnVD7s44tCFFSXCIEr5LBPPg1e2R 5RmtDLxxeWDnP9DQOtF7C2+V6N+a3UmYtYwbgrqy5bmbNEvJ5IyKm+jA6J8brZKuy8Mb 8ubSGCd3W81bUmpML1DsYHnaN25As2Brh+mOaMvyzIdOcJJAHBG4FTec5szwd8fekYYO hNwA== X-Received: by 10.66.139.201 with SMTP id ra9mr7351789pab.153.1443103111821; Thu, 24 Sep 2015 06:58:31 -0700 (PDT) Received: from [192.168.1.29] (AMontsouris-651-1-132-12.w90-46.abo.wanadoo.fr. [90.46.47.12]) by smtp.googlemail.com with ESMTPSA id bs3sm13845661pbd.89.2015.09.24.06.58.30 for (version=TLSv1/SSLv3 cipher=OTHER); Thu, 24 Sep 2015 06:58:30 -0700 (PDT) Subject: Re: Get all attributes To: users@directory.apache.org References: <5DFC4187-7300-4E04-94FF-871C16F391B1@icloud.com> <524A76C2-6EE5-415E-B944-16D31048B39E@icloud.com> <56005626.70905@gmail.com> <5603F2C3.7020700@gmail.com> <416BC3E6-C555-4CCD-AEA9-3DE71D9C723D@icloud.com> From: =?UTF-8?Q?Emmanuel_L=c3=a9charny?= Message-ID: <56040181.5020507@gmail.com> Date: Thu, 24 Sep 2015 15:58:25 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <416BC3E6-C555-4CCD-AEA9-3DE71D9C723D@icloud.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Le 24/09/15 15:19, Syed Mudassir Ahmed a écrit : > This solution applies to Windows active directory. For each value of objectClass (top, person, etc) there is an object in cn=schema,cn=configuration,dc=... . Each of these objects tells required and optional attributes. For the given entry, get all the values of its objectClass and query those objects for attributes. yes, but this is not the solution to the very question you asked. Here, what you are doing is that you fetch the schema, and then you deduce the optional AttributeTypes a specific entry can have by checking for its ObjectClasses. Your question was "When I do search or lookup operation, I am getting only 'n' attributes listed. I need the reamining (m-n) attributes as well." and the short answer is : you can't. It's a two step operation, actually... Now, yes, fecthing the schema is the way to go, and you have to store the information locally. The LDAP API can do that, so you won't need to specifically request for the information every tilme you fecth an entry. (although for AD, this is a bt more complex than just fetching teh schema, just because AD is not implementng LDAP the way it should ;-)