[lsc-changes] [Ldap Synchronization Connector (LSC)] page changed: documentation:1.2:configuration:syncoptions:activedirectory

webmaster at lsc-project.org webmaster at lsc-project.org
Thu Sep 15 00:01:46 CEST 2011


A page in your DokuWiki was added or changed. Here are the details:

Date        : 2011/09/15 00:01
Browser     : Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.162 Safari/535.1
IP-Address  : 82.235.239.71
Hostname    : nsg93-4-82-235-239-71.fbx.proxad.net
Old Revision: http://lsc-project.org/wiki/documentation/1.2/configuration/syncoptions/activedirectory?rev=1267449571
New Revision: http://lsc-project.org/wiki/documentation/1.2/configuration/syncoptions/activedirectory
Edit Summary: 
User        : sbahloul

@@ -66,15 +66,15 @@
  LSC enables creating and changing passwords for users. Here are some methods to simplify changing values of this attribute.
  
  ==== getUnicodePwd ====
  
- The [[http://lsc-project.org/javadoc/1.2-SNAPSHOT/org/lsc/utils/directory/AD.html#getUnicodePwd(java.lang.String)|getUnicodePwd]]  method encodes a string to fit the syntax of the unicodePwd attribute in AD, used to set the password.
+ The [[http://lsc-project.org/javadoc/latest/org/lsc/utils/directory/AD.html#getUnicodePwd(java.lang.String)|getUnicodePwd]]  method encodes a string to fit the syntax of the unicodePwd attribute in AD, used to set the password.
  
  So you can create a default password (e.g. "changeit") for created users by setting:
  
- <code java>
- lsc.syncoptions.user.unicodePwd.action = K
- lsc.syncoptions.user.unicodePwd.create_value = AD.getUnicodePwd("changeit")
+ <code>
+ lsc>tasks>task>syncoptions>attribute(unicodePwd)>action = KEEP
+ lsc>tasks>task>syncoptions>attribute(unicodePwd)>createValue = AD.getUnicodePwd("changeit")
  </code>
  
  ==== Warnings and various pitfalls ====
  
@@ -92,17 +92,17 @@
  Beware when reading this value, and value that's less than 2 weeks old may just be due to the server imprecision.
  
  ==== getNumberOfWeeksSinceLastLogon ====
  
- The [[http://lsc-project.org/javadoc/1.2-SNAPSHOT/org/lsc/utils/directory/AD.html#getNumberOfWeeksSinceLastLogon(java.lang.String)|getNumberOfWeeksSinceLastLogon]] method takes the String value read from **lastLogonTimestamp** or **lastLogon**, and returns the number of weeks since the date recorded.
+ The [[http://lsc-project.org/javadoc/latest/org/lsc/utils/directory/AD.html#getNumberOfWeeksSinceLastLogon(java.lang.String)|getNumberOfWeeksSinceLastLogon]] method takes the String value read from **lastLogonTimestamp** or **lastLogon**, and returns the number of weeks since the date recorded.
  
  This can be useful to detect unused accounts. For example:
  
- <code>
+ <code java>
  # Delete any accounts that haven't been used for 3 months or more
- lsc.tasks.MyTask.condition.delete = \
+ lsc>tasks>task>MyTask>syncOptions>conditions>delete =
  AD.getNumberOfWeeksSinceLastLogon(srcBean.getAttributeValueById("lastLogon") > 12)
  </code>
  
  ===== Account expiry date =====
  
- To set the Active Directory formatted value for an account expiry attribute, you can use the //[[http://lsc-project.org/javadoc/1.2-SNAPSHOT/org/lsc/utils/directory/AD.html#getAccountExpires(java.lang.String)|AD.getAccountExpires]]// methods.
+ To set the Active Directory formatted value for an account expiry attribute, you can use the //[[http://lsc-project.org/javadoc/latest/org/lsc/utils/directory/AD.html#getAccountExpires(java.lang.String)|AD.getAccountExpires]]// methods.



-- 
This mail was generated by DokuWiki at
http://lsc-project.org/wiki/



More information about the lsc-changes mailing list