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.
 
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
 
Back
Top