Sep 15th, 2006, 12:44 PM
Adding X509 or other Binary Data
Trying to add a binary (DER encoded) X509 to an LDAP store. We are doing:
Throwing an exception:
org.springframework.ldap.UncategorizedLdapExceptio n: Operation failed; nested exception is javax.naming.directory.InvalidAttributeIdentifierE xception: [LDAP: error code 17 - userCertificate: requires ;binary transfer]; remaining name 'cn=dbreese,dc=my-domain,dc=com'
LDAP schema for userCertificate is from core.schema:
attributetype ( 126.96.36.199 NAME 'userCertificate'
DESC 'RFC2256: X.509 user certificate, use ;binary'
SYNTAX 188.8.131.52.4.1.14184.108.40.206.8 )
It appears that perhaps we must somehow transfer the X509 in binary mode, but can't find much information on how to do that.
I'd imagine same issues would be for sending any binary attributes such as JPEG, etc.
Any ideas on how to force transfer in binary mode for a particular attribute?