Why Liferay ask credentials also for a public Site page? - liferay

Strange navigations. Using Liferay CE 6.2.3 GA4, in a Portal instance www.portal.com I created a Site other than the base Guest site. The new Site is "Open" and I assigned it a virtual host name of www.site.com. Public and private three have a single home page.
If the user navigate to www.site.com he/she see the public home, then if he/she do a login the landing page is the Home page of the Guest base site of www.portal.com. Why ?
Then in "My sites" if the User click on the private side of www.site.com he/she need to give the credentials again. Very strange...
Ok, then the user is on the private home of www.site.com but if the User in "My Sites" click on the public side of www.site.com he/she need to give the credentials again ! This because the "My Sites" portlet is not on the right upper corner, instead there is the "Sign in" link". Very wrong ...
Please anyone can help me ?
Thank you in advance !
Ivano C.

There are multiple issues mentioned here. Answering the issues that I understand.
1. If the user navigate to www.site.com he/she see the public home, then if he/she do a login the landing page is the Home page of the Guest base site of www.portal.com. Why ?
By default it takes to default Guest Site after login.
You can change default landing page URL in Control Panel →
Configuration → Portal Settings. If you want custom behaviour then
you can implement post login hook.
2. Then in "My sites" if the User click on the private side of www.site.com he/she need to give the credentials again. Very strange...
As there are two different host names [www.portal.com & www.site.com]
and clicking on links that directs from one site to the other makes it
as two different sites. Hence it asks for login again.

Related

shopware login not work so what is actual issuse?

I have setup shopware on a localhost server.
I have created a customer for login but when try to login with created customer no change in the page. It means only the login and register page show, Redirect to other pages are not working.
If I can try to open profile page or addresses page, page not opens only show login or register.
So What is the problem?? Additional setting required for login?
In the Top navigation account tab Login name show.
https://github.com/shopware/shopware/blob/5.4/engine/Shopware/Configs/Default.php#L207
You should check if this fits your server configuration and database or change it via config.php. Login issues are often caused by timezone differences between php and database.

Log into website from website

I have a webapp that saves the credentials (user & pass) for a website B. Is it possible to click on a link in A and have that sign me into site B in a new browser window?
For example: say A has my pinterest user & pass. If I click on a link in A that says "sign into pinterest" can that open a new windows and let me start browsing pinterest as if I signed in?
This is possible if the site in question gives you some sort of interface (like OAuth) to do that. You cannot just submit data for the user in the other website's regular login form. (assuming they have some CSRF protection, which they should.)

Single sign on Liferay 5.2.3

We are having several communities running on our single liferay(5.x) installation.
The user base for all these communities is same.
Now we want that if a user is logged in into one community and he click on a link for other community , he should be automatically signed in that community.
For example if there are 2 domains: domain1.com and domain2.com. Both these domains would be communities in liferay. If I am logged in on domain1.com and I am trying to click a private page of domain2.com then I want I should not get log - in screen in domain2.com. I should get automatically signed in domain2 because I am signed in domain1.com
What are the ways of doing it ?
Once logged in you should be signed in to all communities that you have access to. One way I would do this is:
Sign in to community 1
Navigate to the Control Panel
Go the "Communities" option under the "Portal" section
Click on Public or Private pages of the Community I want to view
As far as I'm aware access to communities is single sign-on providing you have the required permissions for that Community.

Liferay's default guest page and it's purpose in a Website

I'm currently building a website for a company, that will for the moment contain 3-5 static pages (i.e, just content). User registration may be added in time to come.
Now, I've been reading through the Liferay docs, forums and wiki, and I'm still pretty unclear on the approach to take in designing this website:
If I were to model my company Website as an organization in Liferay where I would have the public pages of the Website, what would be the purpose of the default guest page? (/web/gues/home)? Do I remove this and redirect the guest to my organization? If so, how do I do this?
Who is the creator of an organization in the real world? Is this site administrator? or the person responsible for adding content?
Who is the creator of an organization in Liferay? Is this the administrator to Liferay (i.e the default Test user)?
The best way to do is is to put your pages in the Public Pages of your organization and setup a virtual host (see Manage Pages -> Virtual Hosts in the Control Panel) for those pages. This way, www.my-homepage.com will redirect to the public pages of your organization. You should of course be owner of the domain and link the domain to the IP address of the server the website runs on.
In Liferay, by default only users with the role of Administrator can add organizations. For managing content you should setup other roles. Create f.e. a Content Editor role and add permissions for the Web Content portlet (Create Content, Approve, Edit, Delete, View in Control Panel). This also answered your third question.
Add this lines of code in your portal-ext.properties
mail.session.mail.pop3.host=pop.gmail.com
mail.session.mail.pop3.password=PASSWORD
mail.session.mail.pop3.port=110
mail.session.mail.pop3.user=USER
mail.session.mail.imap.host=imap.gmail.com
mail.session.mail.imap.port=993
mail.session.mail.store.protocol=imap
mail.session.mail.transport.protocol=smtp
mail.session.mail.smtp.host=smtp.gmail.com
mail.session.mail.smtp.password=PASSWD
mail.session.mail.smtp.user=USERID#gmail.com
mail.session.mail.smtp.port=465
mail.session.mail.smtp.auth=true
mail.session.mail.smtp.starttls.enable=true
mail.session.mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory
Please user your password in place of PASSWD and your gmail user id in place of USERID.
By three different ways we can configure mail server in Liferay. I am using Liferay 6.2 and initially I got an error that could not connect to smtp host localhost port 25 in liferay by using different code. So I used above code and my mail server is configured properly and my application is able to send mail to the user in forgot password case.
And please see this link. This link help me to solve the issue.
https://www.permeance.com.au/web/tim.telcik/home/-/blogs/how-do-i-configure-liferay-portal-to-use-google-mail
Thanks
asif aftab

Forms/AD Authentication with Sharepoint

All,
I'm configuring Sharepoint to use forms authentication with LDAP/Active Directory. I'm new to Sharepoint, so if this is obvious, please point me in the right direction.
Whenever I attempt to log in with a bad account or password, I get the very friendly (and correct) error message,
The server could not sign you in. Make
sure your user name and password are
correct, and then try again.
... which implies that Sharepoint is able to communicate with AD. If I log in with a valid account, I get a page that says:
alt text http://img63.imageshack.us/img63/6053/sharepointerror.png
(I added the grey bar to cover up the login name)
Any suggestions? The account I'm logging in with is an administrator and has been granted full control in central administration.
Also, interesting note: If I click the "sign in as a different user" link, and attempt to sign in using with the same credentials I just used, the site just redirects back to the login page, with no error or status message. If I then manually enter the site url, it again shows the "Error: Access Denied" page. Argh.
Go to site action of the actual site and add user in the format of
:loginid
It should resolve and show it underlined then try login in back to application that should fix it.
Your AD connection is working fine just need to add to sharepoint users list
yourprovider:userid
Yourprovider name is the name you gave to the user provider in web config
And you can add this user from parent site that is windows protected and you have all
I suppose it's sharepoint site security issue.
I'm getting the same error when trying to enter Site Settings page with a user that has a lack of permissions.
If you have at least one user that can access the Site Settings page, I suggest you to go to Site Actions/Site Settings/Users and Permissions/People and grops then click New button and add a user from AD to an appropriate group, eg. Team Site Members.
You have made connection with Ad and its working fine. So that you got error, when you try to login with invalid user id.
But you have missed one step in above scenario.
You need to give the permission for all AD users in your SharePoint site. The better way is to create a user group in AD (it may already there) which included all the users and add this user group in your SharePoint site with read permission.

Resources