473,385 Members | 1,615 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Looking for DirectoryServices.Properties options

Hi all,

I have a directory entry object the specifies "members" in its
properties collection to retrieve:

groupEntry.Properties("member")

Instead of just using "member" to return members I am trying to find a
list of all possible values that Properties takes. Can't seem to
locate it in MSDN or Google.

???

Nov 16 '05 #1
3 2332
thats a very good question, I was playing with DirectoryServices at the
beginning of the week and this could have come in very useful for me. I
was searching for "homedirectory" I eventually found a google thread
that told me the exact property to ask for, but it would have been
much more helpful if I had a full listing of the properties. Let me
know if you find this list and I will do likewise.

Thanks

Nov 16 '05 #2
Following lists all existing properties for the builtin administrators
group, and a list of all members in the "member" collection.
using(DirectoryEntry domain = new
DirectoryEntry("LDAP://domainName/CN=administrators,cn=builtin,DC=....,DC=....,DC=.. ..",
"domain\\user", "pwd"))
{
foreach(string s in domain.Properties.PropertyNames)
{
Console.WriteLine(s + "\t\t" + domain.Properties[s].Value);
if (s == "member")
{
foreach(string ss in domain.Properties[s].Value as object[])
{
Console.WriteLine("-- {0}", ss);
}
}
}
}

Following sample lists all current properties of the local administrator.

using(DirectoryEntry domain = new
DirectoryEntry("WinNT://acer1/administrator,user"))
{
foreach(string s in domain.Properties.PropertyNames)
{
Console.WriteLine(s + "\t\t" + domain.Properties[s].Value);
}
}

Willy.

<ag*******@hotmail.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
Hi all,

I have a directory entry object the specifies "members" in its
properties collection to retrieve:

groupEntry.Properties("member")

Instead of just using "member" to return members I am trying to find a
list of all possible values that Properties takes. Can't seem to
locate it in MSDN or Google.

???

Nov 16 '05 #3
Thank you Willy. That did it.

Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: David Moore | last post by:
Hello I posted a thread about this a while back, but I can't actually find it again so I can reply to it with the solution I found, so I'm making a new thread and hoping it goes to the top of...
0
by: Ken | last post by:
Hi, We have a component that we've used successfully under W2000 to create virtual directories on an IIS 5.0 web server. We're in the process of upgrading to W2003 and I'm now encountering an...
0
by: kovac | last post by:
The System.directoryservices.dll has an error, and this error was described in http://support.microsoft.com/default.aspx?scid=kb;en-us;839424 At the moment we have Framework version v1.0.3705 and...
1
by: Stephanie Stowe | last post by:
Hi. I am trying to read information out of the IIS metabase (v5.1). Observe the following code: using System; using System.DirectoryServices; using System.Reflection; namespace ADSI1 {...
5
by: Keith Jakobs, MCP | last post by:
Hi All.... I'm having a HECK of a time connecting to Active Directory using VB in Visual Studio.NET 2003. Can anyone PLEASE help me? All I am trying to do is list the current members of our...
0
by: Michael Bray | last post by:
I'm trying to write a custom installer for a web site project of mine because the silly default WebInstaller projects don't know how to install to anything other than the default web site... (if...
0
by: RSH | last post by:
I am using System.DirectoryServices to query our AD in order to get information about users. I am having problems understanding how to get at the Username and the Email address (to begin with) ...
6
by: bugnthecode | last post by:
Hi, I'm building a small desktop app in VS Std 2005 with C# and .net 2.0. I've managed to get the code together to query the ldap my company has, but every time I attempt to access a specific...
5
by: Peter Bradley | last post by:
I'm trying to use System.DirectoryServices to update Active Directory from a Web Service. When I try to commit the changes, I get the following error message: "A constraint violation occurred....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.