|
|
| go ahead... be a heretic | |
| PerlMonks |
Enumerate MS AD Group Membershipby c.m.hurley (Novice) |
| on Feb 23, 2007 at 19:30 UTC ( #601806=perlquestion: print w/replies, xml ) | Need Help?? |
|
c.m.hurley has asked for the wisdom of the Perl Monks concerning the following question: I use Perl on Microsoft Windows Server 2003 Perl version: This is perl, v5.8.8 built for MSWin32-x86-multi-thread Binary build 819 267479 provided by ActiveState http://www.ActiveState.com Built Aug 29 2006 12:42:41 I want Perl to automate tasks with Active Directory Users and Computers. I'm currently frustrated with errors coming from code samples in Perl from a code copied from Active Directory Cookbook by Robbie Allen. I've studied the Perl code and tried several modifications. I've tested the VB version and that works on our system correctly. If you want to review the VBS, the link is here. http://techtasks.com/code/viewbookcode/1585 Following is the code:
My own paranoia is not displaying the fully qualified domain name or uniform naming convention data for this user on our system The output of this code looks like this:
This user has three groups assigned to them. The group after the 'CN' in the output is one of them. I have Googled this error code. The results were not clear. I'm not sure whether I need to update a perl module, add a module or what? I really want to do this work in Perl. Once I can read what groups a user is a member of, I will have to work on changing the group memberships with scripts. Hopefully someone here will be able to refer me to a solution. Thanks.
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||