14 Replies Latest reply on Apr 17, 2005 11:28 AM by soussou qsfsqf

    Ldap ressource configuration

    soussou qsfsqf Newbie

      Hi



      From of the my j2ee application, I would like to get via jndi the ldap ressources (server name, IP address, the port, login, password, ...).
      I followed the recommendations of JBoss documentation :

      1- I have create a mbean into the file "jboss-service.xml" :

      <!-Bind a remote LDAP server ->

      external/annuaire
      <attribute-name="Properties">annuaire.properties
      <attribute-name="InitialContext">javax.naming.ldap.InitialLdapContext
      <attribute-name="RemoteAccess">true


      Where "annuaire.properties" is a properties file contains the LDAP ressources :

      java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory
      java.naming.provider.url=ldap://192.10.10.12:636
      java.naming.security.principal=CN=Users,DC=local,DC=ot
      java.naming.security.authentication=simple
      java.naming.security.credentials=lune
      java.naming.security.protocol=ssl

      when I start Jboss, the Bean it is well created and visible into the admin console with a state "Started".
      But when I would like to display the jndi with JNDIView, the page has an infinite size because the JNDI input "external/annuaire" it even contains a JNDI input "external/annuaire" which it even contains a JNDI input, etc... (a loop) ?

      If you have any information for this problem, please help-me



      Regards

        • 1. Re: Ldap ressource configuration
          soussou qsfsqf Newbie

          Hi



          From my j2ee application, I would like to get via jndi the ldap ressources (server name, IP address, the port, login, password, ...).
          I followed the recommendations of JBoss documentation :

          1- I have create a mbean into the file "jboss-service.xml" :

          <!-Bind a remote LDAP server ->
          <mbean code="org.jboss.naming.ExternalContext"name="jboss.jndi:service=ExternalContext.jndiName=external/annuaire">

          <attribute-name="JnduName">externalannuaire
          <attribute-name="Properties">annuaire.properties
          <attribute-name="InitialContext">javax.naming.ldap.InitialLdapContext
          <attribute-name="RemoteAccess">true


          Where "annuaire.properties" is a properties file contains the LDAP ressources :

          java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory
          java.naming.provider.url=ldap://192.10.10.12:636
          java.naming.security.principal=CN=Users,DC=local,DC=ot
          java.naming.security.authentication=simple
          java.naming.security.credentials=lune
          java.naming.security.protocol=ssl

          when I start Jboss, the Bean it is well created and visible into the admin console with a state "Started".
          But when I would like to display the jndi with JNDIView, the page has an infinite size because the JNDI input "external/annuaire" it even contains a JNDI input "external/annuaire" which it even contains a JNDI input, etc... (a loop) ?

          If you have any information for this problem, please help-me



          Regards

          • 2. Re: Ldap ressource configuration
            soussou qsfsqf Newbie

            Hi



            From my j2ee application, I would like to get via jndi the ldap ressources (server name, IP address, the port, login, password, ...).
            I followed the recommendations of JBoss documentation :

            1- I have create a mbean into the file "jboss-service.xml" :

            <!-Bind a remote LDAP server ->
            <mbean code="org.jboss.naming.ExternalContext"name="jboss.jndi:service=ExternalContext.jndiName=external/annuaire">

            <attribute-name="JndiName">externalannuaire
            <attribute-name="Properties">annuaire.properties
            <attribute-name="InitialContext">javax.naming.ldap.InitialLdapContext
            <attribute-name="RemoteAccess">true


            (I have I removed the character "/").

            Where "annuaire.properties" is a properties file contains the LDAP ressources :

            java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory
            java.naming.provider.url=ldap://192.10.10.12:636
            java.naming.security.principal=CN=Users,DC=local,DC=ot
            java.naming.security.authentication=simple
            java.naming.security.credentials=lune
            java.naming.security.protocol=ssl

            when I start Jboss, the Bean it is well created and visible into the admin console with a state "Started".
            But when I would like to display the jndi with JNDIView, the page has an infinite size because the JNDI input "external/annuaire" it even contains a JNDI input "external/annuaire" which it even contains a JNDI input, etc... (a loop) ?

            If you have any information for this problem, please help-me



            Regards

            • 3. Re: Ldap ressource configuration
              soussou qsfsqf Newbie

               

              "soussou" wrote:
              Hi



              From my j2ee application, I would like to get via jndi the ldap ressources (server name, IP address, the port, login, password, ...).
              I followed the recommendations of JBoss documentation :

              1- I have create a mbean into the file "jboss-service.xml" :

              <!-Bind a remote LDAP server ->
              <mbean code="org.jboss.naming.ExternalContext"name="jboss.jndi:service=ExternalContext.jndiName=external/annuaire">

              <attribute-name="JndiName">externalannuaire </attribute>
              <attribute-name="Properties">annuaire.properties </attribute>
              <attribute-name="InitialContext">javax.naming.ldap.InitialLdapContext </attribute>
              <attribute-name="RemoteAccess">true </attribute>
              </mbean>


              Where "annuaire.properties" is a properties file contains the LDAP ressources :

              java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory
              java.naming.provider.url=ldap://192.10.10.12:636
              java.naming.security.principal=CN=Users,DC=local,DC=ot
              java.naming.security.authentication=simple
              java.naming.security.credentials=lune
              java.naming.security.protocol=ssl

              when I start Jboss, the Bean it is well created and visible into the admin console with a state "Started".
              But when I would like to display the jndi with JNDIView, the page has an infinite size because the JNDI input "external/annuaire" it even contains a JNDI input "external/annuaire" which it even contains a JNDI input, etc... (a loop) ?

              If you have any information for this problem, please help-me



              Regards


              • 4. Re: Ldap ressource configuration
                soussou qsfsqf Newbie

                 

                "soussou" wrote:
                "soussou" wrote:
                Hi



                From my j2ee application, I would like to get via jndi the ldap ressources (server name, IP address, the port, login, password, ...).
                I followed the recommendations of JBoss documentation :

                1- I have create a mbean into the file "jboss-service.xml" :

                <!-Bind a remote LDAP server ->
                <mbean code="org.jboss.naming.ExternalContext"name="jboss.jndi:service=ExternalContext.jndiName=external/annuaire">

                <attribute-name="JndiName">external/annuaire
                </attribute>
                <attribute-name="Properties">annuaire.properties
                </attribute>
                <attribute-name="InitialContext">javax.naming.ldap.InitialLdapContext </attribute>
                <attribute-name="RemoteAccess">true
                </attribute>
                </mbean>


                Where "annuaire.properties" is a properties file contains the LDAP ressources :

                java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory
                java.naming.provider.url=ldap://192.10.10.12:636
                java.naming.security.principal=CN=Users,DC=local,DC=ot
                java.naming.security.authentication=simple
                java.naming.security.credentials=lune
                java.naming.security.protocol=ssl

                when I start Jboss, the Bean it is well created and visible into the admin console with a state "Started".
                But when I would like to display the jndi with JNDIView, the page has an infinite size because the JNDI input "external/annuaire" it even contains a JNDI input "external/annuaire" which it even contains a JNDI input, etc... (a loop) ?

                If you have any information for this problem, please help-me



                Regards


                • 5. Re: Ldap ressource configuration
                  soussou qsfsqf Newbie

                   

                  "soussou" wrote:
                  "soussou" wrote:
                  "soussou" wrote:
                  Hi



                  From my j2ee application, I would like to get via jndi the ldap ressources (server name, IP address, the port, login, password, ...).
                  I followed the recommendations of JBoss documentation :

                  1- I have create a mbean into the file "jboss-service.xml" :

                  <!-Bind a remote LDAP server ->
                  <mbean code="org.jboss.naming.ExternalContext"name="jboss.jndi:service=ExternalContext.jndiName=external/annuaire">
                  <attribute-name="JndiName">external/annuaire
                  attribute
                  <attribute-name="Properties">annuaire.properties
                  </attribute>
                  <attribute-name="InitialContext">javax.naming.ldap.InitialLdapContext </attribute>
                  <attribute-name="RemoteAccess">true
                  </attribute>
                  </mbean>


                  Where "annuaire.properties" is a properties file contains the LDAP ressources :

                  java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory
                  java.naming.provider.url=ldap://192.10.10.12:636
                  java.naming.security.principal=CN=Users,DC=local,DC=ot
                  java.naming.security.authentication=simple
                  java.naming.security.credentials=lune
                  java.naming.security.protocol=ssl

                  when I start Jboss, the Bean it is well created and visible into the admin console with a state "Started".
                  But when I would like to display the jndi with JNDIView, the page has an infinite size because the JNDI input "external/annuaire" it even contains a JNDI input "external/annuaire" which it even contains a JNDI input, etc... (a loop) ?

                  If you have any information for this problem, please help-me



                  Regards


                  • 6. Re: Ldap ressource configuration
                    soussou qsfsqf Newbie

                    Hi



                    From my j2ee application, I would like to get via jndi the ldap ressources (server name, IP address, the port, login, password, ...).
                    I followed the recommendations of JBoss documentation :

                    1- I have create a mbean into the file "jboss-service.xml" :

                    <!-Bind a remote LDAP server ->
                    <mbean code="org.jboss.naming.ExternalContext"name="jboss.jndi:service=ExternalContext.jndiName=external/annuaire">
                    <attribute-name="JndiName">external/annuaire

                    <attribute-name="Properties">annuaire.properties

                    <attribute-name="InitialContext">javax.naming.ldap.InitialLdapContext
                    <attribute-name="RemoteAccess">true




                    Where "annuaire.properties" is a properties file contains the LDAP ressources :

                    java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory
                    java.naming.provider.url=ldap://192.10.10.12:636
                    java.naming.security.principal=CN=Users,DC=local,DC=ot
                    java.naming.security.authentication=simple
                    java.naming.security.credentials=lune
                    java.naming.security.protocol=ssl

                    when I start Jboss, the Bean it is well created and visible into the admin console with a state "Started".
                    But when I would like to display the jndi with JNDIView, the page has an infinite size because the JNDI input "external/annuaire" it even contains a JNDI input "external/annuaire" which it even contains a JNDI input, etc... (a loop) ?

                    If you have any information for this problem, please help-me



                    Regards

                    • 7. Re: Ldap ressource configuration
                      soussou qsfsqf Newbie

                      Hi



                      From of the my j2ee application, I would like to get via jndi the ldap ressources (server name, IP address, the port, login, password, ...).
                      I followed the recommendations of JBoss documentation :

                      1- I have create a mbean into the file "jboss-service.xml" :

                      <!-Bind a remote LDAP server ->
                      <mbean code="org.jboss.naming.ExternalContext"name="jboss.jndi:service=ExternalContext.jndiName=external/annuaire">
                      external/annuaire

                      <attribute-name="Properties">annuaire.properties
                      <attribute-name="InitialContext">javax.naming.ldap.InitialLdapContext
                      <attribute-name="RemoteAccess">true


                      Where "annuaire.properties" is a properties file contains the LDAP ressources :

                      java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory
                      java.naming.provider.url=ldap://192.10.10.12:636
                      java.naming.security.principal=CN=Users,DC=local,DC=ot
                      java.naming.security.authentication=simple
                      java.naming.security.credentials=lune
                      java.naming.security.protocol=ssl

                      when I start Jboss, the Bean it is well created and visible into the admin console with a state "Started".
                      But when I would like to display the jndi with JNDIView, the page has an infinite size because the JNDI input "external/annuaire" it even contains a JNDI input "external/annuaire" which it even contains a JNDI input, etc... (a loop) ?

                      If you have any information for this problem, please help-me



                      Regards

                      • 8. Re: Ldap ressource configuration
                        soussou qsfsqf Newbie

                         

                        "soussou" wrote:
                        Hi



                        From of the my j2ee application, I would like to get via jndi the ldap ressources (server name, IP address, the port, login, password, ...).
                        I followed the recommendations of JBoss documentation :

                        1- I have create a mbean into the file "jboss-service.xml" :

                        <!-Bind a remote LDAP server ->
                        <mbean code="org.jboss.naming.ExternalContext"name="jboss.jndi:service=ExternalContext.jndiName=external/annuaire">
                        <attribute name="JndiName">external/annuaire<attribute>
                        <attribute-name="Properties">annuaire.properties</attribute>
                        <attribute-name="InitialContext">javax.naming.ldap.InitialLdapContext</attribute>
                        <attribute-name="RemoteAccess">true</attribute>
                        </mbean>

                        Where "annuaire.properties" is a properties file contains the LDAP ressources :

                        java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory
                        java.naming.provider.url=ldap://192.10.10.12:636
                        java.naming.security.principal=CN=Users,DC=local,DC=ot
                        java.naming.security.authentication=simple
                        java.naming.security.credentials=lune
                        java.naming.security.protocol=ssl

                        when I start Jboss, the Bean it is well created and visible into the admin console with a state "Started".
                        But when I would like to display the jndi with JNDIView, the page has an infinite size because the JNDI input "external/annuaire" it even contains a JNDI input "external/annuaire" which it even contains a JNDI input, etc... (a loop) ?

                        If you have any information for this problem, please help-me



                        Regards


                        • 9. Re: Ldap ressource configuration
                          soussou qsfsqf Newbie

                          Hi;

                          From of the my j2ee application, I would like to get via jndi the ldap ressources (server name, IP address, the port, login, password, ...).
                          I followed the recommendations of JBoss documentation :

                          1- I have create a mbean into the file "jboss-service.xml" :

                          <!-Bind a remote LDAP server ->
                          <mbean code="org.jboss.naming.ExternalContext"name="jboss.jndi:service=ExternalContext.jndiName=external/annuaire">
                          external/annuaire
                          <attribute-name="Properties">annuaire.properties
                          <attribute-name="InitialContext">javax.naming.ldap.InitialLdapContext
                          <attribute-name="RemoteAccess">true


                          Where "annuaire.properties" is a properties file contains the LDAP ressources :

                          java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory
                          java.naming.provider.url=ldap://192.10.10.12:636
                          java.naming.security.principal=CN=Users,DC=local,DC=ot
                          java.naming.security.authentication=simple
                          java.naming.security.credentials=lune
                          java.naming.security.protocol=ssl

                          when I start Jboss, the Bean it is well created and visible into the admin console with a state "Started".
                          But when I would like to display the jndi with JNDIView, the page has an infinite size because the JNDI input "external/annuaire" it even contains a JNDI input "external/annuaire" which it even contains a JNDI input, etc... (a loop) ?

                          If you have any information for this problem, please help-me

                          Regards

                          • 10. Re: Ldap ressource configuration
                            soussou qsfsqf Newbie

                            Hi;

                            From of the my j2ee application, I would like to get via jndi the ldap ressources (server name, IP address, the port, login, password, ...).
                            I followed the recommendations of JBoss documentation :

                            1- I have create a mbean into the file "jboss-service.xml" :

                            <!-Bind a remote LDAP server ->
                            <mbeancode="org.jboss.naming.ExternalContext"name="jboss.jndi:service=ExternalContext.jndiName=external/annuaire">

                            external/annuaire
                            <attribute-name="Properties">annuaire.properties
                            <attribute-name="InitialContext">javax.naming.ldap.InitialLdapContext
                            <attribute-name="RemoteAccess">true


                            Where "annuaire.properties" is a properties file contains the LDAP ressources :

                            java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory
                            java.naming.provider.url=ldap://192.10.10.12:636
                            java.naming.security.principal=CN=Users,DC=local,DC=ot
                            java.naming.security.authentication=simple
                            java.naming.security.credentials=lune
                            java.naming.security.protocol=ssl

                            when I start Jboss, the Bean it is well created and visible into the admin console with a state "Started".
                            But when I would like to display the jndi with JNDIView, the page has an infinite size because the JNDI input "external/annuaire" it even contains a JNDI input "external/annuaire" which it even contains a JNDI input, etc... (a loop) ?

                            If you have any information for this problem, please help-me

                            Regards

                            • 11. Re: Ldap ressource configuration
                              soussou qsfsqf Newbie

                              Hi;

                              From of the my j2ee application, I would like to get via jndi the ldap ressources (server name, IP address, the port, login, password, ...).
                              I followed the recommendations of JBoss documentation :

                              1- I have create a mbean into the file "jboss-service.xml" :

                              <!-Bind a remote LDAP server ->
                              <mbeancode="org.jboss.naming.ExternalContext"name="jboss.jndi:service=ExternalContext.jndiName=external/annuaire">

                              externalannuaire
                              <attribute-name="Properties">annuaire.properties
                              <attribute-name="InitialContext">javax.naming.ldap.InitialLdapContext
                              <attribute-name="RemoteAccess">true


                              Where "annuaire.properties" is a properties file contains the LDAP ressources :

                              java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory
                              java.naming.provider.url=ldap://192.10.10.12:636
                              java.naming.security.principal=CN=Users,DC=local,DC=ot
                              java.naming.security.authentication=simple
                              java.naming.security.credentials=lune
                              java.naming.security.protocol=ssl

                              when I start Jboss, the Bean it is well created and visible into the admin console with a state "Started".
                              But when I would like to display the jndi with JNDIView, the page has an infinite size because the JNDI input "external/annuaire" it even contains a JNDI input "external/annuaire" which it even contains a JNDI input, etc... (a loop) ?

                              If you have any information for this problem, please help-me

                              Regards

                              • 12. Re: Ldap ressource configuration
                                soussou qsfsqf Newbie

                                Hi;

                                From of the my j2ee application, I would like to get via jndi the ldap ressources (server name, IP address, the port, login, password, ...).
                                I followed the recommendations of JBoss documentation :

                                1- I have create a mbean into the file "jboss-service.xml" :

                                <!-Bind a remote LDAP server ->
                                mbeancode="org.jboss.naming.ExternalContext"name="jboss.jndi:service=ExternalContext.jndiName=external/annuaire"

                                attribute name="JndiName" externalannuaire attribute
                                attribute-name="Properties" annuaire.properties attribute
                                attribute-name="InitialContext" javax.naming.ldap.InitialLdapContext attribute
                                attribute-name="RemoteAccess" true attribute
                                mbean

                                Where "annuaire.properties" is a properties file contains the LDAP ressources :

                                java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory
                                java.naming.provider.url=ldap://192.10.10.12:636
                                java.naming.security.principal=CN=Users,DC=local,DC=ot
                                java.naming.security.authentication=simple
                                java.naming.security.credentials=lune
                                java.naming.security.protocol=ssl

                                when I start Jboss, the Bean it is well created and visible into the admin console with a state "Started".
                                But when I would like to display the jndi with JNDIView, the page has an infinite size because the JNDI input "external/annuaire" it even contains a JNDI input "external/annuaire" which it even contains a JNDI input, etc... (a loop) ?

                                If you have any information for this problem, please help-me

                                Regards

                                • 13. Re: Ldap ressource configuration
                                  soussou qsfsqf Newbie

                                  Hi;

                                  From of the my j2ee application, I would like to get via jndi the ldap ressources (server name, IP address, the port, login, password, ...).
                                  I followed the recommendations of JBoss documentation :

                                  1- I have create a mbean into the file "jboss-service.xml" :

                                  <!-Bind a remote LDAP server ->
                                  mbeancode="org.jboss.naming.ExternalContext"name="jboss.jndi:service=ExternalContext.jndiName=external/annuaire"

                                  attribute name="JndiName" externalannuaire attribute
                                  attribute-name="Properties" annuaire.properties attribute
                                  attribute-name="InitialContext" javax.naming.ldap.InitialLdapContext attribute
                                  attribute-name="RemoteAccess" true attribute
                                  mbean

                                  (I have a problem with the tags, so I removed the special character ">, /, >).

                                  Where "annuaire.properties" is a properties file contains the LDAP ressources :

                                  java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory
                                  java.naming.provider.url=ldap://192.10.10.12:636
                                  java.naming.security.principal=CN=Users,DC=local,DC=ot
                                  java.naming.security.authentication=simple
                                  java.naming.security.credentials=lune
                                  java.naming.security.protocol=ssl

                                  when I start Jboss, the Bean it is well created and visible into the admin console with a state "Started".
                                  But when I would like to display the jndi with JNDIView, the page has an infinite size because the JNDI input "external/annuaire" it even contains a JNDI input "external/annuaire" which it even contains a JNDI input, etc... (a loop) ?

                                  If you have any information for this problem, please help-me

                                  Regards

                                  • 14. Re: Ldap ressource configuration
                                    soussou qsfsqf Newbie

                                     

                                    "soussou" wrote:
                                    Hi;

                                    From of the my j2ee application, I would like to get via jndi the ldap ressources (server name, IP address, the port, login, password, ...).
                                    I followed the recommendations of JBoss documentation :

                                    1- I have create a mbean into the file "jboss-service.xml" :

                                    <!-Bind a remote LDAP server ->
                                    mbeancode="org.jboss.naming.ExternalContext"name="jboss.jndi:service=ExternalContext.jndiName=external/annuaire"

                                    attribute name="JndiName" externalannuaire attribute
                                    attribute-name="Properties" annuaire.properties attribute
                                    attribute-name="InitialContext" javax.naming.ldap.InitialLdapContext attribute
                                    attribute-name="RemoteAccess" true attribute
                                    mbean

                                    (I have a problem with the tags, so I removed the special character ">, /, >).

                                    Where "annuaire.properties" is a properties file contains the LDAP ressources :

                                    java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory
                                    java.naming.provider.url=ldap://192.10.10.12:636
                                    java.naming.security.principal=CN=Users,DC=local,DC=ot
                                    java.naming.security.authentication=simple
                                    java.naming.security.credentials=lune
                                    java.naming.security.protocol=ssl

                                    when I start Jboss, the Bean it is well created and visible into the admin console with a state "Started".
                                    But when I would like to display the jndi with JNDIView, the page has an infinite size because the JNDI input "external/annuaire" it even contains a JNDI input "external/annuaire" which it even contains a JNDI input, etc... (a loop) ?

                                    If you have any information for this problem, please help-me

                                    Regards




                                    Sorry this message is confused is not clear, if you wish to answer me, use the next message with tje subjet "Configuration LDAP ressources"