search for: passdb_result

Displaying 12 results from an estimated 12 matches for "passdb_result".

2005 Feb 23
0
Build error in stable branch
Hi guys, Just tested yesterday's stable build, when including SQL into the build I am getting an error on like 86 of passdb-sql.c (passdb_result = PASSDB_RESULT_OK;) It rightly says passdb_result is undeclared. Commenting out this line fixes it and build appears to work fine after that. Regards Andrew -- Andrew Hutchings Linux Guru Netserve Consultants Ltd. http://www.domaincity.co.uk/
2017 Nov 18
2
Dovecots header files not optimized for external plugins
...ors keep coming. The use of g++ is mandated as the underlying backend this plugin will access only has a C++ interface. == Source 1 /* g++-7 -c a.cpp */ #include <byteswap.h> #include <dovecot/lib.h> #include <dovecot/auth-request.h> #include <dovecot/passdb.h> static enum passdb_result authdb_mapi_logon(struct auth_request *rq, const char *password) { int x = dev_null_fd + bswap_16(1); } == Problems 1 /usr/include/dovecot/compat.h:45:4: error: #error uoff_t size not set # error uoff_t size not set == Source 2 /* g++-7 -DHAVE_CONFIG_H -c a.cpp */ #include "config....
2008 Dec 08
3
"nopassword" extra field useless with LDAP passdb
Hi, We are trying to implement a highly secure mail server with user authentication restricted to SSL certificates only (not using passwords at all). Still, user information is stored in a LDAP directory. In this configuration LDAP is used to check whether the user is registered (and probably supply quota and other info), and actual authentication is done by SSL layer. According to wiki, a
2005 Jan 26
2
How to run in debug format for SSL testing?
Help, new to dovecot... I want to get some output from my test sessions to confirm that SSL pop and imap are working. How does one get debug output from dovecot? How does one see that dovecot is using SSL in a transaction? I configured dovecot 0.99.13 with: CC=gcc CPPFLAGS=-I/opt/openssl/include LDFLAGS=-L/opt/openssl/lib \ ./configure --prefix=/opt/dovecot --with-ssl=openssl \
2016 Jul 09
4
passdb {driver = shadow args = override_username=%variable}
...ather not implement it. What I really want is to be able to leverage Dovecot's var_expand() call, which, looking at the code, appears to be the function responsible for %variable expansion and formatting. The relevant piece of code seems to be this excerpt in auth/passdb-shadow.c: static enum passdb_result shadow_lookup(struct auth_request *request, struct spwd **spw_r) { auth_request_log_debug(request, AUTH_SUBSYS_DB, "lookup"); *spw_r = getspnam(request->user); if (*spw_r == NULL) { auth_request_log_unknown_user(request, AUTH_SUBSYS_DB);...
2014 Dec 12
0
PATCH - add username_format to the PAM auth module
...error(pamh, status)); return status; } - auth_request_set_field(request, "user", item, NULL); + if (module->pam_allow_transform) + { + auth_request_set_field(request, "user", item, NULL); + } return PAM_SUCCESS; } @@ -257,6 +270,11 @@ struct pam_conv conv; enum passdb_result result; int status, status2; + const struct var_expand_table *table; + string_t *username; + + struct passdb_module *_module = request->passdb->passdb; + struct pam_passdb_module *module = (struct pam_passdb_module *)_module; conv.conv = pam_userpass_conv; conv.appdata_p...
2012 Jun 20
0
Problem with Dovecot 2.0/2.1 and MySQL 5.1
...216be49381eb03d180103cdf6eb90483" fields_count = 2 name = 0x0 #1 sql_query_callback (result=0x7fb891e82f60, sql_request=0x7fb891e82c08) at passdb-sql.c:87 auth_request = 0x7fb891e82a80 _module = <optimized out> module = <optimized out> passdb_result = PASSDB_RESULT_INTERNAL_FAILURE password = 0x0 scheme = <optimized out> ret = <optimized out> __FUNCTION__ = "sql_query_callback" #2 0x00007fb891c3c940 in driver_sqlpool_query_callback (result=0x7fb891e82f60, request=0x7fb891e82e50...
2004 Jul 22
1
[PATCH] add LOGIN authentication mechanism
...se as published + * by the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + */ + +#include "common.h" +#include "mech.h" +#include "passdb.h" +#include "safe-memset.h" + +static void verify_callback(enum passdb_result result, + struct auth_request *request) +{ + mech_auth_finish(request, NULL, 0, result == PASSDB_RESULT_OK); +} + +static int +mech_login_auth_continue(struct auth_request *auth_request, + const unsigned char *data, size_t data_size, + mech_callback_t *callback) +{ + struct auth_client_...
2020 Mar 30
2
Panic/Assert dns-lookup.c
...c932881628) at auth-request.c:1193 passdb = <optimized out> __func__ = "auth_request_verify_plain_callback" #16 0x00007f279faaa0dc in ldap_lookup_finish (res=<optimized out>, ldap_request=0x55c93287d250, auth_request=0x55c932881628) at passdb-ldap.c:112 passdb_result = PASSDB_RESULT_USER_UNKNOWN ret = <optimized out> password = 0x0 scheme = <optimized out> #17 ldap_lookup_pass_callback (conn=<optimized out>, request=0x55c93287d250, res=<optimized out>) at passdb-ldap.c:126 ldap_request = 0x55c93287d250...
2012 Oct 02
2
[PATCH] Add SCRAM-SHA-1 password scheme
...ignature, 0, sizeof(client_signature)); - return memcmp(client_signature, request->proof->data, - request->proof->used) == 0; + return memcmp(stored_key, request->stored_key->data, + request->stored_key->used) == 0; } static void credentials_callback(enum passdb_result result, const unsigned char *credentials, size_t size, struct auth_request *auth_request) { + const char *const *fields; + size_t len; + int iter; + const char *salt; struct scram_auth_request *request = (struct scram_auth_request *)auth_request; - const char *server_final_message...
2020 Mar 30
2
Panic/Assert dns-lookup.c
Hi, currently we deploying Dovecot as imap/pop3 proxy. Every few minutes some panic/assert occurred (we connect roughly 7k - 8k user at one imap proxy with a connection rate of 200/s). We activate core dumps. Concerning the sensitive information in the dump we would prefer to not share the dump (e.g. i found our ssl private key in the dump). Log/Stack trace: Mar 30 15:54:06 imap16 dovecot:
2004 Aug 09
1
[PATCH] RPA authentication mechanism
...dovecot-1.0-test32/src/auth/passdb.h 2004-08-07 22:35:50.000000000 +0400 @@ -14,7 +14,8 @@ enum passdb_credentials { PASSDB_CREDENTIALS_CRAM_MD5, PASSDB_CREDENTIALS_DIGEST_MD5, PASSDB_CREDENTIALS_LANMAN, - PASSDB_CREDENTIALS_NTLM + PASSDB_CREDENTIALS_NTLM, + PASSDB_CREDENTIALS_RPA }; enum passdb_result { diff -urpNX /usr/share/dontdiff dovecot-1.0-test32.vanilla/src/auth/password-scheme.c dovecot-1.0-test32/src/auth/password-scheme.c --- dovecot-1.0-test32.vanilla/src/auth/password-scheme.c 2004-07-30 05:40:29.000000000 +0400 +++ dovecot-1.0-test32/src/auth/password-scheme.c 2004-08-07 23:09:27.0...