Skip to content

Instantly share code, notes, and snippets.

Integración de proxy cache Squid con Samba 4 AD DC

Este documento describe el proceso de integración de Samba AD DC con Squid con soporte para la autenticación Kerberos y basic (como fallback).

Consideraciones previas

  • Sistema operativo: Debian GNU/Linux 9 (Stretch) 64bits
  • Version de Squid: 3.5
  • Nombre de dominio: foo.bar
  • Nombre de host del servidor AD DC: dc
@oneohthree
oneohthree / bash-feed-gen.sh
Last active July 12, 2017 19:56
bash-feed-gen generates a feed file from new files arriving to a directory. This would be useful for people who mantain file servers and want their users to be notify of new files.
#!/bin/bash
FILEDIR="/path/to/files/root/directory"
FEEDDIR="/path/to/feed/root/directory"
BASEURL="http://domain.tld"
TITLE="TITLE"
DESCRIPTION="DESCRIPTION"
ENTRIES="10"
if [[ ! -d $FILEDIR ]]
@oneohthree
oneohthree / quick-slugify.sh
Last active February 22, 2024 01:53
Quick bash slugify
echo "$STRING" | iconv -t ascii//TRANSLIT | sed -r s/[^a-zA-Z0-9]+/-/g | sed -r s/^-+\|-+$//g | tr A-Z a-z