ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    ODBC password

    IT Discussion
    8
    16
    2.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      Texkonc @Grey
      last edited by

      @Grey said in ODBC password:

      http://i.imgur.com/tWvH7c2.png

      I've done that and then the ODBC tool doesn't update after changing it.

      Did you reboot 3 times?

      PSX_DefectorP GreyG 2 Replies Last reply Reply Quote 0
      • dafyreD
        dafyre
        last edited by

        You could also try exporting the registry key from a known working machine, and copying it out to a .reg file and applying that .reg file via GPO?

        GreyG 1 Reply Last reply Reply Quote 1
        • GreyG
          Grey @dafyre
          last edited by

          @dafyre said in ODBC password:

          You could also try exporting the registry key from a known working machine, and copying it out to a .reg file and applying that .reg file via GPO?

          Tried this, too. That is how we got as far as we did.

          travisdh1T 1 Reply Last reply Reply Quote 0
          • travisdh1T
            travisdh1 @Grey
            last edited by travisdh1

            @Grey said in ODBC password:

            @dafyre said in ODBC password:

            You could also try exporting the registry key from a known working machine, and copying it out to a .reg file and applying that .reg file via GPO?

            Tried this, too. That is how we got as far as we did.

            Microsoft secured something so well not even the sysadmin can configure it for the end users?

            dafyreD 1 Reply Last reply Reply Quote 0
            • dafyreD
              dafyre @travisdh1
              last edited by

              @travisdh1 said in ODBC password:

              @Grey said in ODBC password:

              @dafyre said in ODBC password:

              You could also try exporting the registry key from a known working machine, and copying it out to a .reg file and applying that .reg file via GPO?

              Tried this, too. That is how we got as far as we did.

              Microsoft secured something so well not even the sysadmin can configure it for the end users?

              AKA: They fixed it until it was broke.

              1 Reply Last reply Reply Quote 1
              • StrongBadS
                StrongBad
                last edited by

                If it ain't broke... fix it.

                1 Reply Last reply Reply Quote 2
                • PSX_DefectorP
                  PSX_Defector @Texkonc
                  last edited by

                  @Texkonc said in ODBC password:

                  @Grey said in ODBC password:

                  http://i.imgur.com/tWvH7c2.png

                  I've done that and then the ODBC tool doesn't update after changing it.

                  Did you reboot 3 times?

                  No, that's run iisreset then reboot three times.

                  1 Reply Last reply Reply Quote 1
                  • GreyG
                    Grey @Texkonc
                    last edited by

                    @Texkonc said in ODBC password:

                    @Grey said in ODBC password:

                    http://i.imgur.com/tWvH7c2.png

                    I've done that and then the ODBC tool doesn't update after changing it.

                    Did you reboot 3 times?

                    Rebooting a linked clone is ... more than rebooting.

                    1 Reply Last reply Reply Quote 0
                    • GreyG
                      Grey
                      last edited by

                      Update: I've found that you can make a file.dsn and store your connection details there, e.g:
                      [ODBC]
                      DRIVER=SQL Server Native Client 11.0
                      UID=<username_sql>
                      DATABASE=<SQL Database Name>
                      APP=Microsoft® Windows® Operating System
                      SERVER=<SQL Server Hostname>
                      Description=<Anything or nothing>
                      PWD=<The critical piece>

                      With a .dsn file, you can open the ODBC application and import the settings, similar to an outlook client connecting to the first time where it gathers the info from DNS & autodiscover, except that this gathers from the file. Obviously, a user would have to be admin level to import the file.

                      These settings are all stored, with the exception of the password, in HKLM\Software\ODBC\ODBC.INI<name> and it's important to note that multiple items are stored which requires one to export the whole tree from ODBC.INI down, not just the name of the ODBC source that you want to configure; the driver information is in a different key than the configured source.

                      I am still looking over how to get the password to either be stored, or force it to import in another way without using a stupid bat file, which seems to be the preferred method. I hate, hate, hate using bat files in modern GPO systems.

                      I'll update if I find more, though i would appreciate it if anyone else can add to this, especially if you have a solution.

                      1 Reply Last reply Reply Quote 2
                      • dafyreD
                        dafyre
                        last edited by

                        There's an App called Whatchanged...

                        Start on a machine without the ODBC connection...

                        Run Whatchanged, and let it scan the registry.

                        Add the ODBC conneciton, and let it scan again to see where it is (may be) putting the password in the registry...

                        http://www.majorgeeks.com/mg/getmirror/what_changed,1.html -- It's an older App, but it still works.

                        1 Reply Last reply Reply Quote 0
                        • 1 / 1
                        • First post
                          Last post