How to complete the "PAM Authentication" task

@Inderpreet
Thanks for the reply.

I’ve already been referring to the same link only. I’ve set the environment as mentioned but im not able to authenticate the website.

Can you give a tip on how the website url should be configured.

Is it http or https ?

http://localhost/protected
https://localhost/protected

Can you suggest on this?
Thanks,

Hello,

Website should work on http only since you are not asked to run it on https specifically.

Please try to check Apache logs to get some information what exactly happening behind the scenes, I am sure you will get some valuable information from there to troubleshoot the issue.

Thanks
Inderpreet

This question is really confusing if we didn’t read it carefully and ending up changing lot of stuff in Apache… we are missing logic here… Basic + PAM Authentication… it took a lot of time to understand but finally able to finish it… Read the question carefully…
Great one :+1: :upside_down_face:

@hprasanna hint for u: use /protected at end of LB url in your SS to check or from jump box try below
curl -u username>:password> http://<LB Url/protected/index.html
and it should work for only given user… for other users it should return 401 unauthorized error. All the best :slight_smile:

1 Like

I’m not able to run command sudo systemctl start httpd keeps throwing this error Failed to get D-Bus connection: Operation not permitted. Has anyone ran into this issue? @Inderpreet @kodekloud-support3

@JDev

Why are you trying to start Apache on storage server, I think you need to start it on app servers instead.

Helpful hint & question is quite tricky @Inderpreet @kiran

This question was asked 23 days ago. I no longer remember the point of the task.
I will try again next time around.

Task: PAM Authentication for Apache.

@hprasanna @kiran @hasmukhrathod @Inderpreet @vijin.palazhi

as per this url: https://www.server-world.info/en/note?os=CentOS_7&p=httpd&f=10

followed the steps until restarting httpd on app1 server. All went fine until this point.

when I am selecting port to view host1. I get below error message displayed.

what is it I am missing, any hint or place that I should look at, will help me.

Please comment. Thank you!

(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)

@swaroopcs88 protected directory supposed to be configured at URL /protected, did you try that?

@Inderpreet I am sorry, unable to understand the below requirement i.e. what action is required from me.

protected directory supposed to be configured at URL /protected, did you try that?