Skip to content

jos

March 17, 2008

I routinely advise people asking this to pair programming with one other skill of value and market themselves as a specialist in the intersection.

Liferay and ldap stopping

  1. Stop Liferay
  2. open a console
  3. $ mysql
  4. $ use lportal;
  5. $ SELECT preferences FROM portletpreferences WHERE plid=0 AND preferences LIKE ‘%’;
  6. you shold get exactly one result-string, containing xml-syntax. Mark and copy it to an editor of your choice.
  7. In the editor change the following name-value-pairs in the result-string:
    1ldap.auth.requiredtrue
    2ldap.auth.enabledtrue

    to

    1ldap.auth.requiredfalse
    2ldap.auth.enabledfalse
  8. Now you need to build an UPDATE-command als follows (ATTENTION: make sure there are no linebreaks within the result-string!):
    $ UPDATE portletpreferences SET preferences = ‘modified result-string‘ WHERE plid=0 AND preferences LIKE ‘%’;
  9. If you get
    1Query OK, 1 row affected (0.00 sec)
    2Rows matched: 1 Changed: 1 Warnings: 0

    you succeeded.

  10. Make sure that there are no omniadmin-entries in your portlet-ext.properties.
  11. Start Liferay and login.

Access liferay api from portlet.
http://wiki.liferay.com/index.php/How_to_access_the_full_Liferay_API_from_a_portlet_application

Advertisements
No comments yet

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: