Dear LSC Users,

I need help with setting sync from lsc v2.1 to Windows AD ( server 2012 ).
Connector is working but i cannot make it to sync email aliases of the
users.
I have [email protected] with 3 email addresses : [email protected],
[email protected], [email protected]

It sync only primary address but not the aliases. Here is example of part
of xml file:


<fetchedAttributes>
       <string>cn</string>
          <string>description</string>
          <string>givenName</string>
          <string>mail</string>
          <string>objectclass</string>
          <string>pwdLastSet</string>
          <string>sAMAccountName</string>
          <string>proxyAddresses</string>
          <string>sn</string>
          <string>unicodePwd</string>
          <string>userAccountControl</string>
          <string>userPrincipalName</string>
          <string>displayName</string>
        </fetchedAttributes>


<dataset>
     <name>proxyAddresses</name>
     <policy>FORCE</policy>
     <forceValues>
      <string>var mail = srcBean.getDatasetFirstValueById("mail"); mail =
mail.replace("domain.org","domain.com"); if (mail.length > 0) { "SMTP:" +
mail; } else { null; }</string>
      <string>var gosaMailAlternateAddress = srcBean.
getDatasetFirstValueById("gosaMailAlternateAddress"); if
(gosaMailAlternateAddress.endsWith("domain.org")) {
gosaMailAlternateAddress = "";  } if (gosaMailAlternateAddress.length > 0)
{ "SMTP:" + gosaMailAlternateAddress; } else { null; }</string>
      </forceValues>
    </dataset>

Could you help a bit?

Best Regards,

Petar Životić
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

lsc-users mailing list
[email protected]
https://lists.lsc-project.org/cgi-bin/mailman/listinfo/lsc-users

Reply via email to