Latest Release
- Release candidate 2.0rc1 (23/12/11)
- Beta version 2.0 (06/07/11)
- Stable version 1.2.1 (15/07/10)
- Nightly builds available to test
Events
- 10/10/2011 - LDAPCon 2011 (Heidelberg, Germany)
- 13/06/2011 - RMLL (Strasbourg, France)
- 9/07/2010 - RMLL (Bordeaux, France)
Community
Get help, contribute or find professional services ...
Find out more!
Search
Download | Read more... | Get started!
Security-related extended synchronization rulesThe class SecurityUtils offers 3 methods, available from all Javascript contexts. Hash (MD5 or SHA1)To hash a value using MD5 or SHA1, you can call the **SecurityUtils.hash** method. As an example, the following code will return the SHA1 hash of the string “phrase to hash”: SecurityUtils.hash(SecurityUtils.HASH_SHA1, "phrase to hash") Symmetric EncryptionUsing a pre-generated key, you can encrypt or decrypt values using a two-way encryption algorithm. General usageAll values passed to and returned from these fuctions are handled as base64 values, so they can be stored directly. Example: SecurityUtils.encrypt("something secret") SecurityUtils.decrypt(srcBean.getAttributeValueById("encryptedAttribute")) ConfigurationSymmetric encryption can be configured via the 3 following parameters in lsc.properties:
Creating a keyYou can call a special method to create a key in the keypath configured above (or, by default, in “lsc.key” in the current configuration directory). # cd /path/to/your/lsc/installation # LSC_SEC_CP=""; for jar in lib/*.jar; do LSC_SEC_CP="$LSC_SEC_CP:$jar"; done # java -cp $LSC_SEC_CP org.lsc.utils.security.SymmetricEncryption -f $PWD/etc NotesIn some situations, it is necessary to install the “unrestricted policy files” for Java to be able to use 256 bit keys. LSC expects the encoded password to be retrieved from LDAP base 64 encoded. So, if storing it using another tools, it must be base64 encoded before being inserted into LDAP. |


