Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
lidio pinheiro
LDAP Autethicate
September 8, 2011 9:07 AM
Answer

lidio pinheiro

Rank: New Member

Posts: 3

Join Date: February 24, 2011

Recent Posts

Hello experts, i need help with LDAP x Liferay , bellow is my configuration about LDAP in portal-ext.properties.
What happen is, a user that aren´t in any group has acess to the portal , what will shouldn´t happen.
I´m using Liferay 6.0.5 with JBoss 5.1

## SSO
## Common LDAP Properties
ldap.auth.enabled=true
ldap.auth.required=true
ldap.auth.method=bind
ldap.import.enabled=true
ldap.export.enabled=false
ldap.import.on.startup=true
ldap.import.interval=1
ldap.import.method=group
ldap.import.create.role.per.group=true
ldap.password.policy.enabled=false
ldap.server.ids=1
ldap.referral=follow

## LDAP Server Settings
ldap.base.dn.1=DC=internal,DC=timbrasil,DC=com,DC=br
ldap.security.principal.1=portalrhldap
ldap.security.credentials.1=devrh#001
ldap.auth.search.filter.1=(&(|(memberOf=CN=AC_Convenios,OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br)(memberOf=CN=AC_Documentos_Normativos,OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br)(memberOf=CN=AC_MS_Logistica,OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br)(memberOf=CN=AC_MS_NIIC,OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br)(memberOf=CN=AC_MS_Portal_Trade,OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br)(memberOf=CN=AC_MS_Portfolio,OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br)(memberOf=CN=AC_MS_Qualidades_Certificacoes,OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br)(memberOf=CN=AC_MS_Suprimentos,OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br)(memberOf=CN=AC_NL_CO,OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br)(memberOf=CN=AC_NL_DF,OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br)(memberOf=CN=AC_NL_MINAS,OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br)(memberOf=CN=AC_NL_NE,OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br)(memberOf=CN=AC_NL_NO,OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br)(memberOf=CN=AC_NL_RIO,OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br)(memberOf=CN=AC_NL_SAO_PAULO,OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br)(memberOf=CN=AC_NL_SUL,OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br)(memberOf=CN=AC_Organograma,OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br)(memberOf=CN=Administradores_Conteudo_IRH,OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br)(memberOf=CN=Administradores_TI_IRH,OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br)(memberOf=CN=US_MS_Logistica,OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br)(memberOf=CN=US_MS_NIIC,OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br)(memberOf=CN=US_MS_Portal_Trade,OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br)(memberOf=CN=US_MS_Portfolio,OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br)(memberOf=CN=US_MS_Qualidades_Certificacoes,OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br)(memberOf=CN=US_MS_Suprimentos,OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br)(memberOf=CN=Usuarios_IRH,OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br))(sAMAccountName=@screen_name@)(!(useraccountcontrol:1.2.840.113556.1.4.803:=2)))
ldap.user.default.object.classes.1=top,person,inetOrgPerson,organizationalPerson
ldap.user.mappings.1=screenName=sAMAccountName\npassword=givenName\nemailAddress=mail\nfirstName=givenName\nlastName=sn\njobTitle=title\ngroup=memberof
ldap.group.mappings.1=groupName=cn\ndescription=description\nuser=member
ldap.import.user.search.filter.1=(&(|(memberOf=CN=AC_Convenios,OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br)(memberOf=CN=AC_Documentos_Normativos,OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br)(memberOf=CN=AC_MS_Logistica,OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br)(memberOf=CN=AC_MS_NIIC,OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br)(memberOf=CN=AC_MS_Portal_Trade,OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br)(memberOf=CN=AC_MS_Portfolio,OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br)(memberOf=CN=AC_MS_Qualidades_Certificacoes,OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br)(memberOf=CN=AC_MS_Suprimentos,OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br)(memberOf=CN=AC_NL_CO,OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br)(memberOf=CN=AC_NL_DF,OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br)(memberOf=CN=AC_NL_MINAS,OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br)(memberOf=CN=AC_NL_NE,OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br)(memberOf=CN=AC_NL_NO,OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br)(memberOf=CN=AC_NL_RIO,OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br)(memberOf=CN=AC_NL_SAO_PAULO,OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br)(memberOf=CN=AC_NL_SUL,OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br)(memberOf=CN=AC_Organograma,OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br)(memberOf=CN=Administradores_Conteudo_IRH,OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br)(memberOf=CN=Administradores_TI_IRH,OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br)(memberOf=CN=US_MS_Logistica,OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br)(memberOf=CN=US_MS_NIIC,OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br)(memberOf=CN=US_MS_Portal_Trade,OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br)(memberOf=CN=US_MS_Portfolio,OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br)(memberOf=CN=US_MS_Qualidades_Certificacoes,OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br)(memberOf=CN=US_MS_Suprimentos,OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br)(memberOf=CN=Usuarios_IRH,OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br))(!(useraccountcontrol:1.2.840.113556.1.4.803:=2)))
ldap.import.group.search.filter.1=(&(objectCategory=group)(|(objectSid=S-1-5-21-1343024091-706699826-725345543-278250)(objectSid=S-1-5-21-1343024091-706699826-725345543-278249)(objectSid=S-1-5-21-1343024091-706699826-725345543-278251)(objectSid=S-1-5-21-1343024091-706699826-725345543-278252)(objectSid=S-1-5-21-1343024091-706699826-725345543-278253)(objectSid=S-1-5-21-1343024091-706699826-725345543-278254)(objectSid=S-1-5-21-1343024091-706699826-725345543-278255)(objectSid=S-1-5-21-1343024091-706699826-725345543-278256)(objectSid=S-1-5-21-1343024091-706699826-725345543-278257)(objectSid=S-1-5-21-1343024091-706699826-725345543-278258)(objectSid=S-1-5-21-1343024091-706699826-725345543-278259)(objectSid=S-1-5-21-1343024091-706699826-725345543-278260)(objectSid=S-1-5-21-1343024091-706699826-725345543-278261)(objectSid=S-1-5-21-1343024091-706699826-725345543-278262)(objectSid=S-1-5-21-1343024091-706699826-725345543-278263)(objectSid=S-1-5-21-1343024091-706699826-725345543-278264)(objectSid=S-1-5-21-1343024091-706699826-725345543-278248)(objectSid=S-1-5-21-1343024091-706699826-725345543-278707)(objectSid=S-1-5-21-1343024091-706699826-725345543-278706)(objectSid=S-1-5-21-1343024091-706699826-725345543-278265)(objectSid=S-1-5-21-1343024091-706699826-725345543-278266)(objectSid=S-1-5-21-1343024091-706699826-725345543-278267)(objectSid=S-1-5-21-1343024091-706699826-725345543-278268)(objectSid=S-1-5-21-1343024091-706699826-725345543-278269)(objectSid=S-1-5-21-1343024091-706699826-725345543-278270)(objectSid=S-1-5-21-1343024091-706699826-725345543-278708)))
ldap.users.dn.1=OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br
ldap.groups.dn.1=OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br
ldap.user.custom.mappings.1=Matricula=employeeID

