Giter Club home page Giter Club logo

bitwarden-scripts's Introduction

ZacksHomelab

This repository contains random scripts, files, or notes.

bitwarden-scripts's People

Contributors

zackshomelab avatar

Stargazers

 avatar

Watchers

 avatar

bitwarden-scripts's Issues

OFF365 Emails Failing

Expected Behavior

Emails using username & password authentication should work within backup-bitwarden.ps1

Actual Behavior

backup-bitwarden.ps1 fails to retrieve passwords within /opt/bitwarden/bwdata/env/global.override.env, thus function Send-ZHLBWEmail will fallback to an insecure sending channel and cause the following error:

Exception: Send-ZHLBWEmail: Failed sending email due to The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.57 Client not authenticated to send mail.

Steps to reproduce

  • Open /opt/bitwarden/bwdata/env/global.override.env
  • Input the following settings:
[email protected]
globalSettings__mail__smtp__host=smtp.office365.com
globalSettings__mail__smtp__port=25
globalSettings__mail__smtp__ssl=true
globalSettings__mail__smtp__username=YOUR_EMAIL
globalSettings__mail__smtp__password=YOUR_PASSWORD
  • Run backup-bitwarden.ps1 with the following parameters:
pwsh -File "/opt/bitwarden/backup-bitwarden.ps1" -PasswordFile /opt/bitwarden/password_file -FinalBackupLocation /tmp -Incremental -days 14 -LogFile /opt/bitwarden/backup-bitwarden.log -SendEmail -EmailAddresses 'YOUR_EMAIL'

Remove Unused Variables

After utilizing SMTP via BitWarden's Global Environment files, there's a few left-over variables that are not used.

Exit Code Typo in backup-bitwarden.ps1

While reviewing backup-bitwarden.ps1. I noticed the following typo:

$exitcodde_NotRoot = 9

If the program were to run as a non-sudo user, the program will exit without providing an appropriate exit code.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.