]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Build OpenDirectory on Apple
authorAlan T. DeKok <aland@freeradius.org>
Wed, 10 Jun 2015 16:34:25 +0000 (12:34 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 10 Jun 2015 16:34:25 +0000 (12:34 -0400)
src/modules/rlm_mschap/rlm_mschap.c
src/modules/rlm_mschap/rlm_mschap.h

index 30417133a6c7bcaf05ec3609e61c8d4991705f2f..3cf4296d664c3a5d2fed000490129661e1978cc7 100644 (file)
@@ -43,7 +43,7 @@ USES_APPLE_DEPRECATED_API     /* OpenSSL API has been deprecated by Apple */
 #  include     <openssl/rc4.h>
 #endif
 
-#ifdef WITH_OPEN_DIRECTORY
+#ifdef __APPLE__
 int od_mschap_auth(REQUEST *request, VALUE_PAIR *challenge, VALUE_PAIR * usernamepair);
 #endif
 
@@ -557,7 +557,7 @@ static const CONF_PARSER module_config[] = {
        { "retry_msg", FR_CONF_OFFSET(PW_TYPE_STRING, rlm_mschap_t, retry_msg), NULL },
        { "winbind_username", FR_CONF_OFFSET(PW_TYPE_STRING | PW_TYPE_TMPL, rlm_mschap_t, wb_username), NULL },
        { "winbind_domain", FR_CONF_OFFSET(PW_TYPE_STRING | PW_TYPE_TMPL, rlm_mschap_t, wb_domain), NULL },
-#ifdef WITH_OPEN_DIRECTORY
+#ifdef __APPLE__
        { "use_open_directory", FR_CONF_OFFSET(PW_TYPE_BOOLEAN, rlm_mschap_t, open_directory), "yes" },
 #endif
 
@@ -1815,7 +1815,7 @@ static rlm_rcode_t CC_HINT(nonnull) mod_authenticate(void * instance, REQUEST *r
                                username->vp_strvalue, response_name->vp_strvalue);
                }
 
-#ifdef WITH_OPEN_DIRECTORY
+#ifdef __APPLE__
                /*
                 *  No "known good" NT-Password attribute.  Try to do
                 *  OpenDirectory authentication.
index 50bf8853de83f558a91af112f19a165d0762d6bb..1ce1ad4a08c8caffdc97407d0615619eab5351de 100644 (file)
@@ -39,7 +39,7 @@ typedef struct rlm_mschap_t {
        vp_tmpl_t               *wb_username;
        vp_tmpl_t               *wb_domain;
        fr_connection_pool_t    *wb_pool;
-#ifdef WITH_OPEN_DIRECTORY
+#ifdef __APPLE__
        bool                    open_directory;
 #endif
 } rlm_mschap_t;