Hi,
for those who would be interested, here is the condition that must be
used to test the presence or absence of the attribute pwdaccountlockedtime :
If ( srcBean.getDatasetById("pwdAccountLockedTime") != null )
{
}
else
{
}
Special thanks to Clément for his patience.
Cheers
LMP
On 28/02/14 13:44, Clément OUDOT wrote:
>
>
>
> 2014-02-28 13:13 GMT+01:00 Plumel Louis-Marie
> <[email protected] <mailto:[email protected]>>:
>
> I tried what you said :
>
> if (srcBean.getDatasetById("pwdAccountLockedTime") &&
> srcBean.getDatasetById("pwdAccountLockedTime").length() == null )
>
> {
> AD.userAccountControlSet( "0", [ AD.UAC_SET_NORMAL_ACCOUNT,
> AD.UAC_UNSET_ACCOUNTDISABLE]);
> }
> else
> {
> AD.userAccountControlSet( "0", [ AD.UAC_SET_ACCOUNTDISABLE]);
> }
>
>
> but still have the problem and have this error:
> . (<Unknown source>#4 in <Unknown source> at line number 4
>
>
> no, length() must not be compared to null. Just leave length() in the
> test, without == null.
>
> See
> https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/length?redirectlocale=en-US&redirectslug=JavaScript%2FReference%2FGlobal_Objects%2FString%2Flength
>
> And use CDATA in XML to have clean javascript code :
> http://stackoverflow.com/questions/2784183/what-does-cdata-in-xml-mean
>
> Clément.
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org
lsc-users mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-users