Foren

Liferay 6 Ldap Issue

ravi kishore g, geändert vor 13 Jahren.

Liferay 6 Ldap Issue

Junior Member Beiträge: 50 Beitrittsdatum: 07.01.10 Neueste Beiträge
when trying to authenticate liferay5 via ldap, it works fine. But when try to authenticate Liferay6 via Ldap, user unable to login.

The main thing that was observed is the default password provided in control panel for ldap is being changed.

Any help would be highly appreciated.
thumbnail
Samuel Liu, geändert vor 13 Jahren.

RE: Liferay 6 Ldap Issue

Expert Beiträge: 301 Beitrittsdatum: 27.05.10 Neueste Beiträge
Hi Ravi,

Not sure exactly what's going on, but I know that there were LDAP issues in many of the 6.0 releases. The 6.0.5 release (GA3) that comes out this Friday or next Monday will resolve those problems.

Thanks for your patience emoticon

What bundle are you on btw (app server and version)?

Warm regards,
Sam
Jaivy Daam, geändert vor 13 Jahren.

RE: Liferay 6 Ldap Issue

New Member Beiträge: 9 Beitrittsdatum: 05.08.10 Neueste Beiträge
I am new to Liferay, and i got some issue's.

I have enabled ldap (and stupid me said it was requires) Now i've spending hours on google, on my terminal to find out, how to set this thing off.

I can't login on test@liferay.com or bruno@7cogs.com.

Is there somewhere there is an explanation for a noob like me how to set this thing off through terminal? I can't find it!

Thanks in advance!
thumbnail
Samuel Liu, geändert vor 13 Jahren.

RE: Liferay 6 Ldap Issue

Expert Beiträge: 301 Beitrittsdatum: 27.05.10 Neueste Beiträge
Hi Jaivy,

Try adding this to your portal-ext.properties
ldap.password.policy.enabled=false


If that doesn't solve your problem, post here again and I'll try to find a solution for you!

Warm regards,
Sam
Jaivy Daam, geändert vor 13 Jahren.

RE: Liferay 6 Ldap Issue

New Member Beiträge: 9 Beitrittsdatum: 05.08.10 Neueste Beiträge
I dont have the properties-ext.property

so i can't do that...

database overrides that file.

got any other solution?

Thanks for looking in to this!

Jaive.
thumbnail
Samuel Liu, geändert vor 13 Jahren.

RE: Liferay 6 Ldap Issue

Expert Beiträge: 301 Beitrittsdatum: 27.05.10 Neueste Beiträge
NOTE: BACK UP MYSQL BEFORE TRYING THIS. If it screws up your Liferay install, you want to be able to restore your data.

Try using the mysql console from the command line:


# First launch MySQL from command line
~% mysql -uroot -pYOUR_PASSWORD


# Use the lportal database, for Liferay
mysql> use lportal;


# Use this command to see what policy ID you're using as default
mysql> select passwordPolicyId from passwordpolicy where defaultPolicy=1";
+------------------+
| passwordPolicyId |
+------------------+
|            10167 |
+------------------+
1 row in set (0.00 sec)


# Use this command to show all policy IDs that are present
mysql> select passwordPolicyID from passwordpolicy;
+------------------+
| passwordPolicyID |
+------------------+
|            10167 |
|            10168 |
+------------------+
1 row in set (0.00 sec)


# Set the defaultPolicy=1 for the policy that isn't the current default (because that's probably the *normal* default, the one you want.
mysql> UPDATE passwordpolicy SET defaultPolicy=1 where passwordPolicyID=10168;


Hope this works!

Warm regards,
Sam
Jaivy Daam, geändert vor 13 Jahren.

RE: Liferay 6 Ldap Issue

New Member Beiträge: 9 Beitrittsdatum: 05.08.10 Neueste Beiträge
Hey Sam,

I didn't use the MySQL, i used the HSQL, So i've been trying to access the database of HSQL for sometime now, and kind of fed up with it, since i have no idea where to look at or anything!

So i reinstalled liferay using a SQL Server 2005 and now i didn't activate LDAP yet, but i will let you know when I activated it and if it worked.

I think there should be a wiki about the specifications of the HSQL and how to reach the database, i've been working on it for like 24 hours now tho reached it untill i was fed up. because there was no information at all!

think about it!

Sam: Thanks for all your work, i really appriciate it.

Maybe it's a good idea to get the MySQL database in the bundle, in stead of HSQL, coz that is a b*tch.

Thanks again Sam!

Jaive.
thumbnail
Samuel Liu, geändert vor 13 Jahren.

RE: Liferay 6 Ldap Issue

Expert Beiträge: 301 Beitrittsdatum: 27.05.10 Neueste Beiträge
Hi Jaivy,

Yeah you're not supposed to use HSQL in production. It's included because it's super portable and that makes it great for out-of-the-box use, which is demo purposes only. Sorry if that wasn't clear -- we have it in our documentation but it should be more clear and we'll fix that for you, because we're in the middle of improving documentation emoticon

Most Liferay users like Tomcat + MySQL. Sorry to hear that you spent so much time. Let me know if you run into problems with your new setup though, I will try to help you as best I can.

Glad to be of some help, if any at all emoticon

Warm regards,
Sam
Seyed Mohammad Hosein Jamali, geändert vor 13 Jahren.

RE: Liferay 6 Ldap Issue

Junior Member Beiträge: 77 Beitrittsdatum: 13.12.09 Neueste Beiträge
Hello all

i am using liferay 6.0.5 . its authentication is OK and work properly but it can not import users and groups form ldap ?!!

Does anyone solve the problem ?

thanks
thumbnail
Manish Kumar Gupta, geändert vor 13 Jahren.

RE: Liferay 6 Ldap Issue

Liferay Master Beiträge: 535 Beitrittsdatum: 16.05.08 Neueste Beiträge
Have you set ldap.import.enabled property to true? By default it is false.
Seyed Mohammad Hosein Jamali, geändert vor 13 Jahren.

RE: Liferay 6 Ldap Issue

Junior Member Beiträge: 77 Beitrittsdatum: 13.12.09 Neueste Beiträge
Have you set ldap.import.enabled property to true? By default it is false.


I active this property by using UI of liferay ( ControlPanel > Setting > Authentication ).

Do i need to set this property to true in the properties file ?

thanks