Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-4818

Can not configure username and password of logging in the server through ldap

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2
    • Fix Version/s: 2.2
    • Component/s: security, Tomcat
    • Security Level: public (Regular issues)
    • Labels:
      None
    • Environment:

      xp:sp2
      jdk 1.6

      Description

      1.Setup Apache Directory Server
      2.Copy geronimo-real.ldif to your ldap server and run command to import your ldap entries:
      $ ldapmodify -h [your_ldap_server_ip] -p 10389 -D "uid=admin,ou=system" -w secret -a -f [your_geronimo-realm_path]

      aslo you can use other 3-rd party directory client tool such as Apache directory studio to import this ldap file.
      3.Customize ldap server ip : <log:option name="connectionURL">ldap://<your host ip>:10389</log:option> in ldap.xml and copy it to your wasce server , and go to wasce server bin directory and run command:
      deploy.sh/bat --user system --password manager deploy <deployment_plan_home>/ldap.xml
      also you can deploy it via admin console "deploy new"->"achive plan" :ldap.xml
      4.Shutdown wasce server, and modify $your_geronimo_server/var/config/config.xml as below:
      change <module name="org.apache.geronimo.framework/server-security-config/2.1.4/car"/> to
      <module name="org.apache.geronimo.framework/server-security-config/2.1.4/car">
      <gbean name="geronimo-admin" load="false"/>
      </module>
      5.Restart Geronimo server, and login it with username: test, password: manager.
      5.Restart geronimo server, and login it with username: test, password: manager.

        Attachments

        1. geronimo-realm.ldif
          1 kB
          Ben Liang
        2. ldap.xml
          2 kB
          Ben Liang

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ben.liang Ben Liang
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: