Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Ldap Configuration in Liferay 6.1 EE Maruthi Kumari J N April 30, 2012 3:18 AM
RE: Ldap Configuration in Liferay 6.1 EE Jignesh Vachhani April 30, 2012 3:23 AM
RE: Ldap Configuration in Liferay 6.1 EE Maruthi Kumari J N April 30, 2012 3:45 AM
RE: Ldap Configuration in Liferay 6.1 EE Jignesh Vachhani May 1, 2012 10:15 PM
RE: Ldap Configuration in Liferay 6.1 EE Mayur Soneta May 1, 2012 9:00 PM
RE: Ldap Configuration in Liferay 6.1 EE Hitoshi Ozawa May 1, 2012 9:22 PM
RE: Ldap Configuration in Liferay 6.1 EE Maruthi Kumari J N May 2, 2012 4:36 AM
RE: Ldap Configuration in Liferay 6.1 EE Hitoshi Ozawa May 2, 2012 4:41 AM
RE: Ldap Configuration in Liferay 6.1 EE Jignesh Vachhani May 2, 2012 5:19 AM
RE: Ldap Configuration in Liferay 6.1 EE Maruthi Kumari J N May 2, 2012 9:15 PM
RE: Ldap Configuration in Liferay 6.1 EE Maruthi Kumari J N May 3, 2012 11:10 PM
RE: Ldap Configuration in Liferay 6.1 EE Jignesh Vachhani May 4, 2012 12:12 AM
RE: Ldap Configuration in Liferay 6.1 EE Amit Doshi May 4, 2012 12:23 AM
RE: Ldap Configuration in Liferay 6.1 EE Maruthi Kumari J N May 4, 2012 6:05 AM
RE: Ldap Configuration in Liferay 6.1 EE Jignesh Vachhani May 4, 2012 6:36 AM
RE: Ldap Configuration in Liferay 6.1 EE Amit Doshi May 4, 2012 7:29 AM
RE: Ldap Configuration in Liferay 6.1 EE David H Nebinger May 4, 2012 7:32 AM
RE: Ldap Configuration in Liferay 6.1 EE Prasanna Raj September 19, 2012 11:08 AM
RE: Ldap Configuration in Liferay 6.1 EE Milan Kostoláni September 21, 2012 12:37 AM
RE: Ldap Configuration in Liferay 6.1 EE Prasanna Raj September 21, 2012 1:34 PM
Maruthi Kumari J N
Ldap Configuration in Liferay 6.1 EE
April 30, 2012 3:18 AM
Answer

Maruthi Kumari J N

Rank: Junior Member

Posts: 40

Join Date: December 13, 2011

Recent Posts

hi,


I am using Liferay 6.1 EE. There is no admin portlet. how we can configure ldap in Liferay UI with out admin portlet. I am using Apache directory server
Any Ideas.......................................................... help me

Regards,
Maruthi
Jignesh Vachhani
RE: Ldap Configuration in Liferay 6.1 EE
April 30, 2012 3:23 AM
Answer

Jignesh Vachhani

Rank: Liferay Master

Posts: 772

Join Date: March 10, 2008

Recent Posts

Hi Maruthi,
You can configure LDAP from liferayUI control panel section.
Maruthi Kumari J N
RE: Ldap Configuration in Liferay 6.1 EE
April 30, 2012 3:45 AM
Answer

Maruthi Kumari J N

Rank: Junior Member

Posts: 40

Join Date: December 13, 2011

Recent Posts

hi,

In Liferay 6.1 EE ControlPanel where exactly i have to do.
help me..........................

Regards,
Maruthi
Jignesh Vachhani
RE: Ldap Configuration in Liferay 6.1 EE
May 1, 2012 10:15 PM
Answer

Jignesh Vachhani

Rank: Liferay Master

Posts: 772

Join Date: March 10, 2008

Recent Posts

you can see below attached screenshots :
Attachment

Attachment

Attachments: Portal Settings - My Campus-162902.png (111.5k), Welcome - My Campus-162619.png (119.8k)
Mayur Soneta
RE: Ldap Configuration in Liferay 6.1 EE
May 1, 2012 9:00 PM
Answer

Mayur Soneta

Rank: New Member

Posts: 4

Join Date: April 4, 2012

Recent Posts

Were you able to get Maruthi. I was able to successfully set with Apache.
Hitoshi Ozawa
RE: Ldap Configuration in Liferay 6.1 EE
May 1, 2012 9:22 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

The link is no longer valid. It's point to developing with web content.

Additional note to the steps is, the page shown is accessed by "Go to" -> "Control Panel" -> "Portal Settings". You have to be an administrator.
Maruthi Kumari J N
RE: Ldap Configuration in Liferay 6.1 EE
May 2, 2012 4:36 AM
Answer

