CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
ADSI compare usernames

 



PerlUserNL
New User

Jan 13, 2011, 4:02 AM

Post #1 of 1 (268 views)
ADSI compare usernames Can't Post

Hi There,



I made the following script:

<code>



use strict;
use warnings;

use Win32::OLE;

my $ou;
my @filter;
my $obj;

$ou=Win32::OLE->GetObject("LDAP://ou=NID_Users,dc=A34,dc=NID");
@filter=("user");
$ou->{filter}=\@filter;


print "Hier Volgt een lijst van gebruikers:\n";

foreach $obj (in $ou){
print "$obj->{name}\n";
print " First name: " ;
print "$obj->{givenName}\n" ;
print "###############\n\n\n" ;

}



</code>

I need that the script find the users with the same givenName (first name).

Then i need that the users with the same first name, get de username from all users with the same front name in there General field in AD.

Is there someone wo can help me?



Kind Regards

PerlUserNL

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives