[Date Prev][Date Next] [Chronological] [Thread] [Top]

codding the controlValue in an LDIF control field



Title: codding the controlValue in an LDIF control field

Hi !

   I have a doubt trying to code an "assertion control" (according to RFC 4528) in the "control" field
of an LDIF file. The assertion to code is a simple "equalityMatch" filter (i.e. "attribute type = attribute value").

   This is the LDIF file I was preparing (to pass to an "ldapmodify" command)

#  LDIF file START (it contains all the updates for a single/atomic LDAPModify op.):
dn: <entry dn to update>
control: 1.3.6.1.1.12 true :<controlValue>
changetype: modify

...
   How do I code the "controlValue" (i.e. the equalityMatch filter describing the required assertion) in the
LDIF file? I thought it was the BER encoding, but after reading the formal syntax definition for the control
field in RFC 2849 (LDIF spec) it is not clear to me …

  Thanks in advance

BR / Antonio

Antonio Alonso Alarcón
CUDB System Engineer


Ericsson España, S.A.           Phone: +34 91339 3085
Via de los Poblados 13          Mobile: +34 609640579 (66215)
28033 Madrid, Spain                           Fax: +34 91339 1636
E-mail: Antonio.Alonso@ericsson.com