Le 21/09/2018 à 16:00, Matjaz Premerl a écrit :
> Hi,
>
> For now I've managed to solved my requirement like this below. Can you
> just please review what I did and comment if there is something wrong
> in my work.
> For now it's working for a couple of users.
>
> <name>userAccountControl</name>
> <policy>FORCE</policy>
> <forceValues>
> <string>
> <!--var uac =
> dstBean.getDatasetFirstValueById("userAccountControl");-->
> var uac = "512";
> if (srcBean.getDatasetFirstValueById("status") ==
> "Disabled") {
> <!--uac =
> AD.userAccountControlSet(dstBean.getDatasetFirstValueById("userAccountControl"),
> [AD.UAC_SET_ACCOUNTDISABLE]);-->
> uac = AD.userAccountControlSet("514",
> [AD.UAC_SET_ACCOUNTDISABLE]);
> print("Izpis1: " + uac);
> } else {
> <!--uac =
> AD.userAccountControlSet(dstBean.getDatasetFirstValueById("userAccountControl"),
> [AD.UAC_UNSET_ACCOUNTDISABLE]);-->
> uac = AD.userAccountControlSet("512",
> [AD.UAC_UNSET_ACCOUNTDISABLE]);
> print("Izpis2: " + uac);
> }
> uac;
> </string>
> </forceValues>
Sounds good to me, of course by removing your test code and using the
code you put in comment.
For information here is the javadoc for AD class:
https://lsc-project.org/javadoc/2.1-SNAPSHOT/org/lsc/utils/directory/AD.html
--
Clément Oudot | Identity Solutions Manager
[email protected]
Worteks | https://www.worteks.com
_______________________________________________________________
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