1"use strict";(globalThis.webpackChunkmission_control=globalThis.webpackChunkmission_control||[]).push([[647],{96745(e,n,o){o.r(n),o.d(n,{assets:()=>a,contentTitle:()=>c,default:()=>m,frontMatter:()=>i,metadata:()=>s,toc:()=>l});const s=JSON.parse('{"id":"reference/connections/smb","title":"SMB / CIFS","description":"Connect to Windows file shares for file operations and backup monitoring","source":"@site/docs/reference/connections/smb.mdx","sourceDirName":"reference/connections","slug":"/reference/connections/smb","permalink":"/docs/reference/connections/smb","draft":false,"unlisted":false,"editUrl":"https://github.com/flanksource/docs/tree/main/docs/reference/connections/smb.mdx","tags":[],"version":"current","frontMatter":{"title":"SMB / CIFS","description":"Connect to Windows file shares for file operations and backup monitoring","sidebar_custom_props":{"icon":"microsoft"}},"sidebar":"reference","previous":{"title":"Slack","permalink":"/docs/reference/connections/slack"},"next":{"title":"SMTP","permalink":"/docs/reference/connections/smtp"}}');var r=o(74848),t=o(28453);const i={title:"SMB / CIFS",description:"Connect to Windows file shares for file operations and backup monitoring",sidebar_custom_props:{icon:"microsoft"}},c=void 0,a={},l=[{value:"Used By",id:"used-by",level:2},{value:"Example",id:"example",level:2}];function d(e){const n={a:"a",code:"code",h2:"h2",li:"li",p:"p",pre:"pre",ul:"ul",...(0,t.R)(),...e.components},{Fields:o}=n;return o||function(e,n){throw new Error("Expected "+(n?"component":"object")+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}("Fields",!0),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.p,{children:"SMB (Server Message Block) / CIFS (Common Internet File System) connections enable integration with Windows file shares and network-attached storage for file operations and backup monitoring."}),"\n",(0,r.jsx)(n.h2,{id:"used-by",children:"Used By"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.a,{href:"/docs/reference/canary-checker",children:"Folder Health Check"})," - Check file existence and age on Windows shares"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.a,{href:"/docs/guide/config-db/scrapers/file",children:"File Scraper"})," - Scrape configuration files from SMB shares"]}),"\n"]}),"\n",(0,r.jsx)(o,{connection:"smb"}),"\n",(0,r.jsx)(n.h2,{id:"example",children:"Example"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-yaml",metastring:'title="smb-connection.yaml"',children:"apiVersion: mission-control.flanksource.com/v1\nkind: Connection\nmetadata:\n name: windows-share\nspec:\n smb:\n server: fileserver.example.com\n share: backups\n port: 445\n username:\n valueFrom:\n secretKeyRef:\n name: smb-credentials\n key: username\n password:\n valueFrom:\n secretKeyRef:\n name: smb-credentials\n key: password\n"})}),"\n",(0,r.jsxs)(n.p,{children:["For domain authentication, use the format ",(0,r.jsx)(n.code,{children:"DOMAIN\\\\username"})," for the username field."]})]})}function m(e={}){const{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(d,{...e})}):d(e)}},28453(e,n,o){o.d(n,{R:()=>i,x:()=>c});var s=o(96540);const r={},t=s.createContext(r);function i(e){const n=s.useContext(t);return s.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:i(e.components),s.createElement(t.Provider,{value:n},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.