I am a pretty newbie and just was able to do a basic install of the Apache server. I never didnt encounter with a PAM in the real life.
Could someone help me out? Could you share the right solution with me, step by step? I have spent with this task several hours and do not know what to do.
according to task install PAM configuration
write some config into PAM default config file
generate htpasswd
and check by curl -u user-name http://ip-addr:ip
hope you got it
“Generate htpasswd” - In the task its mentioned that “We dont want to use htpasswd file for authentication.” Please find the attached screenshot. Here is the confusion
Seems like you configured it to work on URL http://<website-url>:<apache_port> however in the question is was specifcally asked to run it on http://<website-url>:<apache_port>/protected URL.
Hi @kiran, @Inderpreet , @hprasanna , @Chudo
Since the question asks for Basic + PAM Authentication ,for the Basic Authentication part , do we need to also setup .htaccess file . If so what is the AuthUserFile to use since the question says to not use htpasswd file ?
step5: curl -u username:password http:/localhost:8080/protected
you will get some reply in the shell sorry i missed to snip it.
step6: verify it by following step “d” in the question.
once you enter port 80 the page will open as test page, then enter /protected at an end in the url to open sub page. when this /protected page opens it asks for username and password.
Post giving correct credentials you will see the required page.
step5: curl -u username:password http:/localhost:8080/protected
you will get some reply in the shell sorry i missed to snip it.
step6: verify it by following step “d” in the question.
once you enter port 80 the page will open as test page, then enter /protected at an end in the url to open sub page. when this /protected page opens it asks for username and password.
Post giving correct credentials you will see the required page.