Hi folks,
i would like to write a library that implements ldap client connection to the server, as usual, the default routines:
connect bind search unbind etc ...
I wonder if there is a documentation showing how data is encoded with asn.1 ber encoding.
Thanks a lot.
Friedrich Locke wrote:
Hi folks,
i would like to write a library that implements ldap client connection to the server, as usual, the default routines:
For simple ops this isn't a big task, but when you add referrals to the mix it gets a bit messier.
Here's some design points to keep in mind so you don't make the same mistakes as current libldap does.
http://scratchpad.wikia.com/wiki/LDAP_C_API
connect bind search unbind etc ...
I wonder if there is a documentation showing how data is encoded with asn.1 ber encoding.
Rules for BER are in X.690. You can download the latest spec for free from the ITU-T.
http://www.itu.int/rec/T-REC-X.690/en
On 04. nov. 2015 13:41, Friedrich Locke wrote:
(...) I wonder if there is a documentation showing how data is encoded with asn.1 ber encoding.
Look up "A Layman's Guide to a Subset of ASN.1, BER, and DER" for an intro to those. It's a bit sloppy, but OK for LDAP. The ASN.1 grammar or LDAPv3 is mostly in RFC 4511.
OpenLDAP's liblber (lber.h) takes care of encoding/decoding. See man -k lber, and man ber_printf and ber_scanf, among others.
openldap-technical@openldap.org