jds has asked for the wisdom of the Perl Monks concerning the following question:
#!win32-perl use strict; $|++; use Win32::OLE; # Change Dial-In Status for a user # 20030308 - JDS # Version: 0.2b # The DC for the LDAP string my $ldapdc = "DC=domain,DC=org"; # OU of the user(s) you want to change my $ou = "IT"; # User name you want to change my $user = "JShearer"; # The Dial-In Status - either True or False depending on whether you w +ant to Allow or Deny my $status = 'TRUE'; my $oContainer = Win32::OLE->GetObject("LDAP://CN=$user,OU=$ou,$ldapdc +"); print Win32::OLE->LastError(); $oContainer->{msNPAllowDialin} = $status; $oContainer->SetInfo();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Dial-In (RAS) Settings and Boolean Values
by jkahn (Friar) on May 06, 2003 at 18:16 UTC | |
by jds (Acolyte) on May 06, 2003 at 19:45 UTC |