All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
rlm_opendirectory.c File Reference

Allows authentication against OpenDirectory and enforces ACLS. More...

#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
#include <freeradius-devel/rad_assert.h>
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include <grp.h>
#include <pwd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <DirectoryService/DirectoryService.h>
#include <membership.h>
+ Include dependency graph for rlm_opendirectory.c:

Go to the source code of this file.


#define kAuthType   "opendirectory"
#define kRadiusSACLName   ""
#define kRadiusServiceName   "radius"


static rlm_rcode_t CC_HINT (nonnull)
int mbr_check_membership_refresh (uuid_t const user, uuid_t group, int *ismember)
USES_APPLE_DEPRECATED_API int mbr_check_service_membership (uuid_t const user, char const *servicename, int *ismember)
static long od_check_passwd (REQUEST *request, char const *uname, char const *password)


module_t rlm_opendirectory

Detailed Description

Allows authentication against OpenDirectory and enforces ACLS.


authentication: Apple Open Directory authentication authorization: enforces ACLs

Definition in file rlm_opendirectory.c.

Macro Definition Documentation

#define kAuthType   "opendirectory"

Definition at line 58 of file rlm_opendirectory.c.

#define kRadiusSACLName   ""

Definition at line 55 of file rlm_opendirectory.c.

#define kRadiusServiceName   "radius"

Definition at line 56 of file rlm_opendirectory.c.

Function Documentation

static rlm_rcode_t CC_HINT ( nonnull  )

Definition at line 284 of file rlm_opendirectory.c.

+ Here is the call graph for this function:

int mbr_check_membership_refresh ( uuid_t const  user,
uuid_t  group,
int *  ismember 
USES_APPLE_DEPRECATED_API int mbr_check_service_membership ( uuid_t const  user,
char const *  servicename,
int *  ismember 
static long od_check_passwd ( REQUEST request,
char const *  uname,
char const *  password 

Definition at line 66 of file rlm_opendirectory.c.

+ Here is the caller graph for this function:

Variable Documentation

module_t rlm_opendirectory
Initial value:
= {
.name = "opendirectory",
.methods = {
static rlm_rcode_t mod_authorize(void *instance, REQUEST *request)
Handle authorization requests using Couchbase document data.
Module is threadsafe.
Definition: modules.h:75
Definition: modules.h:86
static rlm_rcode_t mod_authenticate(void *instance, REQUEST *request) CC_HINT(nonnull)
0 methods index for authenticate section.
Definition: modules.h:41
1 methods index for authorize section.
Definition: modules.h:42

Definition at line 475 of file rlm_opendirectory.c.