Hi Sébastien, I tried your suggestions, but still not work.

But now seems that I've found the root cause. I'm running LSC on Windows, first 
with lsc.bat and now I've tried with Cygwin.In both cases the character 
conversion from binary to text is going wrong in some point.

I've exported and compared the resulting ldif from LSC and from Windows ldifde. 
Visually they are the same, but just the ldifde generated has a valid jpeg 
after importing it on AD.

After running "dos2unix.exe" on LSC ldif the attribute became a valid jpeg on 
AD.

There is some configuration that I could use on Windows or Cygwin to solve this?

Anyway, I'll try on Linux and let you know the results.


Thanks for your help,

Marcio

De: Sébastien Bahloul [mailto:[email protected]]
Enviada em: quarta-feira, 27 de julho de 2011 05:13
Para: Marcio Ricardo Schneider
Cc: [email protected]
Assunto: Re: [lsc-users] Replicating jpegphoto to AD

Hi Marcio,

You are probably encountering a JNDI related issue for  binary attributes usage 
: try to force a list of "non standard' attributes to JNDI configuration 
through dst.java.naming.ldap.attributes.binary = thumbnailphoto

Take a look at the section "Specifying Additional Nonstring Attributes" in the 
following page : 
http://download.oracle.com/javase/jndi/tutorial/ldap/misc/attrs.html

If it does not help you, can you paste some logs ?

Regards,

2011/7/26 Marcio Ricardo Schneider 
<[email protected]<mailto:[email protected]>>
Hi Folks,

I'm using lcs 1.2.1 to replicate from an openldap directory to AD. Until now I 
was successful, but I'm stuck on replicating a picture from my users.

The attributes are jpegphoto on Ldap and thumbnailphoto on AD. The replication 
seems to work and the thumbnailphoto is populated, but the stream is not 
recognized as a picture.


My lsc.properties:

------------------------------------------------------------------------------------------------------------------------------
####
#### atualiza_foto : Source
####
lsc.tasks.atualiza_foto.srcService = org.lsc.jndi.SimpleJndiSrcService
lsc.tasks.atualiza_foto.srcService.baseDn = cn=users
lsc.tasks.atualiza_foto.srcService.filterAll =  
(&(objectClass=SicrediUsuario)(!(SicrediSituacao=300)) (uid=marcio_schneider)   
)
lsc.tasks.atualiza_foto.srcService.pivotAttrs = uid
lsc.tasks.atualiza_foto.srcService.filterId = 
(&(objectClass=inetOrgPerson)(uid={uid}))
lsc.tasks.atualiza_foto.srcService.attrs =  jpegPhoto


####
#### atualiza_foto : Destination
####


lsc.syncoptions.atualiza_foto = 
org.lsc.beans.syncoptions.PropertiesBasedSyncOptions
lsc.syncoptions.atualiza_foto.default.action = F
lsc.tasks.atualiza_foto.dstService = org.lsc.jndi.SimpleJndiDstService
lsc.tasks.atualiza_foto.dstService.baseDn = OU=importados
lsc.tasks.atualiza_foto.dstService.filterAll =  
(&(objectclass=user)(sAMAccountName=*))
lsc.tasks.atualiza_foto.dstService.pivotAttrs = samaccountname
lsc.tasks.atualiza_foto.dstService.filterId = 
(&(objectClass=user)(|(sAMAccountName={samaccountname})(sAMAccountName={uid})))
lsc.tasks.atualiza_foto.dstService.attrs =  thumbnailphoto
lsc.tasks.atualiza_foto.bean = org.lsc.beans.SimpleBean
lsc.tasks.atualiza_foto.dn = ""


#cuidando da foto "thumbnailphoto
lsc.syncoptions.atualiza_foto.thumbnailphoto.action = F
lsc.syncoptions.atualiza_foto.thumbnailphoto.force_value = 
srcBean.getAttributeFirstValueById("jpegphoto")

----------------------------------------------------------------------------------------------------------------------------


Thank you folks!



As informacoes contidas neste e-mail e anexos podem ser confidenciais e 
privilegiadas, protegidas por sigilo legal. Qualquer forma de utilizacao deste 
documento depende de autorizacao do emissor, sujeito as penalidades cabiveis. O 
emissor utiliza o recurso somente para fins profissionais, eximindo o 
empregador de responsabilidades por uso pessoal ou improprio. Se esta mensagem 
foi recebida por engano, o conteudo deve ser apagado e o remetente avisado 
imediatamente, atraves de resposta a este e-mail.


_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

lsc-users mailing list
[email protected]<mailto:[email protected]>
http://lists.lsc-project.org/listinfo/lsc-users



--
Sebastien BAHLOUL
IAM / Security specialist
Ldap Synchronization Connector : http://lsc-project.org
Blog : http://sbahloul.wordpress.com/

As informacoes contidas neste e-mail e anexos podem ser confidenciais e 
privilegiadas, protegidas por sigilo legal. Qualquer forma de utilizacao deste 
documento depende de autorizacao do emissor, sujeito as penalidades cabiveis. O 
emissor utiliza o recurso somente para fins profissionais, eximindo o 
empregador de responsabilidades por uso pessoal ou improprio. Se esta mensagem 
foi recebida por engano, o conteudo deve ser apagado e o remetente avisado 
imediatamente, atraves de resposta a este e-mail.
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

lsc-users mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-users

Reply via email to