Maruthi Kumari J N

Rank: Junior Member

Posts: 40

Join Date: December 13, 2011

Recent Posts

hi,

I am facing issue to test ldap user in liferay. user is there in the ldap. i have entered all values which are required. but see the attached screen shot. it is not coming.

11:33:44,883 ERROR [PortalLDAPImporterImpl:672] Unable to import user uid=testuser: null:null:No attributes
com.liferay.portal.UserScreenNameException: Screen name cannot be null for
at com.liferay.portal.security.ldap.DefaultLDAPToPortalConverter.importLDAPUser(DefaultLDAPToPortalConverter.java:117)
at com.liferay.portal.security.ldap.PortalLDAPImporterImpl.importUser(PortalLDAPImporterImpl.java:861)
at com.liferay.portal.security.ldap.PortalLDAPImporterImpl.importFromLDAPByUser(PortalLDAPImporterImpl.java:662)
at com.liferay.portal.security.ldap.PortalLDAPImporterImpl.importFromLDAP(PortalLDAPImporterImpl.java:189)
at com.liferay.portal.security.ldap.PortalLDAPImporterImpl.importFromLDAP(PortalLDAPImporterImpl.java:128)
at com.liferay.portal.security.ldap.PortalLDAPImporterImpl.importFromLDAP(PortalLDAPImporterImpl.java:95)
at com.liferay.portal.security.ldap.PortalLDAPImporterUtil.importFromLDAP(PortalLDAPImporterUtil.java:30)
at com.liferay.portlet.admin.messaging.LDAPImportMessageListener.doReceive(LDAPImportMessageListener.java:28)
at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:25)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:54)
at $Proxy279.receive(Unknown Source)
at com.liferay.portal.kernel.scheduler.messaging.SchedulerEventMessageListenerWrapper.receive(SchedulerEventMessageListenerWrapper.java:77)
at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:63)
at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:108)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:669)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:580)
at java.lang.Thread.run(Thread.java:619)

help me........................................


Regards,
Maruthi
Attachments: New Microsoft Office Word Document.docx (99.4k)
Hitoshi Ozawa
RE: Ldap Configuration in Liferay 6.1 EE
May 2, 2012 4:41 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

Looking at the messages, values are being set to null. It seems there is errors in your settings.
Jignesh Vachhani
RE: Ldap Configuration in Liferay 6.1 EE
May 2, 2012 5:19 AM
Answer

Jignesh Vachhani

Rank: Liferay Master

Posts: 772

Join Date: March 10, 2008

Recent Posts

Which user search filter you have applied in text box ?
Could you please provide some screen shot of settings ?
Maruthi Kumari J N
RE: Ldap Configuration in Liferay 6.1 EE
May 2, 2012 9:15 PM
Answer

Maruthi Kumari J N

Rank: Junior Member

Posts: 40

Join Date: December 13, 2011

Recent Posts

hi,

I have attached the screen shots.
help me to resolve this. i have a dead line.

Regards,
Maruthi
Attachments: New Microsoft Office Word Document.docx (600.3k)
Maruthi Kumari J N
RE: Ldap Configuration in Liferay 6.1 EE
May 3, 2012 11:10 PM
Answer

Maruthi Kumari J N

Rank: Junior Member

Posts: 40

Join Date: December 13, 2011

Recent Posts

hi,

I have attached the screen shots.
help me to resolve this. i have a dead line.

Regards,
Maruthi
Jignesh Vachhani
RE: Ldap Configuration in Liferay 6.1 EE
May 4, 2012 12:12 AM
Answer

Jignesh Vachhani

Rank: Liferay Master

Posts: 772

Join Date: March 10, 2008

Recent Posts

Try to Use Object class in user filer as : inetOrgPerson
Amit Doshi
RE: Ldap Configuration in Liferay 6.1 EE
May 4, 2012 12:23 AM
Answer

Amit Doshi

Rank: Liferay Master

Posts: 540

Join Date: December 29, 2010

Recent Posts

Hi,

Please find image for the configuration of LDAP with Liferay.

You had done wrong configuration setting. Actually you need to map with the Attributes of the LDAP in Liferay, not with their values.

That's the reason you are not getting any results.

Hope it helps,

Thanks & Regards,
Amit Doshi
Attachment

Attachments: LDAPSettings.PNG (29.1k)
Maruthi Kumari J N
RE: Ldap Configuration in Liferay 6.1 EE
May 4, 2012 6:05 AM
Answer

Maruthi Kumari J N

Rank: Junior Member

Posts: 40

Join Date: December 13, 2011

Recent Posts

hi,

Thanks!

I got the user now. I am trying to login with the ldap user. but it is failing. the below is my configuration settings in portal-ext.properties.

