diff options
| author | Sam Varshavchik | 2020-05-18 21:37:56 -0400 |
|---|---|---|
| committer | Sam Varshavchik | 2020-05-18 21:37:56 -0400 |
| commit | ab6072c1833362b7e88fea3e985f24f113e53038 (patch) | |
| tree | e14d37dd9b479a9ca28622e910e2323b5fab3b89 | |
| parent | 1254414ce5fa07c5c8e2e51c547ee8646fc31879 (diff) | |
| download | courier-libs-ab6072c1833362b7e88fea3e985f24f113e53038.tar.bz2 | |
Update maildrop standalone to new courier-authlib.
| -rw-r--r-- | maildrop/configure.ac | 5 | ||||
| -rw-r--r-- | maildrop/main.C | 8 |
2 files changed, 11 insertions, 2 deletions
diff --git a/maildrop/configure.ac b/maildrop/configure.ac index 38c7bc3..f48b38a 100644 --- a/maildrop/configure.ac +++ b/maildrop/configure.ac @@ -130,6 +130,11 @@ AUTHLIB=0 if test "$COURIERAUTHCONFIG" != "" then + if test `$COURIERAUTHCONFIG --version=0.70.0.20200518` = "no" + then + AC_MSG_ERROR(Courier authentication library version 0.71 is required.) + fi + AUTHINCLUDE=`$COURIERAUTHCONFIG --cppflags` AUTHLDADD="`$COURIERAUTHCONFIG --ldflags` -lcourierauth" AUTHLIB=1 diff --git a/maildrop/main.C b/maildrop/main.C index c503863..df0c8ac 100644 --- a/maildrop/main.C +++ b/maildrop/main.C @@ -361,8 +361,12 @@ static int callback_authlib(struct authinfo *auth, int find_in_authlib(Maildrop *maildrop, const char* user) { - int rc=auth_getuserinfo("login", - user, callback_authlib, maildrop); + struct auth_meta meta; + + memset(&meta, 0, sizeof(meta)); + + int rc=auth_getuserinfo_meta(&meta, "login", + user, callback_authlib, maildrop); if (rc == 0) return 1; |
