Logo 
Search:

Asp.net Forum

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds

active directory help is needed

  Asked By: Leona    Date: Feb 04    Category: Asp.net    Views: 867
  

I can not get list "organization units" from active directory root.
the properties is coming null,

Share: 

 

4 Answers Found

 
Answer #1    Answered By: Cay Nguyen     Answered On: Feb 04

What code are you using can you please post it.

 
Answer #2    Answered By: Corbin Jones     Answered On: Feb 04

I'm using this code. I just want to navigate AD from vb.net. I dont
want to search any criteria. Just watch ou's and the users of the
ou's. This is such an easy thing, but I can't manage! I'm giong
crazy:)


objConnection.Provider = "ADsDSOObject"
objConnection.Open("Active Directory Provider")
objCommand.ActiveConnection = objConnection
cmdText = "<LDAP://xxx.net>;(objectClass=*);" & _
"ADsPath, objectclass;subTree"
objCommand.CommandText = cmdText
objRecordSet = objCommand.Execute
objRecordSet.MoveFirst()
Do Until objRecordSet.EOF
TextBox1.Text += objRecordSet.Fields(0).Value() & vbCrLf
objRecordSet.MoveNext()
Loop

 
Answer #3    Answered By: Taylor Evans     Answered On: Feb 04

a. why don't you opt for using System.DirectoryServices (.net Com wrapper
for ADSI)

b. have you got anonymous set to off on you virtual directory

c. Add the following line in your web.config :

<!-- Enabling Impersonation-->

<identity impersonate="true" />



d. the user trying to access the information needs to have DOMAIN
permissions on that active  directory object (in this case the OU's)

 
Answer #4    Answered By: Benjamin Simpson     Answered On: Feb 04

. I'm trying different ways, I tried it before but I couldn't
manage
ans b. ananymous is set to on on my virt.dir.

ans d. I can view all objects from "my network places" so I think
there s no permission problem ( but I'm not sure)

finally, could you have a simple code to list  org.unit on "xxx.com"
domain? (using directory  services)

 
Didn't find what you were looking for? Find more on active directory help is needed Or get search suggestion and latest updates.




Tagged: