Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
Maruthi Kumari J N
Ldap Configuration in Liferay 6.1 EE
30. April 2012 03:18
Antwort

Maruthi Kumari J N

Rang: Junior Member

Nachrichten: 40

Eintrittsdatum: 13. Dezember 2011

Neue Beiträge

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
30. April 2012 03:23
Antwort

Jignesh Vachhani

Rang: Liferay Master

Nachrichten: 775

Eintrittsdatum: 10. März 2008

Neue Beiträge

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

Maruthi Kumari J N

Rang: Junior Member

Nachrichten: 40

Eintrittsdatum: 13. Dezember 2011

Neue Beiträge

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
1. Mai 2012 22:15
Antwort

Jignesh Vachhani

Rang: Liferay Master

Nachrichten: 775

Eintrittsdatum: 10. März 2008

Neue Beiträge

you can see below attached screenshots :
Anhang

Anhang

Anhänge: 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
1. Mai 2012 21:00
Antwort

Mayur Soneta

Rang: New Member

Nachrichten: 4

Eintrittsdatum: 4. April 2012

Neue Beiträge

Were you able to get Maruthi. I was able to successfully set with Apache.
Hitoshi Ozawa
RE: Ldap Configuration in Liferay 6.1 EE
1. Mai 2012 21:22
Antwort

Hitoshi Ozawa

Rang: Liferay Legend

Nachrichten: 7990

Eintrittsdatum: 23. März 2010

Neue Beiträge

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
2. Mai 2012 04:36
Antwort

Maruthi Kumari J N

Rang: Junior Member

Nachrichten: 40

Eintrittsdatum: 13. Dezember 2011

Neue Beiträge

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
Anhänge: New Microsoft Office Word Document.docx (99,4k)
Hitoshi Ozawa
RE: Ldap Configuration in Liferay 6.1 EE
2. Mai 2012 04:41
Antwort

Hitoshi Ozawa

Rang: Liferay Legend

Nachrichten: 7990

Eintrittsdatum: 23. März 2010

Neue Beiträge

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
2. Mai 2012 05:19
Antwort

Jignesh Vachhani

Rang: Liferay Master

Nachrichten: 775

Eintrittsdatum: 10. März 2008

Neue Beiträge

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
2. Mai 2012 21:15
Antwort

Maruthi Kumari J N

Rang: Junior Member

Nachrichten: 40

Eintrittsdatum: 13. Dezember 2011

Neue Beiträge

hi,

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

Regards,
Maruthi
Anhänge: New Microsoft Office Word Document.docx (600,3k)
Maruthi Kumari J N
RE: Ldap Configuration in Liferay 6.1 EE
3. Mai 2012 23:10
Antwort

Maruthi Kumari J N

Rang: Junior Member

Nachrichten: 40

Eintrittsdatum: 13. Dezember 2011

Neue Beiträge

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
4. Mai 2012 00:12
Antwort

Jignesh Vachhani

Rang: Liferay Master

Nachrichten: 775

Eintrittsdatum: 10. März 2008

Neue Beiträge

Try to Use Object class in user filer as : inetOrgPerson
Amit Doshi
RE: Ldap Configuration in Liferay 6.1 EE
4. Mai 2012 00:23
Antwort

Amit Doshi

Rang: Liferay Master

Nachrichten: 543

Eintrittsdatum: 29. Dezember 2010

Neue Beiträge

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
Anhang

Anhänge: LDAPSettings.PNG (29,1k)
Maruthi Kumari J N
RE: Ldap Configuration in Liferay 6.1 EE
4. Mai 2012 06:05
Antwort

Maruthi Kumari J N

Rang: Junior Member

Nachrichten: 40

Eintrittsdatum: 13. Dezember 2011

Neue Beiträge

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
4. Mai 2012 06:36
Antwort

Jignesh Vachhani

Rang: Liferay Master

Nachrichten: 775

Eintrittsdatum: 10. März 2008

Neue Beiträge

Set ldap.auth.required=false to true and try once again
Amit Doshi
RE: Ldap Configuration in Liferay 6.1 EE
4. Mai 2012 07:29
Antwort

Amit Doshi

Rang: Liferay Master

Nachrichten: 543

Eintrittsdatum: 29. Dezember 2010

Neue Beiträge

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
4. Mai 2012 07:32
Antwort

David H Nebinger

Rang: Liferay Legend

Nachrichten: 6274

Eintrittsdatum: 1. September 2006

Neue Beiträge

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
19. September 2012 11:08
Antwort

Prasanna Raj

Rang: Junior Member

Nachrichten: 69

Eintrittsdatum: 30. Januar 2012

Neue Beiträge

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
21. September 2012 00:37
Antwort

Milan Kostoláni

Rang: Junior Member

Nachrichten: 92

Eintrittsdatum: 26. Juli 2012

Neue Beiträge

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
21. September 2012 13:34
Antwort

Prasanna Raj

Rang: Junior Member

Nachrichten: 69

Eintrittsdatum: 30. Januar 2012

Neue Beiträge

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.