Current location: Hot Scripts Forums » Programming Languages » ASP » How Can I use GetInfoEx Method To read Properties From Active Directory


How Can I use GetInfoEx Method To read Properties From Active Directory

Reply
  #1 (permalink)  
Old 03-11-04, 04:47 AM
xolela xolela is offline
New Member
 
Join Date: Feb 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
How Can I use GetInfoEx Method To read Properties From Active Directory

HERE I’M TRYING TO READ INFO FROM AD.

But for some fields I’m having the following error.
The property cannot be found in the cache.

To solve that error I was advised explicitly retrieved those properties with GetInfoEx instead of GetInfo.

Then now I don’t know if this line of code is right because I’m experiencing the syntax error that says “Array” is a type and it cannot be used as an expression. Can u please help.

Call objUser.GetInfoEx(Array("streetAddress", “st”),0)


I’m working on DOT NET Framework.
Reply With Quote
  #2 (permalink)  
Old 03-30-04, 09:49 AM
Skoal Skoal is offline
New Member
 
Join Date: Mar 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Solution for Array Error

Quote:
Originally Posted by xolela
HERE I’M TRYING TO READ INFO FROM AD.

But for some fields I’m having the following error.
The property cannot be found in the cache.

To solve that error I was advised explicitly retrieved those properties with GetInfoEx instead of GetInfo.

Then now I don’t know if this line of code is right because I’m experiencing the syntax error that says “Array” is a type and it cannot be used as an expression. Can u please help.

Call objUser.GetInfoEx(Array("streetAddress", “st”),0)


I’m working on DOT NET Framework.
The line should read:

Call objUser.GetInfoEx Array("streetAddress", “st”),0

As for the Property Cache Error, I am having the same problem and am trying to figure it out as well, have you made any head way?
Reply With Quote
  #3 (permalink)  
Old 12-27-05, 11:06 PM
mikeg1973 mikeg1973 is offline
New Member
 
Join Date: Dec 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
For dotnet you need to do the following:
stcrommand = "member:0-999" ' usefull fo when over 1500 members...
dim arr as object = {"streetAddress","st", strcommand}
Call objUser.GetInfoEx(Arr,0)
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
OWA / Active Directory phillips_k Visual Basic 0 02-15-04 12:34 PM
Need Epinions-lite system in PHP & MYSQL wali001 Job Offers & Assistance 4 01-12-04 06:02 AM


All times are GMT -5. The time now is 04:16 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.