1 Reply Latest reply on Jan 31, 2011 7:40 AM by Boleslaw Dawidowicz

    How can I set the LDAP credentials programmatically

    Andre Winkler Newbie

      I configured the ldap idm for the user and role configuration. I can set the provider url and administrator credentials as options in the picketlink-idm-ldap-config.xml:

       

      But how can I set this options programmatically in the portal extension and read this properties from an own configuration file?

       

      <options>
                <option>
                  <name>providerURL</name>
                  <value>ldap://localhost:1389</value>
                </option>
                <option>
                  <name>adminDN</name>
                  <value>cn=Directory Manager</value>
                </option>
                <option>
                  <name>adminPassword</name>
                  <value>welcome</value>
                </option>
                <option>
                  <name>searchTimeLimit</name>
                  <value>10000</value>
                </option>
              </options>

      <options>

                <option>

                  <name>providerURL</name>

                  <value>ldap://localhost:1389</value>

                </option>

                <option>

                  <name>adminDN</name>

                  <value>cn=Directory Manager</value>

                </option>

                <option>

                  <name>adminPassword</name>

                  <value>password</value>

                </option>

              </options>