You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@syncope.apache.org by Daniel DeFreez <de...@sou.edu> on 2012/07/23 19:12:04 UTC

Synchronizing jpegPhoto

Hi,

One of the main goals we have for Syncope is to be able to synchronize
photographs from a database into LDAP. When defining schema in Syncope, it
does not seem like there is a suitable attribute type for jpegPhoto (part
of inetOrgPerson). I have tried using string, but that does not work
correctly. Is it possible to use Syncope to synchronize attributes holding
binary data, such as photographs?

In LDAPv3 there is a special OID for jpeg attribute types,
1.3.6.1.4.1.1466.115.121.1.28.
Microsoft uses attributeSyntax 2.5.5.10, which is just an octet sting. It
seems like supporting an octet string type in Syncope would be useful.
Daniel

Re: Synchronizing jpegPhoto

Posted by Daniel DeFreez <de...@sou.edu>.
>
> On Tue, Jul 24, 2012 at 3:58 AM, Francesco Chicchiriccò <
> ilgrosso@apache.org> wrote:

 On 23/07/2012 19:12, Daniel DeFreez wrote:
>
> Hi,
>
>  One of the main goals we have for Syncope is to be able to synchronize
> photographs from a database into LDAP. When defining schema in Syncope, it
> does not seem like there is a suitable attribute type for jpegPhoto (part
> of inetOrgPerson). I have tried using string, but that does not work
> correctly. Is it possible to use Syncope to synchronize attributes holding
> binary data, such as photographs?
>
>  In LDAPv3 there is a special OID for jpeg attribute types, 1.3.6.1.4.1.1466.115.121.1.28.
> Microsoft uses attributeSyntax 2.5.5.10, which is just an octet sting. It
> seems like supporting an octet string type in Syncope would be useful.
>
>
> Hi Daniel,
> as you've correctly found out, Syncope does not currently support binary
> attributes: as you can read from [1], in fact, only String, Enum, Boolean,
> Long, Double, Date types are supported.
>
> Anyway, this is a nice add-on for our roadmap [2], so I've just added such
> feature to next release.
>
> Implementing this support in an overlay of the current release
> (1.0.0-incubating) - e.g. only for YOUR project - would be quite a
> challenging task because it would involve modifications in almost any
> component and layer (including database schema).
>
> Hope this clarifies a bit.
> Regards.
>
> [1]
> https://cwiki.apache.org/confluence/display/SYNCOPE/Schema%2C+attributes+and+mapping#Schema%2Cattributesandmapping-Schema
> [2] https://cwiki.apache.org/confluence/display/SYNCOPE/Roadmap
>
> --
> Francesco Chicchiriccò
>
> ASF Member, Apache Cocoon PMC and Apache Syncope PPMC Memberhttp://people.apache.org/~ilgrosso/
>
>
Thank you Francesco. I am happy to see it on the roadmap.

Re: Synchronizing jpegPhoto

Posted by Francesco Chicchiriccò <il...@apache.org>.
On 23/07/2012 19:12, Daniel DeFreez wrote:
> Hi,
>
> One of the main goals we have for Syncope is to be able to synchronize
> photographs from a database into LDAP. When defining schema in
> Syncope, it does not seem like there is a suitable attribute type for
> jpegPhoto (part of inetOrgPerson). I have tried using string, but that
> does not work correctly. Is it possible to use Syncope to synchronize
> attributes holding binary data, such as photographs?
>
> In LDAPv3 there is a special OID for jpeg attribute
> types, 1.3.6.1.4.1.1466.115.121.1.28. Microsoft uses attributeSyntax
> 2.5.5.10, which is just an octet sting. It seems like supporting an
> octet string type in Syncope would be useful.

Hi Daniel,
as you've correctly found out, Syncope does not currently support binary
attributes: as you can read from [1], in fact, only String, Enum,
Boolean, Long, Double, Date types are supported.

Anyway, this is a nice add-on for our roadmap [2], so I've just added
such feature to next release.

Implementing this support in an overlay of the current release
(1.0.0-incubating) - e.g. only for YOUR project - would be quite a
challenging task because it would involve modifications in almost any
component and layer (including database schema).

Hope this clarifies a bit.
Regards.

[1]
https://cwiki.apache.org/confluence/display/SYNCOPE/Schema%2C+attributes+and+mapping#Schema%2Cattributesandmapping-Schema
[2] https://cwiki.apache.org/confluence/display/SYNCOPE/Roadmap

-- 
Francesco Chicchiriccò

ASF Member, Apache Cocoon PMC and Apache Syncope PPMC Member
http://people.apache.org/~ilgrosso/