in reply to Re: PERL en ADSI
in thread PERL en ADSI
I have made a step for step plan: First I want to get the overvieuw of the users. Then I want to compare the first names. Then I want to get the output of the users with the same name. Now i need to copy the usernames to the general field.
use Win32::OLE; $ou=Win32::OLE->GetObject("LDAP://ou=Users,dc=myDomain,dc=net"); @filter=("user"); $ou->{filter}=\@filter; foreach $obj (in $ou){ print "$obj->{name}\n"; }
Above code i want to use to get the user list. But i think i did something wrong, or maybe it can be done on a easier way.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: PERL en ADSI
by SuicideJunkie (Vicar) on Jan 11, 2011 at 14:07 UTC | |
by PerlUserNL (Initiate) on Jan 11, 2011 at 14:37 UTC | |
by Sinistral (Monsignor) on Jan 11, 2011 at 15:46 UTC | |
by Corion (Patriarch) on Jan 11, 2011 at 14:46 UTC |