From 0cb3f6098d959479a96c26a92d91becc2110b30d Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Wed, 11 Jun 2008 21:48:27 +0000 Subject: Support getting groups from the server and limiting access based on LDAP groups. See #112 --- daemon/bd.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'daemon/bd.h') diff --git a/daemon/bd.h b/daemon/bd.h index a42af68..1697cfb 100644 --- a/daemon/bd.h +++ b/daemon/bd.h @@ -39,8 +39,8 @@ * HA_OK: completed successfully * HA_FAILED: error retrieving hash (should have logged error) */ -typedef int (*bd_validate_digest)(ha_request_t* rq, - const char* user, digest_context_t* dg); +typedef int (*bd_validate_digest)(ha_request_t* rq, const char* user, + digest_context_t* dg, char ***groups); /* * A callback for validating a given user's password. @@ -50,8 +50,8 @@ typedef int (*bd_validate_digest)(ha_request_t* rq, * HA_FALSE: invalid password * HA_FAILED: error validating (should have logged error) */ -typedef int (*bd_validate_basic)(ha_request_t* rq, - const char* user, const char* password); +typedef int (*bd_validate_basic) (ha_request_t *rq, const char *user, + const char *password, char ***groups); /* * Escapes a value for sending to 'server' @@ -71,6 +71,7 @@ typedef struct bd_context /* Require locking --------------------------------------*/ hsh_t* cache; /* Some cached records or basic */ + unsigned int cache_max; /* Maximum number of records in cache */ } bd_context_t; -- cgit v1.2.3