Endpoint Protection

 View Only
Expand all | Collapse all

Lost database password

  • 1.  Lost database password

    Posted Mar 13, 2010 12:11 AM
    I lost the password to my database.
    RU5 with embeded database.

    Does anybody know if the password listed in this file
    C:\Program Files\Symantec\Symantec Endpoint Protection Manager\Server Private Key Backup\server_<datestamp>.xml
    is really the password to the embedded database?  Is it DES encrypted? 

    - <parameter>
      <name>username</name>
      <value>DBA</value>
      </parameter>
    - <parameter>
      <name>password</name>
      <value>{DES}snipped</value>
      </parameter>


  • 2.  RE: Lost database password



  • 3.  RE: Lost database password

    Posted Mar 13, 2010 12:43 AM
    I saw that article earlier and already gave it a try.   But the password listed in the error message is truncated to the first 15 characters.   I verified thats whats happening on another on another SEPM server where I know the password.   I use passwords that are much longer than 15 characters so that article is not going to solve my problem.

    So thats why I am wondering if the password listed in the file I referenced above is actually the password to the embedded database ??  


  • 4.  RE: Lost database password

    Posted Mar 13, 2010 12:52 AM
     its encrypted ,you cannot have it in plain text.


  • 5.  RE: Lost database password

    Posted Mar 13, 2010 02:05 AM
    Hi Rafeeq,

    First of all Thanks for both article info provided.

    Is there any way to recover the encrypted password?


  • 6.  RE: Lost database password

    Posted Mar 13, 2010 02:13 AM
    you can use this document, however the string is getting trucated , if you are not using the lenghty password you can use this document

    http://www.symantec.com/connect/articles/how-find-database-password-odbc 


  • 7.  RE: Lost database password
    Best Answer

    Posted Mar 13, 2010 03:55 AM
    Hello  

    I found the way of recovering your password without getting truncated, Sent you a PM
    let me know if it was helpful.

    the password i used was 30 char long..


  • 8.  RE: Lost database password

    Posted Mar 13, 2010 03:57 PM

    It worked !



  • 9.  RE: Lost database password

    Posted Apr 05, 2010 09:29 PM

    How about the solution to this that actually worked? I'm in the same boat with a lost encryption password that is long.

    Thanks in advance...


  • 10.  RE: Lost database password

    Posted Apr 05, 2010 11:26 PM
    Kudos (and any points) for this solution should  go to Rafeeq.

    Instructions:
    1. Login to the SEPM where you need to recover the password.

    2. It is not necessary to stop any services, and to be best of my knowledge these procedures do no interrupt communication between the manager and clients.

    3. Start -> Run: odbcad32

       a. Click the System DSN tab

       b. Select the SymantecEndpointSecurityDSN and then click the Configure button

          i. Click the Database tab

          ii. In the Database File field it should llike this:
          C:\Program Files\Symantec\Symantec Endpoint Protection Manager\db\sem5

          iii. Change the “sem5” at the very end to “SEM”

       c. Click OK to exit from the ODBC configuration program

    4. Make a backup copy of C:\Program Files\Symantec\Symantec Endpoint Protection Manager\Php\php.ini

    5. Right-click on the C:\Program Files\Symantec\Symantec Endpoint Protection Manager\Php\php.ini file and select Properties

       a. Uncheck read-only

    6. In notepad open C:\Program Files\Symantec\Symantec Endpoint Protection Manager\Php\php.ini

       a. Modify the following lines to read:
       display_errors = On
       display_startup_errors = On

    7. Save and close php.ini

    8. Make a backup copy of C:\Program Files\Symantec\Symantec Endpoint Protection Manager\Inetpub\Reporting\Common\connectdb.php

    9. Right-click on C:\Program Files\Symantec\Symantec Endpoint Protection Manager\Inetpub\Reporting\Common\connectdb.php and select Properties

       a. Uncheck read-only

    10. In notepad open C:\Program Files\Symantec\Symantec Endpoint Protection Manager\Inetpub\Reporting\Common\connectdb.php

       a. Search for the word “catch”. It will be in several places, but only two of those places will look like this:

       } catch (Exception $e) {
       $dpwd = "";
       throw $e;
       }

       b. In both places where you found the above add one additional line so that it looks like this:

       } catch (Exception $e) {
       echo "GOT IT - this is your password for database !!! {$dpwd}";
       $dpwd = "";
       throw $e;
       }

    11. Save and close connectdb.php

    12. In Internet Explorer go to http://localhost:8014/reporting
    Note modify your port number in the URL as appropriate.

       a. Login using your SEPM administrator credentials

       b. After a few seconds an error message (dump) will be displayed. Look for “GOT IT” and your password will be displayed at the end of that line.

    13. The last step is to undo all the changes you made. Be sure to set both files back to read-only. Also change the name of the database used by the ODBC DSN.


  • 11.  RE: Lost database password

    Posted Mar 03, 2020 12:00 AM
    Will it work for SEP 14 RU2 MP1? 

    As per comment 10 – need to make the few changes:

     

    Step 10: only present in one section

     

     } catch (Exception $e) {
       $dpwd = "";
       throw $e;
       }

     

    connectdb.php is now located in ..\Symantec Endpoint Protection Manager\Php\Include\Common

    Steps mentioned in comment 10 - didn't work for me.




  • 12.  RE: Lost database password

    Posted Apr 06, 2010 03:51 AM

    is this the password for accessing the SEP mgr. console or the database connection to the embedded DB ?