DirectoryServices

  • Thread starter Thread starter BlackGoddess
  • Start date Start date
B

BlackGoddess

Hi,

With the framework 1.1, I tried to read some informations about user
accounts in ActiveDirectory.
For some accounts, the property "memberOf" is available, and for some others
not ... I didn't see any difference (except names) between the accounts ...
I tried to create a new account (with the managment console), and the
property "memberOf" is not available...

I tried to read it with the MSDN's sample :

http://msdn.microsoft.com/library/d...ve_directory_authentication_from_asp__net.asp
GetGroups function

Thanks for help, and sorry for my bad english.
 
For some accounts, the property "memberOf" is available, and for some others
not ... I didn't see any difference (except names) between the accounts ...
I tried to create a new account (with the managment console), and the
property "memberOf" is not available...

Well, yes, sure - after you've created the user account, it's not
member of any group just yet ! That's why the attribute is not
available.

Once you add the user to a group, that group's DN (distinguished name)
will show up in the "memberOf" attribute's list of values!

Marc
================================================================
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch
 
I've just created a user account, I added it into a group, but the
"memberOf" attribute is always not avaible ...
Could it be a problem with a cache ?
 
Didn't catch the beginning of this thread, but I've got a quick program I
whipped up to display and print AD information, including group memberships.
If you think it would be helpful I can email you the code.

To answer your question - if you have more than one DC there can be a lag in
replication. You can force replication after making your change or make
sure you're getting your info from the same one on which you made the
change.
 
I have only one DC.
I'm interrested by your code : (e-mail address removed)
thanks :)
 
The problem is solved.
I was using a user account that had not enough privileges to access all
informations in the Active Directory.

Thanks for the help :)
 
Oh yeah, I encountered that too.

BTW, you know that the MemberOf is actually a collection, right?
 
Daniel,

I'd really like to see that code if you dont mind:

mi_crudgington AT totalise.co.uk

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top