cancel
Showing results for 
Search instead for 
Did you mean: 

Configuring LDAP authentication

nicolas_duminil
Champ in-the-making
Champ in-the-making
Greetings,

Trying to configure LDAP authentication on Alfresco 2.9. The documentation says that the file alfresco/extensions/ldap-authentication-context.xml should be provided. This file has the following element:


                <!– The password for the user defined above –>
                <entry key="java.naming.security.credentials">
                    <value>secret</value>
                </entry>

This means that the user password has to be provided in the file, which is not possible. How could be the LDAP authentication configured without having to provide  the admin apssword in an XML file ?

Many thanks in advance.

Nicolas
4 REPLIES 4

nicolas_duminil
Champ in-the-making
Champ in-the-making
Sorry, could you be more precise, please ? Do you mean I can use this syntax:


                <!– The password for the user defined above –>
                <entry key="java.naming.security.credentials">
                    <value>{MD5}JDHS55EHHD77464… </value>
                </entry>

And how do I use ldap.conf file ? Do you mean I'm cutting/paste from ldap.conf in this file ?

Many thanks in advance.

Nicolas

nicolas_duminil
Champ in-the-making
Champ in-the-making
Not able to post any reply: HTTP 404

nicolas_duminil
Champ in-the-making
Champ in-the-making
Belmeki,

You're explaining how to configure the ldap.conf file for an Apache Directory Server, which may be interesting but this was not my question. My questions is: how to configure Alfresco in order to avoid using user and passwords in the alfresco/extensions/ldap-authentication-context.xml file?

You replied saying:

You can use the values in the ldap.conf file (admin user , and encrypted password looking like : {MD5}JDHS55EHHD77464… ) .

I came back to you asking how to use the ldap.conf file in order to configure the alfresco/extensions/ldap-authentication-context.xm file ?

So, I'm repeating my question: what are the steps to configure the alfresco/extensions/ldap-authentication-context.xm file such that to use LDAP (Active Directory) authentication and defines users and groups, but without having to write in this file any authentication credentials in clear.

Hoping that this time I was clear. Many tyhanks in advance.

Nicolas

nicolas_duminil
Champ in-the-making
Champ in-the-making
Belmeki,

Thanks for you reply but, as said from the beggining, the option consisting of putting the user name and password in a text file (the file alfresco/extensions/ldap-authentication-context.xml) doesn't exist. You have tried to explain something about ldap.conf, MD5, etc. So, as far as you know, does it exist a way to configure LDAP (ActiveDirectory) authentication with Alfresco without having to put in the alfresco/extensions/ldap-authentication-context.xml file any user credentials ? If you don't know, please don't feel obligated to reply .

Kind regards,

Nicolas