Cisco Headend Digital Broadband Delivery System

Page of 148
 
Chapter 7    DNCS Web Services Security 
 
 
 
66 
4034689 Rev A 
2  Did the system return a cannot modify file /etc/apache2/user-conf/httpd-
dncsws.users; use '-c' to create it message? 
 
If yes, then no usernames exist on this system in the httpd-dncsws.users file. 
Type the following command and press Enter to create a new username and 
password in a new file named httpd-dncsws.users: 
/usr/apache2/bin/htpasswd -c -b /etc/apache2/user-
conf/httpd-dncsws.users [username] [password]
 
Notes: 
–  This is one single command. 
–  Replace [username] [password] with the desired username and 
password. 
Example: 
/usr/apache2/bin/htpasswd -c -b /etc/apache2/user-
conf/httpd-dncsws.users dtaom dtaomPwd
 
 
If no, the system returned the Adding password for user [username] 
message. Continue with the next step. 
3  Open the /etc/apache2/user-conf/SAIdncs.loadPIMS.auth.conf file with a text 
editor. 
4  Change the Satisfy option to All
Note: The “All” option requires that a service requester have an IP Address in 
the “Allow from” statement AND provide a valid username and password. 
Example: The Satisfy line should be: 
Satisfy All
 
5  Uncomment the following lines (remove the “#” that appears at the beginning of 
the line): 
AuthType Basic
 
AuthName "loadPIMS"
 
AuthUserFile /etc/apache2/user-conf/httpd-dncsws.users
 
Require user <user> <user2>
 
Note: These lines might already be uncommented if usernames already exist. 
6  Remove 
<user> <user2>
 from the line Require user, if it exists. 
Notes: 
 
Do not delete actual usernames from the file if they exist. 
 
<user> <user2> will not exist if usernames were added to this system in the 
past. 
7  Add the new username to the end of the Require user line. 
Example: 
Require user dtaom