I have a windows 2012 domain controller and Centos LDAP.

I try to sync from windows 2012 to LDAP

We have check the existing lsx.xml with

service lsc configtest

xmllint lsc.xml

 

We get a Authentication error to the windows 2012 domain controller

 

<?xml version="1.0" ?>

<lsc xmlns="http://lsc-project.org/XSD/lsc-core-2.1.xsd"; revision="0">

    <connections>

        <ldapConnection>

            <name>ldap-src-conn</name>

 
<url>ldap://windowsADctrl:389/cn=administrator,cn=Users,DC=mycompany,DC=loca
l</url>

            <username>Administrator</username>

            <password>Abc12345678</password>

            <authentication>SIMPLE</authentication>

            <referral>IGNORE</referral>

            <derefAliases>NEVER</derefAliases>

            <version>VERSION_3</version>

            <pageSize>-1</pageSize>

            <factory>com.sun.jndi.ldap.LdapCtxFactory</factory>

            <tlsActivated>false</tlsActivated>

        </ldapConnection>

        <ldapConnection>

            <name>ldap-dst-conn</name>

            <url>ldap://localhost:389/DC=mycompany2,dc=local</url>

            <username></username>

            <password></password>

            <authentication>SIMPLE</authentication>

            <referral>IGNORE</referral>

            <derefAliases>NEVER</derefAliases>

            <version>VERSION_3</version>

            <pageSize>-1</pageSize>

            <factory>com.sun.jndi.ldap.LdapCtxFactory</factory>

            <tlsActivated>false</tlsActivated>

        </ldapConnection>

    </connections>

    <tasks>

        <task>

            <name>People</name>

            <bean>org.lsc.beans.SimpleBean</bean>

            <ldapSourceService>

                <name>ad-source-service</name>

                <connection reference="ldap-src-conn" />

                <baseDn>CN=Users,DC=mycompany,DC=local</baseDn>

                <pivotAttributes>

                    <string>samAccountName</string>

                </pivotAttributes>

                <fetchedAttributes>

                    <string>description</string>

                    <string>cn</string>

                    <string>sn</string>

                    <string>givenName</string>

                    <string>samAccountName</string>

                    <string>userPrincipalName</string>

                </fetchedAttributes>

                <getAllFilter>(objectClass=user)</getAllFilter>

 
<getOneFilter>(&amp;(objectClass=user)(samAccountName={samAccountName}))</ge
tOneFilter>

 
<cleanFilter>(&amp;(objectClass=user)(samAccountName={uid}))</cleanFilter>

            </ldapSourceService>

            <ldapDestinationService>

                <name>opends-dst-service</name>

                <connection reference="ldap-dst-conn" />

                <baseDn>ou=Users,DC=mycompany2,DC=local</baseDn>

                <pivotAttributes>

                    <string>uid</string>

                </pivotAttributes>

                <fetchedAttributes>

                    <string>description</string>

                    <string>cn</string>

                    <string>sn</string>

                    <string>userPassword</string>

                    <string>objectClass</string>

                    <string>uid</string>

                    <string>mail</string>

                </fetchedAttributes>

                <getAllFilter>(objectClass=inetorgperson)</getAllFilter>

 
<getOneFilter>(&amp;(objectClass=inetorgperson)(uid={samAccountName}))</getO
neFilter>

            </ldapDestinationService>

            <propertiesBasedSyncOptions>

                <mainIdentifier>"uid=" +

                    srcBean.getDatasetFirstValueById("samAccountName") +

                    ",ou=Users,DC=mycompany2,dc=local"</mainIdentifier>

                <defaultDelimiter>;</defaultDelimiter>

                <defaultPolicy>FORCE</defaultPolicy>

                <dataset>

                    <name>description</name>

                    <policy>FORCE</policy>

                    <forceValues>

                        <string>js:(srcBean.getDatasetFirstValueById("sn")
!= null  ? srcBean.getDatasetFirstValueById("sn").toUpperCase() : null
)</string>

                    </forceValues>

                </dataset>

                <dataset>

                    <name>userPassword</name>

                    <policy>KEEP</policy>

                    <createValues>

                        <string>js:"{SASL}" +

 
srcBean.getDatasetFirstValueById("userPrincipalName")</string>

                    </createValues>

                </dataset>

                <dataset>

                    <name>sn</name>

                    <policy>FORCE</policy>

                    <defaultValues>

                        <string>js:(srcBean.getDatasetFirstValueById("sn")
!= null  ? srcBean.getDatasetFirstValueById("sn").toUpperCase() :
srcBean.getDatasetFirstValueById("cn") )</string>

                    </defaultValues>

                </dataset>

                <dataset>

                    <name>description</name>

                    <policy>FORCE</policy>

                    <forceValues>

                        <string>js:(srcBean.getDatasetFirstValueById("sn")
!= null  ? srcBean.getDatasetFirstValueById("sn").toUpperCase() : null
)</string>

                    </forceValues>

                </dataset>

                <dataset>

                    <name>uid</name>

                    <policy>KEEP</policy>

                   <createValues>

 
<string>js:srcBean.getDatasetFirstValueById("samAcccountName")</string>

                    </createValues>

                </dataset>

                <dataset>

                    <name>objectClass</name>

                    <policy>KEEP</policy>

                    <createValues>

                        <string>"inetOrgPerson"</string>

                    </createValues>

                </dataset>

                <dataset>

                    <name>userPassword</name>

                    <policy>KEEP</policy>

                    <createValues>

                        <string>"changethis"</string>

                    </createValues>

                </dataset>

            </propertiesBasedSyncOptions>

        </task>

    </tasks>

</lsc>

 

_______________________________________________________________
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