LDAP USER in web config file

Posted on 2011-04-21
Last Modified: 2012-05-11
Hi, a pice of work has hit my desk for sharepoint. but looking in to the web config file of teh SITE
I see a username and password in clear text.
developer tells me it needs these to question AD.

but surley there must be a way with out putting the username and password in?  attatched is the relevant code  I have removed the values for username and password.

but  it works when you eneter a username and password and doesnt work when you dont :-)

what options do i have?


IIS6 sharepoint 2007   bespoke apps

            <setting name="PublicContactLog" serializeAs="String">
            <setting name="ContactLog" serializeAs="String">
             <setting name="ActionsADAccessGroupName" serializeAs="String">
            <setting name="LDAPConnectionString" serializeAs="String">
            <setting name="LDAPUserFilter" serializeAs="String">
            <setting name="LDAPConnectionUsername" serializeAs="String">
                <value />
            <setting name="LDAPConnectionPassword" serializeAs="String">
                <value />
            <setting name="NamePrefix" serializeAs="String">

Open in new window

Question by:mhamer
    LVL 14

    Accepted Solution

    I am afraid that has nothing to do with SharePoint in particular .

    This is custom code and the developer creating this , requires this type of configuration.

    this can be done in so many different ways. ,
    the simplest would to put the user name and password (at least with static key key encryption)
    another way would be to save the information in a admin type list items (with or without encryption)

    Best of luck.

    Author Closing Comment

    I tried encryption, but failed.  Works on other places we have to use passwords but here no joy, back to developer.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Microsoft SharePoint Foundation 2010 and Microsoft SharePoint Server 2010 do not offer the option to configure the location of the SharePoint diagnostic trace log files during installation.  This can, however, be configured through Central Administr…
    SharePoint Designer 2010 has tools and commands to do everything that can be done with web parts in the browser, and then some – except uploading a web part straight into a page that is edited in SPD. So, can it be done? Scenario For a recent pr…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now