Using Win32::OLE to create an ADO object and then query Active Directory
using an LDAP query the last field returned contains the additional text
of ";Subtree;" in the fields name.
My query string:
"<LDAP://OU=Business_Functions,OU=Global
Groups,DC=xxx,DC=com>;(objectCategory=group);distinguishedName, cn,
sAMAccountName; subtree;";
Once the data is returned, the enumeration of the field names using the
code below shows:
distinguishedName
cn
sAMAccountName; subtree;
my @Fields = $resObj->Fields;
foreach my $field (in @Fields){
print $field->{Name} ."\n";
}
Howard A. Bullock
Tyco Electronics
Computer Security
717-810-3584
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs