<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Apache and mod_ntlm in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/apache-and-mod-ntlm/m-p/4953003#M788071</link>
    <description>Hello, &lt;BR /&gt;&lt;BR /&gt;You need to have ansi-c compiler for this. Otherwise, which GCC version you used ? I have tried with GCC 3.4 and succeeded with NTLM. &lt;BR /&gt;&lt;BR /&gt;This link should be helpful to you, &lt;BR /&gt;&lt;A href="http://plone.org/documentation/how-to/singlesignonwindowsdomains" target="_blank"&gt;http://plone.org/documentation/how-to/singlesignonwindowsdomains&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;-Arun</description>
    <pubDate>Wed, 18 Jan 2006 02:34:54 GMT</pubDate>
    <dc:creator>Arunvijai_4</dc:creator>
    <dc:date>2006-01-18T02:34:54Z</dc:date>
    <item>
      <title>Apache and mod_ntlm</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/apache-and-mod-ntlm/m-p/4953000#M788068</link>
      <description>Hello there!&lt;BR /&gt;&lt;BR /&gt;I have an Apache 2.0 webserver installed in HP-UX 11iv2 system and I need users accessing the website to authenticate against MS domain controller. I searched the web for possibilities and found references to mod_ntlm module which, unfortunately, is not included in the Apache installation. I was able to get sources from sourceforge website but I am not able to compile it.&lt;BR /&gt;&lt;BR /&gt;Please give me some WORKING advice:&lt;BR /&gt;1) how to compile and use mod_ntlm in Apache&lt;BR /&gt;2) how to authenticate users on HP-UX / Apache website against MS primary domain controller&lt;BR /&gt;&lt;BR /&gt;Looking forward to hear from you soon.&lt;BR /&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;&lt;BR /&gt;Petr W.&lt;BR /&gt;&lt;BR /&gt;Unsuccessfull compilation:&lt;BR /&gt;radegast:/tmp/ntlm/mod_ntlm2-0.1 # make install&lt;BR /&gt;        apxs -c -o mod_ntlm.so -Wc,-shared mod_ntlm.c&lt;BR /&gt;/opt/hpws/apache/build/libtool --silent --mode=compile cc -prefer-pic +DD64 -D_HPUX_API_LEVEL=20040821 +Olit=const +O2 -D_USE_BIG_FDS -DWEBPROXY +z -DUSE_SSL -DCHROOT -D_USE_BIG_FDS -D_LARGEFILE_SOURCE -DFILE_OFFSET_SIZE=64 -DAUTH_LDAP_FRONTPAGE_HACK -I/home/cvspublic/crypto/hpcrypto/ia64_64/include -DSSL_EXPERIMENTAL_ENGINE  -DHPUX11 -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED -Ae +Z -I/include -I/opt/hpws/apache/include  -I/opt/hpws/apache/include   -I/opt/hpws/apache/include -I/opt/hpws/apache/ldap/include/  -shared  -c -o mod_ntlm.lo mod_ntlm.c &amp;amp;&amp;amp; touch mod_ntlm.slo&lt;BR /&gt;(Bundled) cc: warning 922: "+Olit=const" is unsupported in the bundled compiler, ignored.&lt;BR /&gt;(Bundled) cc: warning 922: "+O2" is unsupported in the bundled compiler, ignored.&lt;BR /&gt;(Bundled) cc: warning 922: "-Ae" is unsupported in the bundled compiler, ignored.&lt;BR /&gt;(Bundled) cc: warning 901: unknown option: `-hared': use +help for online documentation.&lt;BR /&gt;Warning 942: "ntlmssp.inc.c", line 136 # Types 'const char *' and 'unsigned&lt;BR /&gt;    char *' are not assignment-compatible.&lt;BR /&gt;        if (strncmp(msg-&amp;gt;protocol, "NTLMSSP", 8))&lt;BR /&gt;                    ^^^^^^^^^^^^^&lt;BR /&gt;Warning 942: "ntlmssp.inc.c", line 246 # Types 'unsigned char *' and 'char *'&lt;BR /&gt;    are not assignment-compatible.&lt;BR /&gt;        if (ntlm_extract_string(r, hostname, (char *) msg, msglen,&lt;BR /&gt;                                                      ^^^&lt;BR /&gt;Warning 942: "ntlmssp.inc.c", line 257 # Types 'unsigned char *' and 'char *'&lt;BR /&gt;    are not assignment-compatible.&lt;BR /&gt;        if (ntlm_extract_string(r, domainname, (char *) msg,&lt;BR /&gt;                                                        ^^^&lt;BR /&gt;Warning 942: "ntlmssp.inc.c", line 268 # Types 'unsigned char *' and 'char *'&lt;BR /&gt;    are not assignment-compatible.&lt;BR /&gt;        if (ntlm_extract_mem(r, lm, (char *) msg, msglen, msg-&amp;gt;lm_off,&lt;BR /&gt;                                             ^^^&lt;BR /&gt;Warning 942: "ntlmssp.inc.c", line 279 # Types 'unsigned char *' and 'char *'&lt;BR /&gt;    are not assignment-compatible.&lt;BR /&gt;        if (ntlm_extract_mem(r, nt, (char *) msg, msglen, msg-&amp;gt;nt_off,&lt;BR /&gt;                                             ^^^&lt;BR /&gt;Warning 942: "ntlmssp.inc.c", line 282 # Types 'unsigned char *' and 'char *'&lt;BR /&gt;    are not assignment-compatible.&lt;BR /&gt;                if (ntlm_extract_mem(r, nt, (char *) msg, msglen, msg-&amp;gt;lm_off,&lt;BR /&gt;                                                     ^^^&lt;BR /&gt;Warning 942: "ntlmssp.inc.c", line 296 # Types 'unsigned char *' and 'char *'&lt;BR /&gt;    are not assignment-compatible.&lt;BR /&gt;                if (ntlm_extract_unicode(r, username, (char *) msg, msglen,&lt;BR /&gt;                                                               ^^^&lt;BR /&gt;Warning 942: "ntlmssp.inc.c", line 301 # Types 'unsigned char *' and 'char *'&lt;BR /&gt;    are not assignment-compatible.&lt;BR /&gt;                if (ntlm_extract_string(r, username, (char *) msg, msglen,&lt;BR /&gt;                                                              ^^^&lt;BR /&gt;Warning 942: "ntlmssp.inc.c", line 322 # Types 'unsigned char *' and 'char *'&lt;BR /&gt;    are not assignment-compatible.&lt;BR /&gt;                if (ntlm_extract_unicode(r, hostname, (char *) msg, msglen,&lt;BR /&gt;                                                               ^^^&lt;BR /&gt;Warning 942: "ntlmssp.inc.c", line 328 # Types 'unsigned char *' and 'char *'&lt;BR /&gt;    are not assignment-compatible.&lt;BR /&gt;                if (ntlm_extract_string(r, hostname, (char *) msg, msglen,&lt;BR /&gt;                                                              ^^^&lt;BR /&gt;Warning 942: "ntlmssp.inc.c", line 343 # Types 'unsigned char *' and 'char *'&lt;BR /&gt;    are not assignment-compatible.&lt;BR /&gt;                if (ntlm_extract_unicode(r, domainname, (char *) msg, msglen,&lt;BR /&gt;                                                                 ^^^&lt;BR /&gt;Warning 942: "ntlmssp.inc.c", line 348 # Types 'unsigned char *' and 'char *'&lt;BR /&gt;    are not assignment-compatible.&lt;BR /&gt;                if (ntlm_extract_string(r, domainname, (char *) msg, msglen,&lt;BR /&gt;                                                                ^^^&lt;BR /&gt;Warning 942: "ntlmssp.inc.c", line 379 # Types 'char *' and 'unsigned char *'&lt;BR /&gt;    are not assignment-compatible.&lt;BR /&gt;        strcpy(msg-&amp;gt;protocol, "NTLMSSP");&lt;BR /&gt;               ^^^^^^^^^^^^^&lt;BR /&gt;Warning 942: "ntlmssp.inc.c", line 393 # Types 'char *' and 'unsigned char *'&lt;BR /&gt;    are not assignment-compatible.&lt;BR /&gt;        strcpy(msg-&amp;gt;protocol, "NTLMSSP");&lt;BR /&gt;               ^^^^^^^^^^^^^&lt;BR /&gt;Warning 942: "ntlmssp.inc.c", line 399 # Types 'unsigned char *' and 'char *'&lt;BR /&gt;    are not assignment-compatible.&lt;BR /&gt;                ntlm_put_in_unicode((char *)msg-&amp;gt;dom,domainname,&lt;BR /&gt;                                            ^^^^^^^^&lt;BR /&gt;Warning 942: "ntlmssp.inc.c", line 399 # Types 'unsigned char *' and 'char *'&lt;BR /&gt;    are not assignment-compatible.&lt;BR /&gt;                ntlm_put_in_unicode((char *)msg-&amp;gt;dom,domainname,&lt;BR /&gt;                                                     ^^^^^^^^^^&lt;BR /&gt;Warning 942: "ntlmssp.inc.c", line 410 # Types 'char *' and 'unsigned char *'&lt;BR /&gt;    are not assignment-compatible.&lt;BR /&gt;                strncpy(msg-&amp;gt;dom,domainname,len);&lt;BR /&gt;                        ^^^^^^^^&lt;BR /&gt;Warning 267: "smbval/smblib.inc.c", line 25 # Inconsistent linkage in&lt;BR /&gt;    declarations of "int SMBlib_errno"; previously was extern now is declared&lt;BR /&gt;    static.&lt;BR /&gt;    static int SMBlib_errno;&lt;BR /&gt;               ^^^^^^^^^^^^&lt;BR /&gt;Warning 267: "smbval/smblib.inc.c", line 26 # Inconsistent linkage in&lt;BR /&gt;    declarations of "int SMBlib_SMB_Error"; previously was extern now is&lt;BR /&gt;    declared static.&lt;BR /&gt;    static int SMBlib_SMB_Error;&lt;BR /&gt;               ^^^^^^^^^^^^^^^^&lt;BR /&gt;Warning 267: "smbval/smblib.inc.c", line 35 # Inconsistent linkage in&lt;BR /&gt;    declarations of "SMB_State_Types SMBlib_State"; previously was extern now&lt;BR /&gt;    is declared static.&lt;BR /&gt;    static SMB_State_Types SMBlib_State;&lt;BR /&gt;                           ^^^^^^^^^^^^&lt;BR /&gt;Warning 942: "mod_ntlm.c", line 206 # Types 'const char *' and 'unsigned char&lt;BR /&gt;    *' are not assignment-compatible.&lt;BR /&gt;        len = apr_base64_encode(encoded, string, len);&lt;BR /&gt;                                         ^^^^^^&lt;BR /&gt;Warning 942: "mod_ntlm.c", line 395 # Types 'unsigned char *' and 'char *' are&lt;BR /&gt;    not assignment-compatible.&lt;BR /&gt;        line = apr_pstrdup(r-&amp;gt;pool, NTLM_AUTH_NAME);&lt;BR /&gt;        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;Warning 942: "mod_ntlm.c", line 399 # Types 'const char *' and 'unsigned char&lt;BR /&gt;    *' are not assignment-compatible.&lt;BR /&gt;                      line);&lt;BR /&gt;                      ^^^^&lt;BR /&gt;Warning 942: "mod_ntlm.c", line 401 # Types 'unsigned char *' and 'char *' are&lt;BR /&gt;    not assignment-compatible.&lt;BR /&gt;            line = apr_pstrcat(r-&amp;gt;pool,&lt;BR /&gt;            ^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;Warning 942: "mod_ntlm.c", line 406 # Types 'const char *' and 'unsigned char&lt;BR /&gt;    *' are not assignment-compatible.&lt;BR /&gt;                          line);&lt;BR /&gt;                          ^^^^&lt;BR /&gt;Warning 942: "mod_ntlm.c", line 491 # Types 'unsigned char *' and 'char *' are&lt;BR /&gt;    not assignment-compatible.&lt;BR /&gt;                ntlm_encode_msg2(ntlm_connection-&amp;gt;nonce, &amp;amp;msg);&lt;BR /&gt;                                 ^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;Warning 942: "mod_ntlm.c", line 492 # Types 'unsigned char *' and 'char *' are&lt;BR /&gt;    not assignment-compatible.&lt;BR /&gt;                challenge = uuencode_binary(r-&amp;gt;pool, (unsigned char *) &amp;amp;msg, si&lt;BR /&gt;                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;Warning 942: "mod_ntlm.c", line 495 # Types 'unsigned char *' and 'char *' are&lt;BR /&gt;    not assignment-compatible.&lt;BR /&gt;                l=ntlm_encode_msg2_win9x(ntlm_connection-&amp;gt;nonce, &amp;amp;msg_win9x,&lt;BR /&gt;                                         ^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;Warning 942: "mod_ntlm.c", line 497 # Types 'unsigned char *' and 'char *' are&lt;BR /&gt;    not assignment-compatible.&lt;BR /&gt;                challenge = uuencode_binary(r-&amp;gt;pool, (unsigned char *)&amp;amp;msg_win9&lt;BR /&gt;                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;Warning 942: "mod_ntlm.c", line 518 # Types 'const char *' and 'unsigned char&lt;BR /&gt;    *' are not assignment-compatible.&lt;BR /&gt;            if ((!strcmp(ntlm_connection-&amp;gt;user, ntlmssp-&amp;gt;user))&lt;BR /&gt;                                                ^^^^^^^^^^^^^&lt;BR /&gt;Warning 942: "mod_ntlm.c", line 519 # Types 'const char *' and 'unsigned char&lt;BR /&gt;    *' are not assignment-compatible.&lt;BR /&gt;                &amp;amp;&amp;amp; (!strcmp(ntlm_connection-&amp;gt;domain, ntlmssp-&amp;gt;domain))&lt;BR /&gt;                                                     ^^^^^^^^^^^^^^^&lt;BR /&gt;Warning 942: "mod_ntlm.c", line 537 # Types 'const char *' and 'unsigned char&lt;BR /&gt;    *' are not assignment-compatible.&lt;BR /&gt;        ntlm_connection-&amp;gt;user = apr_pstrdup(r-&amp;gt;connection-&amp;gt;pool, ntlmssp-&amp;gt;user);&lt;BR /&gt;                                                                 ^^^^^^^^^^^^^&lt;BR /&gt;Warning 942: "mod_ntlm.c", line 539 # Types 'const char *' and 'unsigned char&lt;BR /&gt;    *' are not assignment-compatible.&lt;BR /&gt;            ? apr_pstrdup(r-&amp;gt;connection-&amp;gt;pool, ntlmssp-&amp;gt;domain)&lt;BR /&gt;                                               ^^^^^^^^^^^^^^^&lt;BR /&gt;Warning 942: "mod_ntlm.c", line 703 # Types 'const char *' and 'unsigned char&lt;BR /&gt;    *' are not assignment-compatible.&lt;BR /&gt;             if ((strcmp(ntlmssp-&amp;gt;host,"")==0) &amp;amp;&amp;amp; (strcmp(ntlmssp-&amp;gt;domain,"")==&lt;BR /&gt;                         ^^^^^^^^^^^^^&lt;BR /&gt;Warning 942: "mod_ntlm.c", line 703 # Types 'const char *' and 'unsigned char&lt;BR /&gt;    *' are not assignment-compatible.&lt;BR /&gt;             if ((strcmp(ntlmssp-&amp;gt;host,"")==0) &amp;amp;&amp;amp; (strcmp(ntlmssp-&amp;gt;domain,"")==&lt;BR /&gt;                                                          ^^^^^^^^^^^^^^^&lt;BR /&gt;Warning 863: "mod_ntlm.c", line 784 # Result of operator &amp;lt;&amp;lt; is widened from&lt;BR /&gt;    int to long.&lt;BR /&gt;            if (!(reqs[x].method_mask &amp;amp; (1 &amp;lt;&amp;lt; m)))&lt;BR /&gt;                                         ^^^^^^&lt;BR /&gt;/opt/hpws/apache/build/libtool --silent --mode=link cc +DD64 -Wl,-b -o mod_ntlm.la  -rpath /opt/hpws/apache/modules -module -avoid-version    mod_ntlm.lo&lt;BR /&gt;creating reloadable object files...&lt;BR /&gt;creating a temporary reloadable object file: .libs/mod_ntlm.la-1.o&lt;BR /&gt;using piecewise archive linking...&lt;BR /&gt;        apxs -i -a -n 'ntlm' mod_ntlm.so&lt;BR /&gt;/opt/hpws/apache/build/instdso.sh SH_LIBTOOL='/opt/hpws/apache/build/libtool' mod_ntlm.so /opt/hpws/apache/modules&lt;BR /&gt;/opt/hpws/apache/build/libtool --mode=install cp mod_ntlm.so /opt/hpws/apache/modules/&lt;BR /&gt;cp mod_ntlm.so /opt/hpws/apache/modules/mod_ntlm.so&lt;BR /&gt;cp: cannot access mod_ntlm.so: No such file or directory&lt;BR /&gt;apxs:Error: Command failed with rc=65536&lt;BR /&gt;.&lt;BR /&gt;*** Error exit code 1&lt;BR /&gt;&lt;BR /&gt;Stop.</description>
      <pubDate>Tue, 17 Jan 2006 14:52:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/apache-and-mod-ntlm/m-p/4953000#M788068</guid>
      <dc:creator>Petr Wunsch</dc:creator>
      <dc:date>2006-01-17T14:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Apache and mod_ntlm</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/apache-and-mod-ntlm/m-p/4953001#M788069</link>
      <description>Did you use gcc or HP's C compiler? I would expect that this requires gcc.&lt;BR /&gt;&lt;BR /&gt;Also, be aware that there are two, critical, unpatched security vulnarabilities in this mod:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://packetstormsecurity.org/0304-exploits/mod_ntlm.txt" target="_blank"&gt;http://packetstormsecurity.org/0304-exploits/mod_ntlm.txt&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;mark</description>
      <pubDate>Tue, 17 Jan 2006 15:57:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/apache-and-mod-ntlm/m-p/4953001#M788069</guid>
      <dc:creator>Mark Greene_1</dc:creator>
      <dc:date>2006-01-17T15:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Apache and mod_ntlm</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/apache-and-mod-ntlm/m-p/4953002#M788070</link>
      <description>I am aware of the vulnerabilities but I know no other solution.&lt;BR /&gt;&lt;BR /&gt;I tried to use both HP's C compiler and gcc - with the very same result.</description>
      <pubDate>Wed, 18 Jan 2006 02:19:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/apache-and-mod-ntlm/m-p/4953002#M788070</guid>
      <dc:creator>Petr Wunsch</dc:creator>
      <dc:date>2006-01-18T02:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Apache and mod_ntlm</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/apache-and-mod-ntlm/m-p/4953003#M788071</link>
      <description>Hello, &lt;BR /&gt;&lt;BR /&gt;You need to have ansi-c compiler for this. Otherwise, which GCC version you used ? I have tried with GCC 3.4 and succeeded with NTLM. &lt;BR /&gt;&lt;BR /&gt;This link should be helpful to you, &lt;BR /&gt;&lt;A href="http://plone.org/documentation/how-to/singlesignonwindowsdomains" target="_blank"&gt;http://plone.org/documentation/how-to/singlesignonwindowsdomains&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Wed, 18 Jan 2006 02:34:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/apache-and-mod-ntlm/m-p/4953003#M788071</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-01-18T02:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: Apache and mod_ntlm</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/apache-and-mod-ntlm/m-p/4953004#M788072</link>
      <description>All right - problem solved by using LDAP access. LDAP authentication using SSL is built into HP-UX distribution of Apache webserver and is well documented.</description>
      <pubDate>Wed, 01 Feb 2006 06:39:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/apache-and-mod-ntlm/m-p/4953004#M788072</guid>
      <dc:creator>Petr Wunsch</dc:creator>
      <dc:date>2006-02-01T06:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Apache and mod_ntlm</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/apache-and-mod-ntlm/m-p/4953005#M788073</link>
      <description>Problem with compiling mod_ntlm not solved. Solution found using LDAP access.</description>
      <pubDate>Wed, 01 Feb 2006 06:42:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/apache-and-mod-ntlm/m-p/4953005#M788073</guid>
      <dc:creator>Petr Wunsch</dc:creator>
      <dc:date>2006-02-01T06:42:27Z</dc:date>
    </item>
  </channel>
</rss>

