X-Git-Url: https://git.hcoop.net/hcoop/debian/courier-authlib.git/blobdiff_plain/6b9221b9fe5c2b44c301ca08a987d99b4add7a06..5459351437f2b7b2a08457e5397f8a8381986ffe:/courierauth.h diff --git a/courierauth.h b/courierauth.h index f22042f..38fcd1a 100644 --- a/courierauth.h +++ b/courierauth.h @@ -13,6 +13,9 @@ extern "C" { #endif +#if 0 +} +#endif /* Callback authentication structure: @@ -123,9 +126,29 @@ extern char *auth_getoption(const char *options, const char *keyword); int auth_callback_default(struct authinfo *ainfo); +/* +** If the AUTH_MKHOMEDIR_SKEL environment variable is set, and the +** authenticated account's home directory does not exist, the home directory +** gets created, with its initial contents copied from AUTH_MKHOMEDIR_SKEL +** which must be a directory, typically /etc/skel. +*/ + +int auth_mkhomedir(struct authinfo *info); + +/* +** Like auth_callback_default, but calls auth_mkhomedir(). +*/ + +int auth_callback_default_autocreate(struct authinfo *ainfo); + /* Utility function: escape LDAP special characters */ char *courier_auth_ldap_escape(const char *str); + +#if 0 +{ +#endif + #ifdef __cplusplus } #endif