Monday, February 22, 2016

How to add an attribute to wso2 product's LDAP

1. In the directory repository/data/org.wso2.carbon.directory/schema/ou=schema/cn=inetorgperson/ou=attributetypes add the attached ldif file

2. In repository/data/org.wso2.carbon.directory/schema/ou=schema/cn=inetorgperson/ou=objectclasses edit the m-oid=2.16.840.1.113730.3.2.2.ldif and add m-may: passwordPolicy

3. Add a claim entry in claim-config.xml

4. Add a claim mapping in the UI

Sunday, February 14, 2016

How to open a specific folder in Mac Finder

How to open a specific folder in Mac OS X:
Using Finder:
  1. Open Finder, you can type in universal search by hitting "Command + Space"
  2. Press "Command + Shift + G" in finder.

Using Terminal:
  1. Open Terminal, you can type in universal search by hitting "Command + Space"
  2. Use the following command to open the folder: eg:
    "open {folder_name}"

How to show hidden files in MAC

Easiest way to show hidden Mac OS X files in Finder:
  1. Open Terminal, you can type in universal search by hitting "Command + Space".
  2. In Terminal, paste the following: 
    defaults write com.apple.finder AppleShowAllFiles YES
    .
  3. Press Enter/Return.
  4. Hold the 'Option/alt' key, then right click on the Finder icon in the dock and click Relaunch.

Have fun!