Re: Question about fetching attributes

2015-09-18 Thread Jim Willeke
With Microsoft Active Directory it is even more complex. Microsoft Active
Directory has the concept of Statically Linked Auxiliary Classes
 along
with the combination of ObjectClasses.

There is a write up on Microsoft Active Directory Determine the Classes
Associated With an Entry

.

--
-jim
Jim Willeke

On Fri, Sep 18, 2015 at 6:39 AM, Kiran Ayyagari 
wrote:

>
>
> On Fri, Sep 18, 2015 at 7:47 PM, Syed Mudassir <
> syed.mudas...@gaianconsultants.com> wrote:
>
>> Hi Everybody,
>>   I am able to connect to Windows Active Directory.  I am able to lookup
>> an object and get the attributes.  However, this is the problem I am facing.
>>   Suppose an entry has 'm' attributes out of which 'n' attributes are
>> assigned values.  The remaining attributes are simply unassigned.
>>   When I do search or lookup operation, I am getting only 'n' attributes
>> listed.  I need the reamining (m-n) attributes as well.
>>
> you will only get the attributes that have values
>
>>   Anyone can help how to do that?
>> --
>>
>
>
>
> --
> Kiran Ayyagari
> http://keydap.com
>


Question about fetching attributes

2015-09-18 Thread Syed Mudassir

Hi Everybody,
  I am able to connect to Windows Active Directory.  I am able to 
lookup an object and get the attributes.  However, this is the problem I 
am facing.
  Suppose an entry has 'm' attributes out of which 'n' attributes are 
assigned values.  The remaining attributes are simply unassigned.
  When I do search or lookup operation, I am getting only 'n' 
attributes listed.  I need the reamining (m-n) attributes as well.

  Anyone can help how to do that?
--


Re: Question about fetching attributes

2015-09-18 Thread Kiran Ayyagari
On Fri, Sep 18, 2015 at 7:47 PM, Syed Mudassir <
syed.mudas...@gaianconsultants.com> wrote:

> Hi Everybody,
>   I am able to connect to Windows Active Directory.  I am able to lookup
> an object and get the attributes.  However, this is the problem I am facing.
>   Suppose an entry has 'm' attributes out of which 'n' attributes are
> assigned values.  The remaining attributes are simply unassigned.
>   When I do search or lookup operation, I am getting only 'n' attributes
> listed.  I need the reamining (m-n) attributes as well.
>
you will only get the attributes that have values

>   Anyone can help how to do that?
> --
>



-- 
Kiran Ayyagari
http://keydap.com


Re: Question about fetching attributes

2015-09-18 Thread Emmanuel Lécharny
Le 18/09/15 13:47, Syed Mudassir a écrit :
> Hi Everybody,
>I am able to connect to Windows Active Directory.  I am able to lookup an 
> object and get the attributes.  However, this is the problem I am facing.
>Suppose an entry has 'm' attributes out of which 'n' attributes are 
> assigned 
> values.  The remaining attributes are simply unassigned.
>When I do search or lookup operation, I am getting only 'n' attributes 
> listed.  I need the reamining (m-n) attributes as well.
>Anyone can help how to do that?

The list of attributes that an entry can contain is available in the
combinaison of ObjectClasses this entry is subject to. Two things though :
- ObjectClasses can inherit from some other ObjectClasses, and those
parent ObjectClasses may not be present in teh Entry. You will have to
know about them on the client side
- if one of the ObjectClass is extensibleObject, then the entry may
contain *any* attribute, even some that the server does not support.

In any case, your client application must have some knowledge about your
LDAP server schema.

Otherwise, any reason you need to know which are the missing attributes ?