Last post Apr 07, 2005 05:38 PM by Imsoccrman
Mar 14, 2005 10:04 PM|Simon Leung|LINK
Dim ldapPathUser As String = "LDAP://test-server.nwtraders.com/CN=Users,DC=nwtraders,DC=COM" Dim deUser As New DirectoryServices.DirectoryEntry(ldapPathUser) Dim dsUser As New DirectoryServices.DirectorySearcher(deUser) Dim result As DirectoryServices.SearchResult
. . . dsUser.Filter = "(objectcategory=user)" For Each result In dsUser.FindAll ddlUsers.Items.Add(New ListItem(result.Properties("cn")(0))) Next result deUser.Dispose()
Mar 15, 2005 12:46 AM|Simon Leung|LINK
Mar 15, 2005 02:04 AMfirstname.lastname@example.org|LINK
Mar 29, 2005 04:19 PM|Imsoccrman|LINK
I generally place only REAL USERS in this "Organizational OU" and then place Service Accounts, etc... in a seperate OU. THIS allows you to specify a Base DN to start your search with which will prevent it from finding the other users.
Just an idea.
Place all of your "Real Users" in the "Company Root" OU and below (broken out by dept, etc...) then make your search base = CompanyRoot.
Apr 06, 2005 06:33 PMemail@example.com|LINK
An interesting idea, but it requires you to have specific knowledge about the target directory configuration.
Apr 06, 2005 07:00 PM|Imsoccrman|LINK
Yes, you are right... You do have to know a bit more about the environment. For an Intranet, you should know those things [:D]
Apr 07, 2005 04:47 PMfirstname.lastname@example.org|LINK
I’m not sure who said intranet, but even in that case there a couple of issues:
Apr 07, 2005 05:38 PM|Imsoccrman|LINK
You can handle multiple domains. You just have to spefify the base OU to search from on a per domain basis sometimes.
I know what you mean about "Different Configurations" The ones that you cannot get to segment thier users into logically distinct OU structures from thier service accounts, etc would be prime targets from some Infrastrucutre Consulting [:D]
I primarily am concerned with One organization at a time (but they may have multiple domains)