Le 30/11/2015 15:50, Jehan Procaccia a écrit :
Le 30/11/2015 13:01, Clément OUDOT a écrit :


Thanks , that works fine with a dataset limited to specific objeclass as you mention above .

I suspect that we can also rewrite on the fly attributes values that we would want to be unified on the merge directories ? for example if daprtmentNumber contains "MCI" in on ldap source and "INFO" in an another, and I want the merge directory to replace those values to a common syntax " DSI" for those values
is it also a dataset to do set ?
is this the corresponding doc http://lsc-project.org/wiki/documentation/2.0/configuration/syncoptions
I cannot find a sample config that do this kind of rewrite .


Hello,

indeed, the best is to create a dataset for this need. You can write some js to adapt on the fly a value from the source directory, for example:

        <dataset>
          <name>departmentNumber</name>
          <policy>FORCE</policy>
          <forceValues>
            <string><![CDATA[js:
var department = srcBean.getDatasetFirstValueById("departmentNumber");
                if ( department == "MCI" ) { department = "DSI"; }
                department;
            ]]></string>
          </forceValues>
       </dataset>

Thanks that works fine ;-) http://www-public.tem-tsp.eu/~procacci/dok/doku.php?id=docpublic:systemes:ldap:ldap_lsc#modification_d_attributs

Great.


perhaps not the correct mailing list, but now I want to check syncrepl status with http://ltb-project.org/wiki/documentation/nagios-plugins/check_ldap_syncrepl_status

Yes, this is related to LDAP Tool Box project.


can you confirm http://tools.ltb-project.org/issues/172 has been patched with option singlemaster ? reading the source seems to confirm that,
unfortunatly running it, still ask  for a SID (multimaster)

[root@ldapmaster ltb-project-nagios-plugins-0.5]# perl check_ldap_syncrepl_status.pl -U ldaps://masterldap.int.fr -H ldapze.int.fr -w 10 -c 15 -s Can't get Context CSN with SID 000 from ldap://ldapze.int.fr Please set SID with -I option.

is -s (singlemaster) correctly included ? did I used cmd line arguments correctly ?


You should have a SID even with singlemaster configuration. The ContextCSN attribute syntax is the following : http://www.openldap.org/faq/data/cache/1145.html

Try to set -I 001 in the command.


--
Clément OUDOT
Consultant en logiciels libres, Expert infrastructure et sécurité
Savoir-faire Linux

_______________________________________________________________
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