in reply to ADSI -> how to recognize binary attribute values

What makes it a binary value or how does ADSI tell you to deal with it?
  • Comment on Re: ADSI -> how to recognize binary attribute values

Replies are listed 'Best First'.
Re^2: ADSI -> how to recognize binary attribute values
by strat (Canon) on Dec 02, 2004 at 15:33 UTC

    Thank you for your reply.

    The objectGUID of an Active Directory user (as well as some other attributes like userCert(ificate), password, ...) is defined in the Schema as Octett which may contain non printable chars (e.g. A+§R9Ð?@½!í+Å?ÐR).

    If I look it up in the schema with ADSI, I don't know yet on how to read the format of an attribute. With the following code I can access the schema, but only know the properties of mandatory and optional attributes.

    # $adsPath is the path to a user object my $object = Win32::OLE->GetObject($adsPath) or die "..."; my $schemaObj = Win32::OLE->GetObject($object->{Schema}) or die "..."; my @mandatoryAttributes = $schemaObj->{MandatoryProperties}; my @optionalAttributes = $schemaObj->{OptionalProperties};

    If I could get the format for an attribute, I could as well find out if it is binary or not

    Best regards,
    perl -e "s>>*F>e=>y)\*martinF)stronat)=>print,print v8.8.8.32.11.32"