How do I view "?ASN?......" strings meaningfully?

Nils Andreas Thommesen (Nils.Thommesen@kvatro.no)
Fri, 2 Feb 1996 17:19:15 +0100

MIME-version: 1.0
Content-type: text/plain; charset="ISO-8859-1"
Content-transfer-encoding: 8bit

When reading the information stored about one entry using LDAP, I do something like this:

executing the search to find the entry: ldap_search( )
waiting for results with ldap_result( )
getting the first entry ldap_first_entry( )
looping through all attributes returned, using ldap_first_attribute and ldap_next_attribute
for each attribute, I read the values, using ldap_get_values

Almost all attributes are readable strings, but some are ASN.1 strings, which look like this
"{ASN}...Here.follows.lots.of.unreadable.text...".

How can I decode these?

I guess I must use some of the functions in the BER-library, but before I go to the trouble of
trying and failing, I ask for advice from this list.

Nils Andreas Thommesen -- Nils.Thommesen@kvatro.no
- - - - - - - - - - - - - - - - - - - - - -
Work: Kvatro-Notis, Pirsenteret, N-7005 Trondheim; +47 73 545 722
Home: E.B Schieldropsv. 9-24,7033 Trondheim,Norway; +47 73 8888 93
Fax : +47 73 545 750
WWW : http://www.kvatro.no/~nat http://www.kvatro.no/notis
- - - - - - - - - - - - - - - - - - - - - -
I'm left-handed, left-eyed, left-footed but not left behind!