Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: Fri, 3 Feb 2006 20:54:32 +0530,    group: microsoft.public.platformsdk.active.directory        back       


Fetching the multivalue attribute in JScript   
Hi All,

I'm trying to bind to an user and fetch a multivalue attribute, here i'm 
fecthing memberof, (there are values in that attribute)
I'm using JScript.

When we fetch memberOf it returns array.
But the below code says "Object is not a collection"

Any help much appreciated

var objUser = 
GetObject("LDAP://testrenu.com/CN=TestScott,CN=Users,DC=testrenu,DC=com")
testarr = objUser.GetEx("memberOf");
var e = new Enumerator(testarr);
for(e; !e.atEnd(); e.moveNext())
{
 svalue = e.item();
 WScript.Echo(svalue);
}
date: Fri, 3 Feb 2006 20:54:32 +0530   author:   RenuJp

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us