Anyone knows whats happening?

Thanks in advance
lidio pinheiro
RE: LDAP Autethicate
September 13, 2011 12:49 PM
Answer

lidio pinheiro

Rank: New Member

Posts: 3

Join Date: February 24, 2011

Recent Posts

anyone can help-me? please.
Walter Christian Guardia Casas
RE: LDAP Autethicate
September 14, 2011 2:49 AM
Answer

Walter Christian Guardia Casas

Rank: Regular Member

Posts: 127

Join Date: May 5, 2010

Recent Posts

HI Lidio,

You can help yourself, you should install apache directory LDAP and apply your configuration, is easy to use. Another thing you could do is go to control panel and verify if that values are right, after you put that values in portal-ext.properties you can manage this configuration from control panel.

I hope this advice can you help.

Regards
lidio pinheiro
RE: LDAP Autethicate
September 14, 2011 1:36 PM
Answer

lidio pinheiro

Rank: New Member

Posts: 3

Join Date: February 24, 2011

Recent Posts

Helo Walter, thanks for you reply...

I´m using Apache Directory for purposes and my ( ldap.base.dn.1=DC=internal,DC=timbrasil,DC=com,DC=br) works fine in Liferay.

But if i try use this (ldap.base.dn.1=OU=IntraRH,OU=Desenvolvimento,OU=Liferay,OU=TIM Brasil,OU=Applications,DC=internal,DC=timbrasil,DC=com,DC=br) liferay don't work.

buuut this last base.dn in Apache Directory works fine.

I dont understand what happens in liferay. Why the last base.dn show here dont work in Lifery? could be my configurations in portal-ext.properties?

I´m very confuse.

tks