search for: dec2str

Displaying 20 results from an estimated 26 matches for "dec2str".

2015 Mar 11
1
dec2str ...
a very stupid question: What reason is there for an output with printf until dec2str to convert the numeric value to a string and not to use the format identifier "%d" or "u%"?
2016 Sep 16
2
pop3 deleted count
...logout, we're seeing log lines where the deleted count is blank (using default pop3_logout_format), so "del=%d/%m" is displaying in the logs as: "del=/1186" for example. In src/pop3/pop3-client.c:552: tab[4].value = client->delete_success ? dec2str(client->deleted_count) : 0; Shouldn't this be: tab[4].value = client->delete_success ? dec2str(client->deleted_count) : "0"; (very minor bug) -- Dave
2010 May 20
1
Patch for logging variables
...ot; }, { 'o', NULL, "output" }, + { 'c', NULL, "client_ip" }, + { 'e', NULL, "expunged_count" }, { '\0', NULL, NULL } }; struct var_expand_table *tab; *************** *** 115,120 **** --- 118,125 ---- tab[0].value = dec2str(client->input->v_offset); tab[1].value = dec2str(client->output->offset); + tab[2].value = getenv("IP") ? getenv("IP") : "Unknown"; + tab[3].value = dec2str(client->expunged); str = t_str_new(128); var_expand(str, logout_format, tab); diff -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
2012 Oct 01
1
BUG to compile dovecot 2.1.10 on Debian 4.0, using gcc 4.1.2
...** [all] Error 2 -------------------------------------------------- -------- -To work did the following: -------------------------------------------------- -------- 417a418 + Int stat = status-> status; 426c427 - If (WIFSIGNALED (status-> status)) { --- + If (WIFSIGNALED (stat)) { 429c430 - Dec2str (status-> pid), WTERMSIG (status-> status)); --- + Dec2str (status-> pid), WTERMSIG (stat)); 431.432 c432, 433 -} Else if (WIFEXITED (status-> status)) { - Request-> exit_status WEXITSTATUS = (status-> status); --- +} Else if (WIFEXITED (stat)) { + Request-> exit_status WEXITST...
2003 Apr 15
1
PATCH allow_zero_gid option
...=", user, NULL)); if (chroot_dir != NULL && *chroot_dir != '\0') env_put(t_strconcat("RESTRICT_CHROOT=", chroot_dir, NULL)); + if (allow_zg == TRUE) + env_put(t_strdup("ALLOW_ZERO_GID=TRUE")); env_put(t_strdup_printf("RESTRICT_SETUID=%s", dec2str(uid))); env_put(t_strdup_printf("RESTRICT_SETGID=%s", dec2str(gid))); @@ -45,6 +47,7 @@ void restrict_access_set_env(const char void restrict_access_by_env(int disallow_root) { const char *env; + int allow_zero_gid; gid_t gid; uid_t uid; @@ -97,8 +100,14 @@ void restrict_acce...
2014 May 03
1
%{orig_user} missing in checkpassword-Script
...TH_REQUEST_VAR_TAB_COUNT */ { '\0', NULL, NULL } }; In src/auth/auth-request.c around line 2116 I replaced the following lines at the end of function auth_request_get_var_expand_table_full() tab[26].value = auth_request->session_pid == (pid_t)-1 ? NULL : dec2str(auth_request->session_pid); return ret_tab; by tab[26].value = auth_request->session_pid == (pid_t)-1 ? NULL : dec2str(auth_request->session_pid); if (auth_request->original_username != NULL) { tab[27].value = escape_func(auth_re...
2006 Feb 03
1
passwd-userdb with args
...**** *** 29,48 **** pw->pw_name, auth_request->user); } reply = auth_stream_reply_init(auth_request); auth_stream_reply_add(reply, NULL, pw->pw_name); auth_stream_reply_add(reply, "system_user", pw->pw_name); auth_stream_reply_add(reply, "uid", dec2str(pw->pw_uid)); auth_stream_reply_add(reply, "gid", dec2str(pw->pw_gid)); auth_stream_reply_add(reply, "home", pw->pw_dir); callback(reply, auth_request); } struct userdb_module_interface userdb_passwd = { "passwd", ! NULL, NULL, NULL,...
2008 Oct 31
1
imap dump-capability fails Dovecot 1.1.6
Hi Timo, Dovecot fails to start after upgrading from 1.1.4 to 1.1.6: Fatal: userdb didn't return a home directory, but mail location used it (%h): %h/mail:CONTROL=%h/control:INDEX=%h/index Error: imap dump-capability process returned 89 Fatal: Invalid configuration in /etc/dovecot/dovecot.conf Adding a fake home directory to args in master-settings.c:get_imap_capability solved the problem
2017 Nov 21
3
Passing information from passdb to userdb
I'm trying to hack together a new authentication back-end and I wanted to know if it's possible to pass values from passdb to userdb in the auth_request structure at authentication time. I modified struct auth_request in auth-request.h to contain a new variable and it gets set properly in my passdb, however the value is not there when checking for it userdb. I'm very novice when it
2006 Nov 28
1
Can't drop root group privileges
Hi all, I need your insight. I've been testing Dovecot on an AIX 5.2 system. Compiled and running fine. We have some users on an AIX 5.1 system, so I'm working on installing it there, so we can do further testing. I'm using Dovecot 1.0 RC15 with OpenSSL 9.0.7e, configured to use port 10143 (imap) and 10993 (imaps). The error I'm seeing in the log is: dovecot: Nov 28
2005 Sep 11
0
Minor patch for vpopmail support
...popmail.c 11 Sep 2005 11:57:42 -0000 @@ -84,7 +84,7 @@ } } - reply = auth_stream_reply_init(); + reply = auth_stream_reply_init(auth_request); auth_stream_reply_add(reply, NULL, vpw->pw_name); auth_stream_reply_add(reply, "uid", dec2str(uid)); auth_stream_reply_add(reply, "gid", dec2str(gid)); Thanks John -- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4720 Boston Way Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5747
2015 Apr 11
2
Why are here ignore a simple question?
On 04/11/2015 02:39 AM, Hardy Flor wrote: > I had been on 3/12/2015 pointed to the lack of documentation of "doveadm > save". It was in the changelog of 2.2.16. Unfortunately this is not unique. Dovecot's documentation is at all times significantly lagging behind the code, this is the MO for this project. I guess someone will say "contributions are welcome". There
2004 Jul 29
1
dovecot mounts user home dir?
Why does dovecot mount the user home directory whenever the user checks his email (either pop or imap)? Is there a way to disable this? I have indicated in the default_mail_env = mbox:/home/%u/:INBOX=/mail/%u:INDEX=MEMORY. The users are in ldap. Windows users' home is in /home/%u so this is ok but unix users' home are in their local computers and are mounted (via automount) at
2010 Jun 29
1
NFS(4) IMAP Quota
...lue_r = rq->rq_curfiles; + if (rq->rq_fsoftlimit) + *limit_r = rq->rq_fsoftlimit; + else + *limit_r = rq->rq_fhardlimit; } + if (root->root.quota->set->debug) { i_info("quota-fs: uid=%s, value=%llu, " "limit=%llu, active=%d", dec2str(root->uid), @@ -419,7 +431,12 @@ host = t_strdup_until(mount->device_path, path); path++; - + /* For NFSv4, we send the filesystem path without initial /. Server prepends proper + * NFS pseudoroot automatically and uses this for detection of NFSv4 mounts. */ + if (strcmp(root->mount...
2009 Jun 26
2
ACLs, imap and launchd
I was going to experiment with ACLs when I faced a small problem. It is just sufficient to enable the acl plugin for getting the behavior described hereafter. When launching dovecot from the command line, one gets: sh-3.2# /usr/local/dovecot/sbin/dovecot -F ILoading modules from directory: /usr/local/dovecot-1.2.rc6/lib/ dovecot/imap IModule loaded:
2006 Jan 18
2
%d interpolation problem fixed
On 6 Dec 2005, at 17:21, Timo Sirainen wrote: > On Tue, 2005-12-06 at 17:11 +0000, William Ross wrote: >> On 6 Dec 2005, at 16:51, Timo Sirainen wrote: >> >>> On Fri, 2005-10-28 at 17:52 +0200, Riccardo Bini wrote: >>>>> I just wrote this: http://wiki.dovecot.org/Quota >>>> Well... but you have to correct %n with vpopmail backend. %u in the
2015 Apr 11
0
Why are here ignore a simple question?
I've also looked at the source code. But my attempt to output the UID fails because of the error message: doveadm-mail save.c: 62: 36: error: dereferencing pointer to incomplete type in the line: printf("uid =%s\n", dec2str(save_ctx->dest_mail->uid)); Am 11.04.2015 um 08:46 schrieb Gedalya: > Unfortunately this is not unique. Dovecot's documentation is at all > times significantly lagging behind the code, this is the MO for this > project. I guess someone will say "contributions are welcome...
2007 Jan 15
1
patch for serdb-ldap which allows set user_global_mail variable
...if (strcmp(name, "mail") == 0) {seen_mail = TRUE;} for (i = 0; vals[i] != NULL; i++) { auth_stream_reply_add(reply, name, vals[i]); @@ -126,6 +127,16 @@ auth_stream_reply_add(reply, "gid", dec2str(conn->set.gid)); } + if (!seen_mail) { + if (*conn->set.user_global_mail != '\0') { + const struct var_expand_table *vars; + vars = auth_request_get_var_expand_table(auth_request, auth_request_str_escape); + string_t *str; +...
2006 Jun 22
1
Patch for rawlog.c
...- i_warning("lstat() failed for %s: %m", path); + i_warning("lstat() failed for %s: %m", RAWLOG_DIRNAME); return; } if (!S_ISDIR(st.st_mode)) @@ -305,7 +300,7 @@ dec2str(getppid()))); ioloop = io_loop_create(system_pool); - rawlog_proxy_create(0, 1, sfd[0], path, write_timestamps); + rawlog_proxy_create(0, 1, sfd[0], RAWLOG_DIRNAME, write_timestamps); io_loop_run(ioloop); io_loop_destroy(&ioloop); ---- snap -- Andre...