Subject: adding an LdapEntry with VLV control
Author: pethams
Posted on: 05/30/2011 02:53:36 PM
does any one have a sample...
I need to add and ldapentry, but with VLV control being updated.
Here are the APIs i am looking at..
LDAPConnection.add(LDAPEntry entry, LDAPConstraints cons)
So i need LDAPConstraints...
LDAPConstraints.setServerControls(LDAPControl)
So i need LDAPControl
LDAPControl(java.lang.String id, boolean critical, byte[] vals)
I know the OID 2.16.840.1.113730.3.4.9
boolean TRUE
but i have no idea on how to create byte[] vals....
References: