search for: auth_callback

Displaying 10 results from an estimated 10 matches for "auth_callback".

2006 Nov 03
1
auth-req-handler.c adds spurious tab
If the auth backend (postgresql in my case) returns extra fields, and all of these extra_fields begin with 'userdb_', the auth_callback functions adds an unwanted extra tab at the end of the response: auth(default): client out: OK^I8^Iuser=foo at bar^I This extra tab at the end confuses exim's dovecot-auth handler (the exim-dovecot auth handler does not correctly count the number of returned fields then (side note: the code o...
2004 Oct 21
2
test51 dumping core
...00, 469809542} pid = -809566648 #4 0x1c007eae in mech_init () at mech.c:313 mechanisms = (char **) 0x0 env = 0x1 "" #5 0x1c007f3a in mech_init () at mech.c:336 mechanisms = (char **) 0x1 env = 0x1c00555f "E\b?p\020??\b" #6 0x1c005491 in auth_callback (request=0x1, result=3485400856, reply=0xcfbeff20, reply_size=0) at auth-client-connection.c:71 result = 3485401184 reply_size = 3485400780 str = (string_t *) 0xcfbeff18 ret = 0 #7 0x1c005407 in auth_callback (request=0x0, result=3485401197, reply=0xcfbf007d,...
2004 Oct 26
0
dovecot-auth crash
#0 io_remove (io=0x0) at ioloop.c:51 51 if ((io->condition & IO_NOTIFY_MASK) != 0) { (gdb) bt #0 io_remove (io=0x0) at ioloop.c:51 #1 0x0804fbd8 in auth_client_connection_destroy_wait (conn=0x8083f10) at auth-client-connection.c:494 #2 0x0805093d in auth_callback (request=0x847e0f0, result=134681075, reply=0x0, reply_size=0) at auth-client-connection.c:104 #3 0x080507c0 in auth_client_input (context=0x8083f10) at auth-client-connection.c:286 #4 0x0805f042 in io_loop_handler_run (ioloop=0x8082b88) at ioloop-poll.c:184 #5 0x0805e4e8 in io_loop_run (ioloop=...
2015 May 14
1
[PATCH] When calling getline first time, initialize length to zero.
...p; char *ret = NULL; - size_t allocsize; + size_t allocsize = 0; pp = popen (cmd, "r"); if (pp == NULL) diff --git a/examples/libvirt-auth.c b/examples/libvirt-auth.c index 699dd87..8a5db77 100644 --- a/examples/libvirt-auth.c +++ b/examples/libvirt-auth.c @@ -109,7 +109,7 @@ auth_callback (guestfs_h *g, size_t i; char *prompt; char *reply = NULL; - size_t allocsize; + size_t allocsize = 0; char *pass; ssize_t len; int r; diff --git a/fuse/test-fuse.c b/fuse/test-fuse.c index 84d58e8..6e91d71 100644 --- a/fuse/test-fuse.c +++ b/fuse/test-fuse.c @@ -250,7 +250,7 @@...
2012 Oct 13
0
[PATCH] New APIs: Model libvirt authentication events through the API.
...ot;called 'foo' and list some information about its filesystems.\n" + "\n" + "The important point of this example is that any libvirt authentication\n" + "required to connect to the server should be done.\n" + "\n"); +} + +static void auth_callback (guestfs_h *g, void *opaque, uint64_t event, int event_handle, int flags, const char *buf, size_t buf_len, const uint64_t *array, size_t array_len); + +int +main (int argc, char *argv[]) +{ + const char *uri, *dom; + guestfs_h *g; + const char *creds[] = { "authname", "passphrase&...
2004 Oct 28
3
new crash in dovecot-auth test51
#0 io_remove (io=0x0) at ioloop.c:51 51 if ((io->condition & IO_NOTIFY_MASK) != 0) { (gdb) bt #0 io_remove (io=0x0) at ioloop.c:51 #1 0x0804fd68 in auth_client_connection_destroy_wait (conn=0x80877d8) at auth-client-connection.c:494 #2 0x08050acd in auth_callback (request=0x84716b8, result=134681554, reply=0x0, reply_size=0) at auth-client-connection.c:104 #3 0x08050950 in auth_client_input (context=0x80877d8) at auth-client-connection.c:286 #4 0x0805f170 in io_loop_handler_run (ioloop=0x80898a8) at ioloop-epoll.c:243 #5 0x0805e698 in io_loop_run (ioloop...
2016 Apr 04
0
[PATCH 2/2] Use 'error' function for fprintf followed by exit.
...t (EXIT_FAILURE); - } + if (r != expected) + error (EXIT_FAILURE, 0, + "test failed: u=%s p=%s: got %d expected %d", + auth_data->username, auth_data->password ? : "(none)", + r, expected); guestfs_close (g); } @@ -161,18 +154,18 @@ auth_callback (guestfs_h *g, void *opaque, } else if (STREQ (creds[i], "passphrase") || STREQ (creds[i], "noechoprompt")) { - if (!auth_data->password) { - fprintf (stderr, "test failed: libvirt asked for a password, but auth_data->password == NU...
2015 Oct 05
0
[PATCH 2/2] Fix whitespace.
...ot;called 'foo' and list some information about its filesystems.\n" + "\n" + "The important point of this example is that any libvirt authentication\n" + "required to connect to the server should be done.\n" + "\n"); } static void auth_callback (guestfs_h *g, void *opaque, uint64_t event, int event_handle, int flags, const char *buf, size_t buf_len, const uint64_t *array, size_t array_len); diff --git a/fish/destpaths.c b/fish/destpaths.c index a0713ff..02034e9 100644 --- a/fish/destpaths.c +++ b/fish/destpaths.c @@ -45,8 +45,8 @@ siz...
2015 Oct 05
3
[PATCH 1/2] Change 'fprintf (stdout,...)' -> printf.
Result of earlier copy and paste. --- align/scan.c | 35 ++++++++++--------- cat/cat.c | 39 +++++++++++---------- cat/filesystems.c | 69 +++++++++++++++++++------------------- cat/log.c | 35 ++++++++++--------- cat/ls.c | 61 +++++++++++++++++---------------- df/main.c | 43 ++++++++++++------------ diff/diff.c | 67
2016 Apr 04
2
[PATCH 1/2] Use 'error' function consistently throughout.
Wherever we had code which did: if (something_bad) { perror (...); exit (EXIT_FAILURE); } replace this with use of the error(3) function: if (something_bad) error (EXIT_FAILURE, errno, ...); The error(3) function is supplied by glibc, or by gnulib on platforms which don't have it, and is much more flexible than perror(3). Since we already use error(3), there seems to be