The error message breaks down like this:
OLE exception from "Provider":
Means that the error came from your provider (Active Directory in this case).
One or more errors occurred during processing of command
Is the error that was returned by Active Directory.
Win32::OLE(0.1702) error 0x80040e14
in METHOD/PROPERTYGET "Execute" at sdomain.pl line 11
Means that Active directory generated the error when Perl called "Execute" on line 11.
The command you're trying to execute on line 11 is
LDAP://dc=corp,dc=example,dc=edu;(&(objectclass=user)(objectcategory=P
+erson));name,mailNickname,extensionAttribute1;Subtree
The error message from Active Directory isn't very helpful in this case. You need to change
my $strBase = "LDAP://dc=corp,dc=example,dc=edu;";
to
my $strBase = "<LDAP://dc=corp,dc=example,dc=edu>;";
|