Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Need to add users to an organization while importing from AD LDAP
Hi All,
Am using Liferay 6.1.2-ce-ga3 with Liferay-plugins-sdk-6.1.1.
I have written a post login hook and what it will do is,if an user belongs to an organization,it will redirect them to that organization's private page.And dockbar was disabled to them.
So whenever a normal user belongs to an organization logs in they will be redirected to their organization's private page.It contains some News and Videos.
And I have changed the Authentication type as Microsoft AD LDAP.
My doubt here is,whenever a new AD user logs into liferay,they are getting the dockbar.
I have created my theme to show the dockbar only to the liferay administrator and organization administrator.
Even this new user not belongs any of the above category,he is seeing the dockbar..?
Below is the code am using in portal-normal.vm to show the dcokbar,
[indent]How can I handle this and hiding dockbar to them at their first login?[/indent]
And one more query,
Am using my liferay environment with eclipse juno.
Since am using AD LDAP authentication,I do not want the Terms of use,Password change password reminder queries.
For this what I did is,created a portal-ext.properties with the following content,
and put it in the \liferay-portal-6.1.2-ce-ga3\tomcat-7.0.40\webapps\ROOT\WEB-INF\classes\.
And restarted the server.
After that only terms of use page removed.
Rest of the options Password change and password reminder queries properties changes are not reflected and still new users are getting those pages.I need to remove these options too.
I spent more time with this,but no use.
Please help me to solve this.
Thanks in advance
Chitra
Am using Liferay 6.1.2-ce-ga3 with Liferay-plugins-sdk-6.1.1.
I have written a post login hook and what it will do is,if an user belongs to an organization,it will redirect them to that organization's private page.And dockbar was disabled to them.
So whenever a normal user belongs to an organization logs in they will be redirected to their organization's private page.It contains some News and Videos.
And I have changed the Authentication type as Microsoft AD LDAP.
My doubt here is,whenever a new AD user logs into liferay,they are getting the dockbar.
I have created my theme to show the dockbar only to the liferay administrator and organization administrator.
Even this new user not belongs any of the above category,he is seeing the dockbar..?
Below is the code am using in portal-normal.vm to show the dcokbar,
#if (($permissionChecker.isOmniadmin())|| $permissionChecker.isCommunityAdmin($themeDisplay.getScopeGroupId()))
#dockbar()
#end
[indent]How can I handle this and hiding dockbar to them at their first login?[/indent]
And one more query,
Am using my liferay environment with eclipse juno.
Since am using AD LDAP authentication,I do not want the Terms of use,Password change password reminder queries.
For this what I did is,created a portal-ext.properties with the following content,
terms.of.use.required=false
passwords.default.policy.change.required=false
users.reminder.queries.enabled=false
users.reminder.queries.custom.question.enabled=false
and put it in the \liferay-portal-6.1.2-ce-ga3\tomcat-7.0.40\webapps\ROOT\WEB-INF\classes\.
And restarted the server.
After that only terms of use page removed.
Rest of the options Password change and password reminder queries properties changes are not reflected and still new users are getting those pages.I need to remove these options too.
I spent more time with this,but no use.
Please help me to solve this.
Thanks in advance
Chitra
One update friends,
Dockbar issue has been solved and need solution for disabling the Change Password,Password reminder queries options while new AD user logging in.
Thanks
Chitra
Dockbar issue has been solved and need solution for disabling the Change Password,Password reminder queries options while new AD user logging in.
Thanks
Chitra
Chitra Thambirajan:
One update friends,
Dockbar issue has been solved and need solution for disabling the Change Password,Password reminder queries options while new AD user logging in.
Thanks
Chitra
Issue solved.
This did the magic,Go to Control Panel -> Password Policies -> Default Password Policies and uncheck the Change Required option.
Now new users are not getting the Change Password option at the very first time.
Password reminder query also skipped with the help of portal-ext.properties file changes.
I read some where that what are all the setting is in Control panel will overwrite the portal.properties file and tried this option.
Thanks
Chitra
Again same question I think,
Is there a provision to add a new user to an organization when they are logging in at the first time ..?
They should not be landed in the Liferay's private page by default.
The First time itself they need to login my Organization's page.
Any help would be appreciated.
Thanks in advance
Chitra
Is there a provision to add a new user to an organization when they are logging in at the first time ..?
They should not be landed in the Liferay's private page by default.
The First time itself they need to login my Organization's page.
Any help would be appreciated.
Thanks in advance
Chitra
Hi,
To add user to site (not organization) for first time, you can do this -
Control Panel > Portal Setting > Users > Default User Association
Enter Site name in site section.
To add user to site (not organization) for first time, you can do this -
Control Panel > Portal Setting > Users > Default User Association
Enter Site name in site section.
Vipin Bardia:
Hi,
To add user to site (not organization) for first time, you can do this -
Control Panel > Portal Setting > Users > Default User Association
Enter Site name in site section.
Hi Vipin,
Thank you for the response,so it seems the users must be added with the Site before then only this option will work..,am i right...?
If so,my post login hook will do the same process..If the logging in user belongs to an organization,it will automatically redirect them to their site's page.
My scenarios is,I have changed my authentication type to AD LDAP.
Lets assume my liferay user table does not contain any user.Since I have changed my login type as AD LDAP,it will allow all users from my LDAP.
So everyone is new to liferay.
When they are logging in at the first time,I need to redirect them to a site's private page.
So am looking for an option to add the users to a site automatically while they are logging in at the first time..
I think am not confusing you..
Thanks
Chitra
Hi
Its work.
Thanks chitra
Its work.
Thanks chitra
Hi Yogesh,
Which one tried and it is working..?
Thanks
Chitra
Which one tried and it is working..?
Thanks
Chitra
Hi Chitra:
Did you solve this ? And how to do? thanks very much.
Did you solve this ? And how to do? thanks very much.
Chitra Thambirajan:
Chitra Thambirajan:One update friends,
Dockbar issue has been solved and need solution for disabling the Change Password,Password reminder queries options while new AD user logging in.
Thanks
Chitra
Issue solved.
This did the magic,Go to Control Panel -> Password Policies -> Default Password Policies and uncheck the Change Required option.
Now new users are not getting the Change Password option at the very first time.
Password reminder query also skipped with the help of portal-ext.properties file changes.
I read some where that what are all the setting is in Control panel will overwrite the portal.properties file and tried this option.
Thanks
Chitra
this one its work for me.......
Hi All,
Regular Roles are assigned to Non LDAP users also.
How to restrict this one?
I Configured Like below:
Instance Settings => LDAP => Default User Associations => Regular Roles
Role Name is: APM
Above Role is assigned successfully when LDAP user logging into portal first time.
but
When Non LDAP users logging into portal those non LDAP users also getting APM role.
I don't want assign APM role to Non LDAP users.
How to resolve this issue.
Can any one help me out.
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™