RE: Regular role assigned to Non LDAP users also ? - liferay DXP

Srinivas P, modified 2 Years ago. Junior Member Posts: 72 Join Date: 2/17/14 Recent Posts

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.

Non LDAP users should not get Regular Roles which are configured in Default User Associations.

How to resolve this issue ?

 

Can any one help me out.

thumbnail
Christoph Rabel, modified 7 Years ago. Liferay Legend Posts: 1555 Join Date: 9/24/09 Recent Posts

The configuration you are using there always affects all users, so it is not what you want to use.

Do you import groups? If so, you could give your users a group in Liferay and make the group a member of a role.

Chanakya P, modified 2 Years ago. Junior Member Posts: 72 Join Date: 2/17/14 Recent Posts

Hi Rabel,

 

Thanks for your reply.

 

My LDAP servers stores user mebership information only not group membership infomation.
So I selected Import method is user.

 

As per your statement, The configuration affects to all users.

SO Is there any way to customize the LDAP import functionality in liferay DXP.

How to add regular role to LDAP users programmatically while importing LDAP users to liferay.

 

Can you please suggest, How to implement?