Skip to content

Instantly share code, notes, and snippets.

View nqb's full-sized avatar

Nicolas Quiniou-Briand nqb

  • Azyx
  • Rennes (35), France
View GitHub Profile
{
"administration_rules": [
{
"actions": [
{
"type": "set_access_level",
"value": [
"ALL"
]
}
sscep: starting sscep, version 0.9.0
sscep: new transaction
sscep: transaction id: D41D8CD98F00B204E9800998ECF8427E
sscep: hostname: 172.17.17.12
sscep: directory: scep/Akamai_user
sscep: port: 80
sscep: SCEP_OPERATION_GETCAPS
sscep: scep request:
GET /scep/Akamai_user?operation=GetCACaps HTTP/1.1
Host: 172.17.17.12
Jun 29 12:20:57 pfdeb9stable packetfence_httpd.aaa: httpd.aaa(1096) INFO: [mac:00:03:00:11:11:01] handling radius autz request: from switch_ip => (172.17.17.201), connection_type => Ethernet-EAP,switch_mac => (44:38:39:00:00:12), mac => [00:03:00:11:11:01], port => 8, username => "packetfence" (pf::radius::authorize)
Jun 29 12:20:57 pfdeb9stable packetfence_httpd.aaa: httpd.aaa(1096) INFO: [mac:00:03:00:11:11:01] Instantiate profile catch_dot1x_wired_eap_peap_mschapv2 (pf::Connection::ProfileFactory::_from_profile)
Jun 29 12:20:57 pfdeb9stable packetfence_httpd.aaa: httpd.aaa(1096) INFO: [mac:00:03:00:11:11:01] is of status unreg; belongs into registration VLAN (pf::role::getRegistrationRole)
Jun 29 12:20:57 pfdeb9stable packetfence_httpd.aaa: httpd.aaa(1096) INFO: [mac:00:03:00:11:11:01] (44:38:39:00:00:12) Added VLAN 2 to the returned RADIUS Access-Accept (pf::Switch::Template::returnRadiusAccessAccept)
Jun 29 12:20:57 pfdeb9stable packetfence_httpd.aaa: httpd.aaa(1096) INFO: [mac:00:03:00:11:11:01] Updatin
version: "2.1"
services:
odoo:
build:
context: ./odoo
image: filament/odoo:14.0
container_name: odoo
depends_on:
- db
- smtp
@nqb
nqb / SMIME.xs
Created November 11, 2020 14:36
SMIME.xs
#include <assert.h>
#include <string.h>
#if defined(HAVE_SYS_TIME_H)
# include <sys/time.h>
#endif
#include <openssl/crypto.h>
#include <openssl/pem.h>
#include <openssl/err.h>
#include <openssl/pkcs12.h>
#include <openssl/x509.h>
@nqb
nqb / diff
Created October 14, 2020 14:14
diff --git a/addons/backup-and-maintenance.sh b/addons/backup-and-maintenance.sh
index 52793175af..cef1d65ea9 100755
--- a/addons/backup-and-maintenance.sh
+++ b/addons/backup-and-maintenance.sh
@@ -57,7 +57,7 @@ if (( $BACKUPS_AVAILABLE_SPACE > (( $PF_USED_SPACE / 2 )) )); then
# Backup complete PacketFence installation except logs
current_tgz=$BACKUP_DIRECTORY/$BACKUP_PF_FILENAME-`date +%F_%Hh%M`.tgz
if [ ! -f $BACKUP_DIRECTORY$BACKUP_PF_FILENAME ]; then
- tar -czf $current_tgz $PF_DIRECTORY --exclude=$PF_DIRECTORY'logs/*' --exclude=$PF_DIRECTORY'var/*' --exclude=$PF_DIRECTORY'.git/*'
+ tar -czf $current_tgz --exclude=$PF_DIRECTORY'logs/*' --exclude=$PF_DIRECTORY'var/*' --exclude=$PF_DIRECTORY'.git/*' $PF_DIRECTORY
@nqb
nqb / domain.conf
Created September 29, 2020 09:42
domain.conf and realm.conf
[example]
status=enabled
ntlm_cache_filter=(&(samAccountName=*)(!(|(lockoutTime=>0)(userAccountControl:1.2.840.113556.1.4.803:=2))))
registration=0
ntlm_cache_expiry=3600
dns_name=example.lan
dns_servers=172.17.17.100
ou=Computers
ntlm_cache_on_connection=disabled
workgroup=EXAMPLE
{
"access_registration_when_registered": null,
"advanced_filter": {
"field": null,
"op": "and",
"value": null,
"values": []
},
"always_use_redirecturl": null,
"autoregister": null,
{
"access_registration_when_registered": null,
"advanced_filter": {
"field": null,
"op": "and",
"value": null,
"values": [
{
"field": "last_connection_type",
"op": "equals",
Service Status PID
packetfence-api-frontend.service started 18493
packetfence-config.service started 0
packetfence-fingerbank-collector.service disabled 0
packetfence-galera-autofix.service disabled 0
packetfence-haproxy-admin.service started 25120
packetfence-haproxy-db.service disabled 0
packetfence-haproxy-portal.service started 25545
packetfence-httpd.aaa.service started 25258
packetfence-httpd.admin.service disabled 0