Wrox Home  
Search P2P Archive for: Go

  Return to Index  

proasp_howto thread: ASP 3.0 Programmer's Reference


Message #1 by "Phil Perks" <philp@w...> on Fri, 25 Aug 2000 13:45:47 +0100
-----Original Message-----

From: legalh@b... [mailto:legalh@b...]

Sent: 22 August 2000 16:54

To: support@w...

Subject: ASP 3.0 Programmer's Reference 3-23-4



Hi

We're building an intranet for a corporation and one of the functions the

system needs to perform is a query to an Exchange Server 5.5 using LDAP,ADSI

2.5 and Active Server Pages.

We're having problems accessing the values of some of the attributes. On

page 832/33 of the above book there is sample ASP code which the authors

claim will perform this very function. However, we know that there are 60

attributes for this directory entry and the code in the book only returns a

subset of these.

The code I used to find out how many attributes there are follows:

<%

Dim EIN

Dim MyADsPropList

Dim MyADsObj


On Error Resume Next


Set MyADsObj = GetObject("LDAP:")

Set MyADsPropList = MyADsObj.OpenDSObject("LDAP://100.100.100.00/cn=John

Smith, ou=People, ou=ab plc, o=ab

Group, c=GB", "cn=abdsa, o=ab group, c=gb", "abdsa", 0)


'Get the properties into the cache

MyADsPropList.GetInfo


'Get the Number of Properties in the list

propcount = MyADsPropList.PropertyCount


Response.Write "Property count = " & propcount & "<BR>"

EIN = MyADsPropList.Get("abEIN")

Response.Write EIN


Set MyADsObj = Nothing

Set MyADsPropList = Nothing

%>

I know that the attribute "abEIN" exists because I have previously outputted

the attribute names. However, when I run the code in the book this attribute

does not show, why?

I noticed that the attribute "objectClass" contains 4 values. I don't know

why this is but maybe I'm only seeing the attributes for 1 or some of these

object classes, does this mean anything to you?

I would appreciate an early answer since this has become very urgent now.

Thanks in advance.

Regards

Stuart (legalh@b...)




  Return to Index