search for: pam_passdb_modul

Displaying 3 results from an estimated 3 matches for "pam_passdb_modul".

Did you mean: pam_passdb_module
2014 Apr 24
0
Help implementing username_format in auth PAM driver
.../auth/passdb-pam.c b/src/auth/passdb-pam.c index cf0b3c9..5f42a5a 100644 --- a/src/auth/passdb-pam.c +++ b/src/auth/passdb-pam.c @@ -37,6 +37,7 @@ typedef pam_const void *pam_item_t; #define PASSDB_PAM_DEFAULT_MAX_REQUESTS 100 +#define PASSDB_PAM_DEFAULT_USERNAME_FORMAT "%u" struct pam_passdb_module { struct passdb_module module; @@ -47,6 +48,7 @@ struct pam_passdb_module { unsigned int pam_setcred:1; unsigned int pam_session:1; unsigned int failure_show_msg:1; + const char *username_format; }; struct pam_conv_context { @@ -55,6 +57,17 @@ struct pam_conv_context { const char *fa...
2014 Dec 12
0
PATCH - add username_format to the PAM auth module
...ocessing - but in this use case we must disable this function. -- Brad. -------------- next part -------------- --- dovecot-2.2.10/src/auth/passdb-pam.c.orig 2014-12-11 22:48:47.861478049 +0000 +++ dovecot-2.2.10/src/auth/passdb-pam.c 2014-12-12 11:25:23.304742138 +0000 @@ -41,12 +41,13 @@ struct pam_passdb_module { struct passdb_module module; - const char *service_name, *pam_cache_key; + const char *service_name, *pam_cache_key, *username_format; unsigned int requests_left; unsigned int pam_setcred:1; unsigned int pam_session:1; unsigned int failure_show_msg:1; + unsigned int pam_allow_trans...
2009 Feb 19
2
auth-worker always opens PAM session
...args = dovecot [session=yes] [setcred=yes] [failure_show_msg=yes] [cache_key=<key>] [<service name>] session=yes makes Dovecot open and immediately close PAM session. Some PAM plugins need this to work, such as pam_mkhomedir. I checked the source code in passdb-pam.c: struct pam_passdb_module { struct passdb_module module; const char *service_name, *pam_cache_key; unsigned int pam_setcred:1; unsigned int pam_session:1; unsigned int failure_show_msg:1; }; And this: /* -session for backwards compatibility */ if (strcmp(t_args[i], "-session") == 0 || strcmp(t_ar...