- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: CIFS, Apache and Active Directory
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2010 11:40 PM
тАО01-13-2010 11:40 PM
CIFS, Apache and Active Directory
I am attempting to use the CIFS Server Administrator's Guide, Chapter 8 (Kerberos Support), Section 3 (HP-UX Kerberos Application Co-existence) as a guide to get both CIFS and Apache to both authenticate against AD. Both Apache and CIFS are the HP supplied packages. Software versions are:
HP-UX 11.23
hpuxwsApache B.2.0.58.00 HP-UX Apache-based Web Server
B8725AA A.02.03 HP CIFS Server
PHSS_34991 1.0 KRB5-Client Version 1.0 Cumulative patch
PHSS_31756 1.0 GSS-API Version 1.0 Cumulative patch
KRB5CLIENT D.1.3.5.07 Kerberos V5 Client Version 1.3.5.07
Here is my /etc/krb5.conf:
[libdefaults]
default_realm = MYREALM.COMPANY.COM
default_tkt_enctypes = DES-CBC-MD5
default_tgs_enctypes = DES-CBC-MD5
ccache_type = 2
###default_keytab_name = "WRFILE:/etc/krb5.keytab"
[realms]
MYREALM.COMPANY.COM = {
kdc = dc03.myrealm.company.com:88
admin_server = dc03.myrealm.company.com
}
[domain_realm]
.company.com = MYREALM.COMPANY.COM
[logging]
kdc = FILE:/var/log/krb5kdc.log
admin_server = FILE:/var/log/kadmin.log
default = FILE:/var/log/krb5lib.log
Here are the applicable parts of httpd.conf:
LoadModule auth_kerb_module modules/mod_auth_kerb.so
AuthType Kerberos
AuthName "Kerberos Login"
KrbMethodNegotiate on
KrbVerifyKDC off
KrbServiceName cifs
Krb5Keytab /etc/krb5.keytab
KrbSaveCredentials off
require valid-user
Apache starts without an error. From an XP client with IE 6, logged into the same AD domain as the CIFS/Apache server belongs to, I make a request for http://myserver.company.com/test. The browser presents me with a login dialog, and I enter my AD credentials. The server returns a page that says:
Bad Request
Your browser sent a request that this server could not understand.
Size of a request header field exceeds server limit.
Authorization: Negotiate YIId3AYGKwYBBQUCoIId0DCCHcygJDAiBgkqhkiC9xIBAgIG
Apache/2.0.58 HP-UX_Apache-based_Web_Server (Unix) DAV/2 mod_auth_kerb/5.0-rc6 Server at myserver.company.com Port 80
The Apache error_log has this entry:
[Wed Jan 13 23:26:32 2010] [error] [client 192.168.1.50] request failed: error reading the headers
Any help appreciated!
Thanks,
Jim Gallagher
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2010 12:14 AM
тАО01-14-2010 12:14 AM
Re: CIFS, Apache and Active Directory
Apache uses a directive called LogLevel.
http://httpd.apache.org/docs/2.0/mod/core.html#loglevel
Best regards,
Horia.
Horia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2010 07:42 AM
тАО01-14-2010 07:42 AM
Re: CIFS, Apache and Active Directory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2010 07:54 AM
тАО01-14-2010 07:54 AM
Re: CIFS, Apache and Active Directory
[Thu Jan 14 07:49:29 2010] [info] Digest: generating secret for digest authentication ...
[Thu Jan 14 07:49:29 2010] [info] Digest: done
[Thu Jan 14 07:49:29 2010] [info] LDAP: Built with OpenLDAP LDAP SDK
[Thu Jan 14 07:49:29 2010] [info] LDAP: SSL support unavailable
[Thu Jan 14 07:49:29 2010] [notice] Apache/2.0.58 HP-UX_Apache-based_Web_Server (Unix) DAV/2 mod_auth_kerb/5.0-rc6 configured -- resuming normal operations
[Thu Jan 14 07:49:29 2010] [info] Server built: Aug 1 2006 19:51:28
[Thu Jan 14 07:49:29 2010] [debug] worker.c(1761): AcceptMutex: sysvsem (default: sysvsem)
[Thu Jan 14 07:49:30 2010] [debug] util_ldap.c(1697): Initialisation of global mutex /opt/hpws/apache/ in child process 24056 successful.
[Thu Jan 14 07:49:42 2010] [debug] src/mod_auth_kerb.c(1322): [client 192.168.1.50] kerb_authenticate_user entered with user (NULL) and auth_type Kerberos
[Thu Jan 14 07:49:43 2010] [debug] util_ldap.c(1697): Initialisation of global mutex /opt/hpws/apache/ in child process 24057 successful.
[Thu Jan 14 07:49:48 2010] [error] [client 192.48.21.43] request failed: error reading the headers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-20-2010 05:33 AM
тАО01-20-2010 05:33 AM
Re: CIFS, Apache and Active Directory
http://www-01.ibm.com/support/docview.wss?rs=1083&uid=swg21376396
Maybe there is something wrong with the cookies sent from apache to IE.
Horia.
Horia.