Greetings,
I am trying to get all the members of a group in Active
Directory. Using ADSI, i can get a group object,
however i don't know how to retrieve a list of all the
members. I know that there is a function in the group
object called members,
HRESULT Members( IADsMembers** ppMembers);
my problem is how do i make a variable of type
IADsMembers in PERL. some sample VB code on how to do
this was on MSDN, here is what it looks like:
Dim grp As IADsGroup
Dim memberList As IADsMembers
Dim member As IADs
Set grp = GetObject("WinNT://Microsoft/Administrators")
Set memberList = grp.members
For Each member In memberList
Debug.Print member.Name & "(" & member.Class & ")"
Next
I checked to see if there are any types in the PERL
docs, but i couldn't find any.
If anyone has done this before or could help me figure
it out, it would be greatly appriciated.
TIA,
Lucas krause
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.