Foros de discusión

LDAP - import custom user attributes not working (Liferay 6.2CE))

Bruno Carvalho, modificado hace 9 años.

LDAP - import custom user attributes not working (Liferay 6.2CE))

New Member Mensajes: 6 Fecha de incorporación: 1/08/14 Mensajes recientes
Hi everyone,

I'm having a problem importing custom attributes from AD in CE.

related configurations in ext.properties:
------------------------------------------------
ldap.import.method=user
ldap.auth.search.filter=(sAMAccountName=@screen_name@)
ldap.import.user.search.filter=(objectCategory=Person)

ldap.user.mappings=screenName=sAMAccountName\npassword=unicodePwd\nemailAddress=userPrincipalName\nfirstName=givenName\nlastName=sn\njobTitle=title\ngroup=memberOf

ldap.user.custom.mappings=LRCustomAttr1=LDAPAttr1\nLRCustomAttr2=LDAPAttr2

ldap.user.impl=com.liferay.portal.security.ldap.LDAPUser

ldap.import.group.search.filter=(objectCategory=group)
ldap.group.mappings=description=description\ngroupName=cn\nuser=member
------------------------------------------------

Also tried switching the mapping order to LDAPAttr=LRCustomAttr with no success.

Watching portal DEBUG during LDAP import I can see that the default ATTRs are beeing mapped and imported correctly but the custom expandoAttrs are not beeing set... ??

Don't no if this is important but ldap.attrs.transformer.impl is set to com.liferay.portal.security.ldap.DefaultAttributesTransformer

I'm freaking out with this... som help please!

Thanks