I'm not sure this is as much a perl question as it is an Active Directory question, but I cannot find any documentation or examples in perl to deal with this.
I have a script that adds users to a Microsoft Active Directory, and places the users in an OU. I open the active directory with the following line:
my $path = "LDAP://OU=Public Workstations,DC=domain1,DC=domain2,DC=dom
+ain3";
my $ADS = Win32::OLE->GetObject($path)
My problem is, this adds the user to the standard "Domain Users" group. I need to add them to the "Domain Guests" group instead.
I've found some visual basic scripts that go about opening a second object for the group that the user needs to be in, but I can not find the perl documentation for the object calls they are performing.
Also, the solution needs to only use base perl modules.
Thanks.
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.