- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: apache openvms username verification
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
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
тАО07-29-2004 09:44 PM
тАО07-29-2004 09:44 PM
apache openvms username verification
Please send response also to:
kees.tok@mw-brabant.politie.nl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-30-2004 01:53 AM
тАО07-30-2004 01:53 AM
Re: apache openvms username verification
cu,
Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2004 12:16 PM
тАО07-31-2004 12:16 PM
Re: apache openvms username verification
have a look at the
[.APACHE.CGI-BIN]TEST-CGI-VMS.COM that comes with the distribution. This will show most of the variables set by Apache (REMOTE_USER is not in there since it is only set if you have an authenticated user I assume). Especially note that environment settings are not prefixed with
WWW_* like they are e.g. for the OSU server.
Greetings, Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2004 08:48 PM
тАО08-01-2004 08:48 PM
Re: apache openvms username verification
Options -Indexes Includes FollowSymLinks Multiviews
AllowOverride None
AuthType Basic
AuthName "WebReport Logon"
AuthOpenVMSGroup Off
AuthOpenVMSAuthoritative On
AuthUserOpenVMS On
require valid-user
Order deny,allow
Deny from all
Allow from all
You mau also need to load it as a module :-
LoadModule auth_openvms_module /apache$common/modules/mod_auth_openvms.exe_alpha
While I'm at it, you can also do a neet trick of authenticating against UAF and a file :-
Options -Indexes Includes FollowSymLinks Multiviews
AllowOverride None
AuthType Basic
AuthName "Web-CMS Logon"
AuthOpenVMSAuthoritative On
AuthOpenVMSGroup off
AuthGroupFile /cms$data/cms_group.prot
AuthOpenVMSUser On
require group cmsusers
Order deny,allow
Deny from all
Allow from all
You then simply create a file, in this case cms$data:cms_group.prot and place the usernames in against the group:-
cmsusers: MFM mfm NZC nzc DZL dzl DHU dhu CML cml
The reason for upper and lowercase is that Apache is case-sensitive, so I capture both logins.
Hope this helps, Rob.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2004 08:52 PM
тАО08-01-2004 08:52 PM
Re: apache openvms username verification
Here is some code I use for checking authentication for specific usernames, based on REMOTE_USER :-
$ DCL "CHECK_PRIV.COM"
$!
$!------------------------------------------------------------------------------
$! AUTHOR: Robert Atkinson - January 2003
$! VERSION: 3.0
$!------------------------------------------------------------------------------
$! DESCRIPTION: Module to check and return privilege levels for a specific user.
$!------------------------------------------------------------------------------
$! RUN FREQUENCY :
$! PRERUN REQUISITES :
$! RERUN PROCEDURE :
$! SPECIAL NOTE :
$! PARAMETERS : P1 = REQUIRED_LEVEL (USER/MANAGER)
$! P2 = OVERRIDE - STOP ERROR MESSAGES BEING OUTPUT
$!------------------------------------------------------------------------------
$! AMENDMENT LOG:
$! Date Oper Reason
$!------------------------------------------------------------------------------
$!
$ SET ON
$ ON ERROR THEN GOTO ERROR
$ !
$ REQUIRED_LEVEL = "''P1'"
$ OVERRIDE = "''P2'"
$ !
$START:
$ CMS$ACTION = "FALSE"
$ !
$ CMS$PRIV_MANAGER == "FALSE"
$ CMS$PRIV_USER == "FALSE"
$ !
$VERIFY_PRIV:
$ CMS$ACTION = "FALSE"
$ !
$ DEFINE SYS$OUTPUT SYS$TEMP:CMS_UAF_'PRCPID'.TMP
$ UAF SH 'REMOTE_USER'
$ DEASS SYS$OUTPUT
$ !
$CHECK_MANAGER:
$ @OPS$COM_FILES:EXTRACT_REPORT_LINE SYS$TEMP:CMS_UAF_'PRCPID'.TMP " CMS_MANAGER " 0
$ !
$ IF EXTRACTED_LINE .EQS. "STRINGNOTFOUND"
$ THEN
$ IF REQUIRED_LEVEL .EQS. "MANAGER" THEN GOSUB DISPLAY_ERROR_MESSAGE
$ ELSE
$ CMS$PRIV_MANAGER == "TRUE"
$ ENDIF
$ !
$CHECK_USER:
$ @OPS$COM_FILES:EXTRACT_REPORT_LINE SYS$TEMP:CMS_UAF_'PRCPID'.TMP " CMS_USER " 0
$ !
$ IF EXTRACTED_LINE .EQS. "STRINGNOTFOUND"
$ THEN
$ IF REQUIRED_LEVEL .EQS. "USER" THEN GOSUB DISPLAY_ERROR_MESSAGE
$ ELSE
$ CMS$PRIV_USER == "TRUE"
$ ENDIF
$ !
$ DEL /NOLOG SYS$TEMP:CMS_UAF_'PRCPID'.TMP;*
$ !
$ GOTO END
$ !
$DISPLAY_ERROR_MESSAGE:
$ IF OVERRIDE .EQS. "OVERRIDE" THEN GOTO END_DISPLAY_ERROR_MESSAGE
$ !
$ @CMS$SYSTEM:SHOW_OWNER
$ !
$ WS "
$ !
$ WS "<meta content="" 2="" />"
$ WS ""
$ WS ""
$ WS "
"
$ WS "
You do not have the required privilege to use this option!!!
"$ WS ""
$ !
$END_DISPLAY_ERROR_MESSAGE:
$ RETURN
$ GOTO ERROR
$ !
$END:
$ EXIT %X00001
$ !
$ERROR:
$ ERRORMOD CHECK_PRIV ERROR "CHECK_PRIV HAS BLOWN OUT - PLEASE INVESTIGATE"
$ !
$ DEASS SYS$OUTPUT
$ !
$ EXIT %X00004
$ !
$ !
$ !