diff --git a/.gitignore b/.gitignore index a2a2957..7f7305d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ -clientconfig.py -serverconfig.py +./clientconfig.py +./serverconfig.py *.pyc # Dossier contenant les mots de passe diff --git a/clientconfigs/README b/clientconfigs/README new file mode 100644 index 0000000..bfcf05a --- /dev/null +++ b/clientconfigs/README @@ -0,0 +1,2 @@ +Example files for sereval setups, on the client side. Possibly several server +defined in one single client configuration file. diff --git a/clientconfigs/tudor/clientconfig.py b/clientconfigs/tudor/clientconfig.py new file mode 100644 index 0000000..d8120df --- /dev/null +++ b/clientconfigs/tudor/clientconfig.py @@ -0,0 +1,9 @@ +#!/usr/bin/env python +# -*- encoding: utf-8 -*- + +servers = { + 'default': { + 'server_cmd': ['/home/dstan/cranspasswords/serverconfigs/tudor/cpasswords-server', ], + 'keep-alive': True, # <-- experimental, n'ouvre qu'une connexion + } +} diff --git a/serverconfigs/README b/serverconfigs/README new file mode 100644 index 0000000..650aef8 --- /dev/null +++ b/serverconfigs/README @@ -0,0 +1 @@ +Example files for sereval setups, on the server side. diff --git a/serverconfigs/tudor/.gitignore b/serverconfigs/tudor/.gitignore new file mode 100644 index 0000000..23cf86a --- /dev/null +++ b/serverconfigs/tudor/.gitignore @@ -0,0 +1 @@ +cpasswords-server diff --git a/serverconfigs/tudor/serverconfig.py b/serverconfigs/tudor/serverconfig.py new file mode 100755 index 0000000..f06f9f8 --- /dev/null +++ b/serverconfigs/tudor/serverconfig.py @@ -0,0 +1,39 @@ +#!/usr/bin/env python +# -*- encoding: utf-8 -*- + +""" Configuration Serveur de cpasswords. + +Version de Tudor +""" + +#: Pour override le nom si vous voulez renommer la commande +cmd_name = 'cpasswords' + +#: Chemin vers la commande sendmail +sendmail_cmd = '/usr/lib/sendmail' + +#: Répertoire de stockage des mots de passe +STORE = '/home/dstan/passwords/data' + +#: Ce serveur est-il read-only (on ne peut pas y modifier les mots de passe) +READONLY = False + +#: Expéditeur du mail de notification +CRANSP_MAIL = u"%s " % (cmd_name,) + +#: Destinataire du mail de notification +DEST_MAIL = u"dstan+cpasswords@crans.org" + +#: Mapping des utilisateurs et de leurs (mail, fingerprint GPG) +KEYS = { + u'dstan': (u'daniel.stan@crans.org', u'90520CFDE846E7651A1B751FBC9BF8456E1C820B'), +} + + +ME = [u'dstan'] + +#: Les roles utilisés pour savoir qui a le droit le lire/écrire quoi +ROLES = { + 'moi': ME, + 'moi-rw': ME, +}