[lsc-users] modify does not work / mysql > openldap

Sébastien Bahloul sebastien.bahloul at gmail.com
Fri Sep 16 14:14:43 CEST 2011


In the LDAP request, you will see that the cn value is not replaced
(cn={cn}), this probably means that the value has not been well read from
the database (either a null or an empty value)

Regads,

2011/9/16 Michael Frank <m.frank at abk-stuttgart.de>

> For some reasons i didn`t received this mail via the mailinglist - got it
> from the digest... *confused
>
> >Date: Thu, 15 Sep 2011 16:43:39 +0200
> >From: Xavier Montagutelli <xavier.montagutelli at unilim.fr**>
> >Subject: Re: [lsc-users] modify does not work / mysql > openldap
> >To: lsc-users at lists.lsc-project.**org <lsc-users at lists.lsc-project.org>
> >Message-ID: <201109151643.40010.xavier.**montagutelli at unilim.fr<201109151643.40010.xavier.montagutelli at unilim.fr>
> >
> >Content-Type: Text/Plain;  charset="iso-8859-1"
>
>
> > I think it looks good so far - err=68 means "Already Exists" ...
> > > same as in the the lsc logs.
> > > What i don`t get: Why is there an ADD - it should be MODIFY ?!
> > > How does lsc decide if it sends a add or a modify to openldap ?
> > > For me it seems like lcp does not compare the entries mysql <> ldap.
> > > What are necessary settings ?
>
> >Do you have a "cn" returned in your sql-map-config.d/XXX.xml file ?
> >(in the select with id="getInetOrgPersonList_stud_**vbk")
>
>
> What do you mean with "cn" returned ?
>
> Here`s my config :
>
> <sqlMap namespace="InetOrgPerson_stud_**vbk">
>
>        <select id="getInetOrgPerson_stud_vbk" resultClass="java.util.**HashMap"
> parameterClass="java.util.Map"**>
>                Select  uid as uid,
>                        benutzername as cn,
>                        nachname as sn,
>                        email as mail,
>                        stg as description,
>                        passwort as userPassword
>                FROM tbl_stu
>                WHERE uid = #uid#
>        </select>
>
>        <select id="getInetOrgPersonList_stud_**vbk"
> resultClass="java.util.**HashMap">
>                SELECT uid
>                FROM tbl_stu WHERE stg ='VBK'
>        </select>
>
> </sqlMap>
>
> There is the Rest of the Config and Logs :
> http://pastebin.com/tvFuA8wQ
>
>
>
> Best regards,
> micha
> ______________________________**______________________________**___
> Ldap Synchronization Connector (LSC) - http://lsc-project.org
>
> lsc-users mailing list
> lsc-users at lists.lsc-project.**org <lsc-users at lists.lsc-project.org>
> http://lists.lsc-project.org/**listinfo/lsc-users<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/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lsc-project.org/pipermail/lsc-users/attachments/20110916/afc8e067/attachment.htm>


More information about the lsc-users mailing list