Задать вопрос
@druoleg
DevOps'твующий

Как собрать NTLM-плагин для apache2?

Всем привет!

Занимаюсь установкой Redmine по статье:
habrahabr.ru/company/monandco/blog/198496

Застрял на шаге:
rvmsudo /usr/local/rvm/gems/rby-1.9.3-head@rails3/gems/passenger-4.0.48/bin/passenger-install-apache2-module


А именно получаю ошибку:
Sanity checking Apache installation...
AH00526: Syntax error on line 14 of /etc/apache2/sites-enabled/redmine.conf:
Invalid command 'NTLMAuth', perhaps misspelled or defined by a module not included in the server configuration
AH00526: Syntax error on line 14 of /etc/apache2/sites-enabled/redmine.conf:
Invalid command 'NTLMAuth', perhaps misspelled or defined by a module not included in the server configuration
Your Apache installation might be broken


Если я правильно понимаю - проблема в том, что не собрался NTLM-плагин и апач не понимает, что за модуль авторизации его просят использовать.

При сборке
apxs2 -i -a -c mod_ntlm.c
получаю ошибки\варниги: (весь лог не поместился)
Line 16: mod_ntlm.c:78:5: error: format not a string literal and no format arguments [-Werror=format-security]
Line 20: mod_ntlm.c:95:5: error: format not a string literal and no format arguments [-Werror=format-security]
Line 34: /usr/include/apache2/http_config.h:573:9: error: request for member 'log' in something not a structure or union
Line 55: /usr/include/apache2/http_config.h:573:32: error: request for member 'log' in something not a structure or union
Line 76: /usr/include/apache2/http_config.h:574:9: error: request for member 'connection' in something not a structure or union
Line 97: /usr/include/apache2/http_config.h:574:32: error: request for member 'connection' in something not a structure or union
Line 118: /usr/include/apache2/http_config.h:575:10: error: request for member 'server' in something not a structure or union
Line 139: /usr/include/apache2/http_config.h:573:9: error: request for member 'log' in something not a structure or union
Line 160: /usr/include/apache2/http_config.h:573:32: error: request for member 'log' in something not a structure or union
Line 181: /usr/include/apache2/http_config.h:574:9: error: request for member 'connection' in something not a structure or union
Line 202: /usr/include/apache2/http_config.h:574:32: error: request for member 'connection' in something not a structure or union
Line 223: /usr/include/apache2/http_config.h:575:10: error: request for member 'server' in something not a structure or union
Line 244: /usr/include/apache2/http_config.h:573:9: error: request for member 'log' in something not a structure or union
Line 265: /usr/include/apache2/http_config.h:573:32: error: request for member 'log' in something not a structure or union
Line 286: /usr/include/apache2/http_config.h:574:9: error: request for member 'connection' in something not a structure or union
Line 307: /usr/include/apache2/http_config.h:574:32: error: request for member 'connection' in something not a structure or union
Line 328: /usr/include/apache2/http_config.h:575:10: error: request for member 'server' in something not a structure or union
Line 349: /usr/include/apache2/http_config.h:573:9: error: request for member 'log' in something not a structure or union
Line 370: /usr/include/apache2/http_config.h:573:32: error: request for member 'log' in something not a structure or union
Line 391: /usr/include/apache2/http_config.h:574:9: error: request for member 'connection' in something not a structure or union
Line 412: /usr/include/apache2/http_config.h:574:32: error: request for member 'connection' in something not a structure or union
Line 433: /usr/include/apache2/http_config.h:575:10: error: request for member 'server' in something not a structure or union
Line 469: cc1: some warnings being treated as errors
Line 5: ntlmssp.inc.c:307:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Line 9: mod_ntlm.c:66:13: warning: conflicting types for built-in function 'log' [enabled by default]
Line 13: mod_ntlm.c:74:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Line 24: mod_ntlm.c:214:2: warning: implicit declaration of function 'unixd_set_global_mutex_perms' [-Wimplicit-function-declaration]
Line 28: mod_ntlm.c:455:2: warning: format '%u' expects argument of type 'unsigned int', but argument 3 has type 'long int' [-Wformat=]
Line 455: mod_ntlm.c:779:3: warning: format '%u' expects argument of type 'unsigned int', but argument 3 has type 'long int' [-Wformat=]
Line 459: mod_ntlm.c:833:5: warning: implicit declaration of function 'ap_requires' [-Wimplicit-function-declaration]
Line 462: mod_ntlm.c:833:42: warning: initialization makes pointer from integer without a cast [enabled by default]
Line 466: mod_ntlm.c:202:8: warning: ignoring return value of 'tmpnam', declared with attribute warn_unused_result [-Wunused-result]
Line 469: cc1: some warnings being treated as errors


Что делаю не так?
  • Вопрос задан
  • 3292 просмотра
Подписаться 2 Оценить Комментировать
Решения вопроса 1
@druoleg Автор вопроса
DevOps'твующий
Отказался от этого бородатого плагина в сторону LDAP-авторизации.
Ответ написан
Комментировать
Пригласить эксперта
Ответы на вопрос 1
merryjane
@merryjane
Системный администратор
А откуда mod_ntlm скачивали?
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы