search for: var_expander

Displaying 20 results from an estimated 49 matches for "var_expander".

Did you mean: var_expand
2019 Feb 25
0
[PATCH 2/3] v2v: add Var_expander
This helper module provides a facility to replace %{FOO}-like variables in text strings with user-provided content. --- .gitignore | 1 + v2v/Makefile.am | 32 +++++++++++- v2v/dummy.c | 2 + v2v/var_expander.ml | 69 +++++++++++++++++++++++++ v2v/var_expander.mli | 82 ++++++++++++++++++++++++++++++ v2v/var_expander_tests.ml | 103 ++++++++++++++++++++++++++++++++++++++ 6 files changed, 287 insertions(+), 2 deletions(-) create mode 100644 v2v/dummy.c create mode 100644 v2v/var_expander.m...
2017 May 30
3
Still trouble with vpopmail
Getting this error: > In file included from ../../src/lib/lib.h:6:0, > from auth-common.h:4, > from userdb-vpopmail.c:5: > ../../config.h:791:0: note: this is the location of the previous > definition > #define VERSION "2.2.30" > ^ > userdb-vpopmail.c: In function ?userdb_vpopmail_get_quota?: > userdb-vpopmail.c:72:6:
2019 Mar 29
5
[PATCH v2 0/3] v2v: add -o json output mode
...erent metadata, it offers a way to relocate the disks, with %{...}-like variables (only 3 added ATM, more can be added) to change their paths depending on data of the guest/disks. Changes from v1: - remove extra code for optional named parameters in pcre_tests.ml - allow %-escaping of variables in Var_expander Pino Toscano (3): common/mlpcre: add offset flag for PCRE.matches v2v: add Var_expander v2v: add -o json output mode .gitignore | 1 + common/mlpcre/PCRE.ml | 2 +- common/mlpcre/PCRE.mli | 5 +- common/mlpcre/pcre-c.c | 16 +- common/mlpcre/...
2019 Feb 25
7
[PATCH 0/3] RFC: v2v: add -o json output mode
...In addition to a simple different metadata, it offers a way to relocate the disks, with %{...}-like variables (only 3 added ATM, more can be added) to change their paths depending on data of the guest/disks. Thanks, Pino Toscano (3): common/mlpcre: add offset flag for PCRE.matches v2v: add Var_expander v2v: add -o json output mode .gitignore | 1 + common/mlpcre/PCRE.ml | 2 +- common/mlpcre/PCRE.mli | 5 +- common/mlpcre/pcre-c.c | 16 +- common/mlpcre/pcre_tests.ml | 15 +- v2v/Makefile.am | 36 +++- v2v/cmdline.ml...
2019 Mar 29
0
Re: [PATCH 2/3] v2v: add Var_expander
.... I can perfectly understand that, however ... > Is there not an existing C or OCaml library/facility we could use > here? It's a shame we can't use Perl Template Toolkit because it > would be ideal here. ... sadly I did not find anything simple convering the use case that this Var_expander module covers. The closest thing I found was the usage of ${..}/$(..) variables in dune (the OCaml build system), with the following differences: - manually tokenizes the string - allows anything as variable name, splitting it in two if a ':' is found - ${..}/$(..) instead of %{..} >...
2003 Nov 04
0
PATCH: make local IP address available to auth modules
The attached patch makes the local IP address to which the client connected available to the authentication modules; i.e., the local IP address is available for substitution as %i for the mysql and pgsql modules. We needed this feature to support thousands of our legacy accounts which are authenticated by username/local_part (not the full email address) and IP address (one per domain). Timo,
2005 Nov 09
1
var_expand and pop3_logout_format
Hi. -alpha2 broke the retr-byte-count field of the pop3_logout_format with the following change: -Added %R (reverse string) and %H (hash string) variable modifiers. %R as modifier conflicts on expand with %R as retr-byte-count in pop3_logout_format resulting in expanded strings like: top=0/0, retr=1/ del=0/1, size=431 seen in -alpha3 -alpha4 cvs as of 04.11.2005 FreeBSD 5.4-R, both i386
2019 Mar 25
2
Re: [PATCH 2/3] v2v: add Var_expander
On Mon, Feb 25, 2019 at 05:22:51PM +0100, Pino Toscano wrote: [...] After being burned a few times with custom parsing (hello, guestfish) I'm not a big fan. Is there not an existing C or OCaml library/facility we could use here? It's a shame we can't use Perl Template Toolkit because it would be ideal here. There are all kinds of questions that aren't answered such as: Should
2017 May 30
0
Still trouble with vpopmail
Sorry to ask, what's vpopmail and how is it related to dovecot? On 30 May 2017 at 22:33, Bobber <bobber at kc0dxf.net> wrote: > Getting this error: > > In file included from ../../src/lib/lib.h:6:0, >> from auth-common.h:4, >> from userdb-vpopmail.c:5: >> ../../config.h:791:0: note: this is the location of the previous
2014 Dec 12
0
PATCH - add username_format to the PAM auth module
Hi there, Other auth modules (eg passwd-file) allow a username_format to be specified, but not the PAM module. The use-case, is where I want a static userdb configuration which takes the domain into account but still want to use PAM for authentication, eg: userdb { driver = static args = uid=8 gid=12 home=/mnt/storage/mail/vhosts/%d/%n } passdb { driver = pam args = username_format=%n
2016 Jul 09
4
passdb {driver = shadow args = override_username=%variable}
Hello list I want to implement override_username = %variable for the "shadow" driver, so that the following works: passdb { driver = shadow args = override_username=%Ln } by "%variable", I mean "Variables" at http://wiki.dovecot.org/Variables. I've hacked up a solution with strtok(3C), but that's a hack and a possible security hole, and I'd rather
2016 Jul 26
2
[BUG] Re: auth_bind with "()" in username not working
Hi guys, I had a look in the sources about this problem. the problem seems to be the ldap_escape function that is called from ldap_verify_plain_auth_bind_userdn(..) I dont really know if this escaping is needed at this point, but with this change it works for me. No other problems discovered so far. could somebody, who is deeper in the sources give me a hint if this will make some troubles?
2017 Mar 07
1
v2.2.28 released
On 07.03.2017 10:52, Nagy, Attila wrote: > On 03/06/2017 11:30 PM, Timo Sirainen wrote: >> On 6 Mar 2017, at 9.17, Tom Sommer <mail at tomsommer.dk> wrote: >>> >>> On 2017-02-24 14:34, Timo Sirainen wrote: >>>> http://dovecot.org/releases/2.2/dovecot-2.2.28.tar.gz >>>> http://dovecot.org/releases/2.2/dovecot-2.2.28.tar.gz.sig >>>
2019 Oct 05
1
Home Directory Creation
<!doctype html> <html> <head> <meta charset="UTF-8"> </head> <body> <div> <br> </div> <blockquote type="cite"> <div> On 05/10/2019 05:20 Asai via dovecot < <a href="mailto:dovecot@dovecot.org">dovecot@dovecot.org</a>> wrote: </div> <div>
2017 Dec 02
0
Lua Auth
-------- Original message --------From: Mark Moseley <moseleymark at gmail.com> Date: 02/12/2017 02:34 (GMT+02:00) To: Cc: Dovecot Mailing List <dovecot at dovecot.org> Subject: Re: Lua Auth On Thu, Nov 30, 2017 at 5:26 AM, Stephan Bosch <s.bosch at ox.io> wrote: > > > Op 29-11-2017 om 6:17 schreef Aki Tuomi: > >> On November 29, 2017 at 4:37 AM Mark
2019 Dec 18
2
[v2v PATCH] po: do not extract tests
...ommon/mltools/xpath_helpers.ml common/mlutils/c_utils.ml -common/mlutils/c_utils_unit_tests.ml common/mlutils/unix_utils.ml common/mlv2v/uefi.ml common/mlxml/xml.ml @@ -86,9 +77,7 @@ v2v/target_bus_assignment.ml v2v/types.ml v2v/utils.ml v2v/v2v.ml -v2v/v2v_unit_tests.ml v2v/vCenter.ml v2v/var_expander.ml -v2v/var_expander_tests.ml v2v/windows.ml v2v/windows_virtio.ml -- 2.24.1
2019 Mar 25
1
Re: [PATCH 3/3] v2v: add -o json output mode
...= ref None in > + > + List.iter ( > + function > + | "json-disks-pattern", v -> > + if !json_disks_pattern <> None then > + error (f_"-o json: -oo json-disks-pattern set more than once"); > + let vars = > + try Var_expander.scan_variables v > + with Var_expander.Invalid_variable var -> > + error (f_"-o json: -oo json-disks-pattern: invalid variable %%{%s}") > + var in > + List.iter ( > + fun var -> > + if not (List.mem var known_pa...
2010 May 20
1
Patch for logging variables
Upon thinking, the variable names may not be descriptive enough as `host` is a bit ambiguous and `deleted_count` may refer to a different command than expunge in imap and may be valid to track at some point so I have changed `host` to `client_ip` and `deleted_count` in imap to `expunged_count`, below is the modified diff for version 1.2.11. diff -crB dovecot-1.2.11.orig/src/imap/client.c
2010 May 19
1
logging
I am looking through the logging options and wondering if there are a couple of things that we can do 1. Logouts don't seem to show the IP address of the logout, we typically see multiple sessions at a time and wondering if there is a way to tie the logouts to an IP 2. POP logouts show the number of messages retrieved/deleted but I don't see a way to do this with IMAP, is there a logout
2008 Jul 04
2
Different PROXY for IMAP and POP3 using LDAP-auth
Hello everybody! I'm trying to configure dovecot 1.1.1 with different proxy hosts and/or ports for different protocols (IMAP, POP3). I'm using LDAP for authentication. I've tried: 1) Variable in "auth default" configuration: [dovecot.conf] passdb ldap { args = /usr/local/etc/dovecot-ldap-%Ls.conf } userdb ldap { args =