[mitreid-connect] ldap-openid-connect-server - Empty preferredUsername

IVAN MAURICIO MONTILLA FIGUEROA ivanmauricio.montillafigueroa.ext at telefonica.com
Thu Aug 3 02:39:00 EDT 2017


Hello,

I already solved it. LDAP authentication data are necessary in the LdapContextSource, not in the security:ldap-server

<security:ldap-server url="${ldap.url}" />
....
<bean id="contextSource" class="org.springframework.ldap.core.support.LdapContextSource">
    <property name="url" value="${ldap.url}" />
    <property name="base" value="${ldap.base}" />
    <property name="userDn" value="${ldap.user}" />
    <property name="password" value="${ldap.password}" />
</bean>

Perhaps, an update in the ldap-server-overlay/src/main/webapp/WEB-INF/user-context.xml file on Github would be useful.

Regards,

Mauricio

From: Justin Richer [mailto:jricher at mit.edu]
Sent: miércoles, 02 de agosto de 2017 7:58 PM
To: IVAN MAURICIO MONTILLA FIGUEROA <ivanmauricio.montillafigueroa.ext at telefonica.com>; mitreid-connect at mit.edu
Subject: Re: [mitreid-connect] ldap-openid-connect-server - Empty preferredUsername

The UserInfo isn't being loaded from the repository, which in your case is LDAP. You should look at the LDAP adapter code to make sure it's mapping things appropriately for your server. Also you'll want to look at the configuration in user-context.xml to make sure it's pointing to the right server with the right searches.

Please note: The LDAP server project isn't really supported out of the box but is more of an example extension project. Best of luck,
  -- Justin
On 7/27/2017 8:23 AM, IVAN MAURICIO MONTILLA FIGUEROA wrote:
Hello,

I cloned the master branch of https://github.com/mitreid-connect/ldap-openid-connect-server

I just changed <security:ldap-server url="${ldap.server}" /> to <security:ldap-server url="${ldap.server}" manager-password="${ldap.server.user}" manager-dn="${ldap.server.password}" />

The authentication process is working fine  but the preferredUsername is empty - ui.setPreferredUsername(attr.get("uid").get().toString());

[cid:image001.png at 01D30C32.3CEADF40]

User profile is not showing anything  /ldap-openid-connect-server/manage/user/profile

[cid:image002.png at 01D30C32.3CEADF40]

Any advice? Am I missing something?

Regards,

Mauricio


________________________________

Este mensaje y sus adjuntos se dirigen exclusivamente a su destinatario, puede contener información privilegiada o confidencial y es para uso exclusivo de la persona o entidad de destino. Si no es usted. el destinatario indicado, queda notificado de que la lectura, utilización, divulgación y/o copia sin autorización puede estar prohibida en virtud de la legislación vigente. Si ha recibido este mensaje por error, le rogamos que nos lo comunique inmediatamente por esta misma vía y proceda a su destrucción.

The information contained in this transmission is privileged and confidential information intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this transmission in error, do not read it. Please immediately reply to the sender that you have received this communication in error and then delete it.

Esta mensagem e seus anexos se dirigem exclusivamente ao seu destinatário, pode conter informação privilegiada ou confidencial e é para uso exclusivo da pessoa ou entidade de destino. Se não é vossa senhoria o destinatário indicado, fica notificado de que a leitura, utilização, divulgação e/ou cópia sem autorização pode estar proibida em virtude da legislação vigente. Se recebeu esta mensagem por erro, rogamos-lhe que nos o comunique imediatamente por esta mesma via e proceda a sua destruição




_______________________________________________

mitreid-connect mailing list

mitreid-connect at mit.edu<mailto:mitreid-connect at mit.edu>

http://mailman.mit.edu/mailman/listinfo/mitreid-connect


________________________________

Este mensaje y sus adjuntos se dirigen exclusivamente a su destinatario, puede contener información privilegiada o confidencial y es para uso exclusivo de la persona o entidad de destino. Si no es usted. el destinatario indicado, queda notificado de que la lectura, utilización, divulgación y/o copia sin autorización puede estar prohibida en virtud de la legislación vigente. Si ha recibido este mensaje por error, le rogamos que nos lo comunique inmediatamente por esta misma vía y proceda a su destrucción.

The information contained in this transmission is privileged and confidential information intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this transmission in error, do not read it. Please immediately reply to the sender that you have received this communication in error and then delete it.

Esta mensagem e seus anexos se dirigem exclusivamente ao seu destinatário, pode conter informação privilegiada ou confidencial e é para uso exclusivo da pessoa ou entidade de destino. Se não é vossa senhoria o destinatário indicado, fica notificado de que a leitura, utilização, divulgação e/ou cópia sem autorização pode estar proibida em virtude da legislação vigente. Se recebeu esta mensagem por erro, rogamos-lhe que nos o comunique imediatamente por esta mesma via e proceda a sua destruição
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/mitreid-connect/attachments/20170803/273f7dfe/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 3980 bytes
Desc: image001.png
Url : http://mailman.mit.edu/pipermail/mitreid-connect/attachments/20170803/273f7dfe/attachment-0002.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 28339 bytes
Desc: image002.png
Url : http://mailman.mit.edu/pipermail/mitreid-connect/attachments/20170803/273f7dfe/attachment-0003.png


More information about the mitreid-connect mailing list