cancel
Showing results for 
Search instead for 
Did you mean: 

LDAP, tildes en el ldap-ad-authentication.properties

manu2097
Champ in-the-making
Champ in-the-making
Me pregunto si es posible apuntar a una rama del ldap donde un OU tiene tildes.

En el servidor si configuro el ldap-ad-authentication.properties, no tengo ningún problema en escribir con tildes, pero luego al arrancar Alfresco el log me dice que no encuentra la ruta, y el OU con la tilde se visualiza mal.

Ejemplo:

Caused by: javax.naming.NameNotFoundException: [LDAP: error code 32 - 0000208D: NameErr: DSID-031001CD, problem 2001 (NO_OBJECT), data 0, best match of:
        'OU=xx,DC=xx,DC=xx'
^@]; remaining name 'OU=Grupos,OU=Users,OU=xx,OU=xxíaxx,OU=xx,DC=xx,DC=xx'

¿Si es posible introducir tildes en el properties, supongo que habrá que escaparlas de alguna manera igual que se escapan los iguales \=?

Alfresco 3.2r.

Un saludo.
1 REPLY 1

manu2097
Champ in-the-making
Champ in-the-making
Solucionado.

El problema era el parseo de las variables del fichero ldap-authenticaction.properties al ldap-authentication-context.xml

Mi solución chapera es, abrir el ldap-authentication-context.xml y ponerle a pelo el valor de las variables userSearchBase groupSearchBase, en mi caso:

        <property name="groupSearchBase">
            <value>OU=Grupos,OU=Users,OU=xx,OU=xxíxx,OU=xx,DC=xx,DC=xx</value>
        </property>

        <property name="userSearchBase">
                <value>OU=Users,OU=xx,OU=xxíxx,OU=xx,DC=xx,DC=xx</value>
        </property>

La codificación del xml por defecto es utf8 así que no hay ningún problema.

Un saludo.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.