#Ldap Settings
ldap.factory.initial=com.sun.jndi.ldap.LdapCtxFactory
ldap.referral=follow
ldap.base.provider.url.0=ldap://localhost:10389
ldap.base.dn.0=ou=users,ou=system
ldap.security.principal.0=uid=admin,ou=system
ldap.security.credentials.0=secret


ldap.auth.enabled=true
ldap.auth.required=false
ldap.import.method=user
ldap.auth.password.encryption.algorithm.types=SSHA
ldap.auth.search.filter.0=(mail=@email_address@)

ldap.import.user.search.filter.0=(objectClass=Person)


ldap.user.mappings.0=screenName=uid\npassword=userPassword\nemailAddress=mail\nfirstName=cn\nlastName=sn\njobTitle=title\ngroup=memberOf\nfullName=cn
ldap.import.user.password.default=secret


#ldap.group.mappings=groupName=cn\ndescription=description\nuser=member

is there any thing wrong in my config? please help me...........................

Regards,
Maruthi
Jignesh Vachhani
RE: Ldap Configuration in Liferay 6.1 EE
May 4, 2012 6:36 AM
Answer

Jignesh Vachhani

Rank: Liferay Master

Posts: 772

Join Date: March 10, 2008

Recent Posts

Set ldap.auth.required=false to true and try once again
Amit Doshi
RE: Ldap Configuration in Liferay 6.1 EE
May 4, 2012 7:29 AM
Answer

Amit Doshi

Rank: Liferay Master

Posts: 540

Join Date: December 29, 2010

Recent Posts

Hi Maruthi,

Why you are making all the things together, either do LDAP Settings from Liferay Control panel or use portal-ext.properties.

If you use both of them then you will get confused and also like to add that among both of them portal-ext.properties changes will be overridden by ldap settings from control panel that you have done.

My Suggestion is that if you are using LDAP Settings from Liferay Control panel then add only that properties that you can't able to add with GUI or else do full configuration with portal-ext.properties.

As per jignesh suggestion check the entry in the portletprefrence table whether the ldap.auth.required=false is true or false and if it is false then make it true.

Thanks & Regards,
Amit Doshi
David H Nebinger
RE: Ldap Configuration in Liferay 6.1 EE
May 4, 2012 7:32 AM
Answer

David H Nebinger

Rank: Liferay Legend

Posts: 5740

Join Date: September 1, 2006

Recent Posts

Amit Doshi:
Why you are making all the things together, either do LDAP Settings from Liferay Control panel or use portal-ext.properties.


Setting them in portal-ext.properties is valuable for instance setup, and these settings are only used the first time Liferay starts.

After Liferay has started, you must manage all changes in the control panel, because portal-ext.properties is not referenced for LDAP settings after initial startup.
Prasanna Raj
RE: Ldap Configuration in Liferay 6.1 EE
September 19, 2012 11:08 AM
Answer

Prasanna Raj

Rank: Junior Member

Posts: 67

Join Date: January 30, 2012

Recent Posts

I configured LDAP using the control panel , and after I logged out, due to a configuration error, I'm unable to login into the portal at all.
Can I update portal-ext.properties file to disable the configurations I made using control panel and try logging in? Will that work?
If control panel configurations takes precedence over properties file, how do I revert back to previous config?

Apologies for my beginner-level questions.
Thanks.
Milan Kostoláni
RE: Ldap Configuration in Liferay 6.1 EE
September 21, 2012 12:37 AM
Answer

Milan Kostoláni

Rank: Junior Member

Posts: 92

Join Date: July 26, 2012

Recent Posts

You have probably checked the mark LDAP required for login and you are trying to log with someone who is not in LDAP such as Test (if you havent done export)

or just check if your ldap server is online.

Solution, check your ldap server and try to add the test user manually.
Prasanna Raj
RE: Ldap Configuration in Liferay 6.1 EE
September 21, 2012 1:34 PM
Answer

Prasanna Raj

Rank: Junior Member

Posts: 67

Join Date: January 30, 2012

Recent Posts

Thats Right! I had enabled the required checkbox , but since I couldn't log into Liferay using my credentials,
I changed the preference in my PORTALPREFERENCES table and disabled the required checkbox pref, Restarted my server. Now I could login using my user credentials.
However, I have a new issue now.

I added this line in my portal-ext.properties file
users.screen.name.validator=com.liferay.portal.security.auth.LiberalScreenNameValidator
to enable liferay to allow usernames with underscores or hyphens.

However, even after this change, liferay doesn't seem to accept usernames with underscores or hyphens.
Since the uids in my LDAP are all in fn_sn format, I'm now unable to import users from LDAP. Am I missing anything? I'm using LR 6.1 CE.

Thanks.