Computing.Net > Forums > Programming > Perl Win32::AD::User

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Perl Win32::AD::User

Reply to Message Icon

Name: mongar
Date: November 1, 2006 at 11:37:00 Pacific
OS: win2003
CPU/Ram: 1
Product: h
Comment:

i am trying to run a script quering my Active Directory for which users in a specifc container or anywhere i have but i keep getting
error " Unrecognized character \x94 "

here is my script:

##################################
use Win32::AD::User;

$user = AdUser->new( ”LDAP://CN=user
name,OU=Groups,OU=Ops,OU=Organization,DC=winner,DC=cop” ) or die error $!;

$user->get_ou_member_list( "CN=" ) or die error $! ;

print $user;
#############################

i will appriciate any help
thanks in advanced.



Sponsored Link
Ads by Google

Response Number 1
Name: FishMonger
Date: November 1, 2006 at 15:54:03 Pacific
Reply:

I've never used that module and I've have very little experience with LDAP, but I see 2 problems. AdUser->new() takes 2 arguments, but you're only passing 1. You have a “bareword” in your die statement.

Should be:
die “error $!”;


0

Response Number 2
Name: FishMonger
Date: November 1, 2006 at 15:59:10 Pacific
Reply:

Also, you should add this to all of your scripts.

use strict;
use warnings;

# and use my when declaring your vars

my $user = AdUser->new(....


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Pivot Table + Macros cin just drives me crazy



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Perl Win32::AD::User

PERL 'Win32::Service' www.computing.net/answers/programming/perl-win32service-/14833.html

Windows 2003 (adding users via cmd) www.computing.net/answers/programming/windows-2003-adding-users-via-cmd/11748.html

Perl - Win32::MsgBox www.computing.net/answers/programming/perl-win32msgbox/8030.html