Hi,
I try to change some properties of an AD user object. So far so good, I can
change all properties except the {CN} property. I guess I can't change it
because it's also the reference to my object, but there has to be a way to
change this. Does anybody know how?
Here the script I use:
=====
use Win32;
use Win32::OLE;
use strict;
my $ADsPath = "LDAP://<servername>/CN=<username>, OU=<department>,
DC=<2.level domain>, DC=<domain>, DC=net";
my $Obj = Win32::OLE->GetObject($ADsPath) || die "Error: Can't
GetObject\n".Win32::OLE->LastError()."\n";
if ($Obj) {
$Obj->{description} = "This is the user description"; #This works
$Obj->{telephoneNumber} = "+1 (123) 321 4321"; #This works too
$Obj->{cn}="First Last";
#THIS DOESN'T WORK
$Obj->SetInfo();
}
=====
Thx, Andreas.
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs