# Rocky Linux 9 - not being prompted for authentication

**URL:** <https://discourse.openondemand.org/t/rocky-linux-9-not-being-prompted-for-authentication/4610>\
**Category:** Get Help\
**Tags:** question\
**Created:** [November 3, 2025, 5:47pm UTC](https://discourse.openondemand.org/t/rocky-linux-9-not-being-prompted-for-authentication/4610 "2025-11-03T17:47:01Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![bfolkjr](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/bfolkjr/32/3107_2.png) [@bfolkjr](https://discourse.openondemand.org/u/bfolkjr)\
**Post date:** [November 3, 2025, 5:47pm UTC](https://discourse.openondemand.org/t/rocky-linux-9-not-being-prompted-for-authentication/4610/1 "2025-11-03T17:47:01Z")

</div>

Hello. I am new to ood and just got it installed on a Rocky Linux 9 machine. I get the “Welcome to Open OnDemand” page ([http://hostname:80](http://hostname:80)), but I am continually asked to “configure authentication” ([http://wontforget/public/need\_auth.html](http://wontforget/public/need_auth.html)).  
/etc/ood/config/ood\_portal.yml

auth:  
- “AuthType Basic”  
- “AuthName \“private\””  
- “AuthUserFile \”/etc/httpd/.htpasswd\“” # Adjust path as needed  
- “RequestHeader unset Authorization”  
- “Require valid-user”

I do have an ood user and their credentials are in: /etc/httpd/.htpasswd

I created a /var/www/html/.htaccess file also:

AuthType Basic  
AuthName “Restricted Access”  
AuthUserFile /etc/httpd/.htpasswd  
Require valid-user

My httpd logs show no errors. I never enabled logging in ood\_portal.yml.  
Are there any obvious errors? Would more info be helpful to troubleshoot?  
Thanks much.

---

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [November 3, 2025, 6:16pm UTC](https://discourse.openondemand.org/t/rocky-linux-9-not-being-prompted-for-authentication/4610/2 "2025-11-03T18:16:56Z")

</div>

Hi and welcome!

It could be as simple as the page being cached on your browser. I’d try in a private window or with dev-tools open to ‘disable the cache’.

Beyond that - you can check the resulting `/etc/httpd/conf.d/ood-portal.conf` to be sure that the `auth` section of the YAML file has produced the correct .conf file for apache to read.

---

<div class="post-metadata">

**Author:** ![bfolkjr](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/bfolkjr/32/3107_2.png) [@bfolkjr](https://discourse.openondemand.org/u/bfolkjr)\
**Post date:** [November 3, 2025, 6:32pm UTC](https://discourse.openondemand.org/t/rocky-linux-9-not-being-prompted-for-authentication/4610/3 "2025-11-03T18:32:35Z")

</div>

Thanks Jeff. I am going to try now. Also, that file hasn’t been updated since 11:40am est. I just tried: /opt/ood/ood-portal-generator/sbin/update\_ood\_portal again.

Is something like this possible?:

# /etc/ood/config/ood\_portal.yml

http\_username: your\_username  
http\_password: your\_password

---

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [November 3, 2025, 6:37pm UTC](https://discourse.openondemand.org/t/rocky-linux-9-not-being-prompted-for-authentication/4610/4 "2025-11-03T18:37:55Z")

</div>

> [@bfolkjr](#):
>
> Is something like this possible?:

No, but your basic auth scheme is possible, even if it’s discouraged (it’s very insecure).

Also you don’t really need to run `update_ood_portal` as bounding httpd runs the same command. Maybe that could be it - you ran the portal, but didn’t bounce httpd. In any case, running `systemctl restart httpd` will run `update_ood_portal` for you before bouncing apache.

---

<div class="post-metadata">

**Author:** ![bfolkjr](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/bfolkjr/32/3107_2.png) [@bfolkjr](https://discourse.openondemand.org/u/bfolkjr)\
**Post date:** [November 3, 2025, 6:41pm UTC](https://discourse.openondemand.org/t/rocky-linux-9-not-being-prompted-for-authentication/4610/5 "2025-11-03T18:41:25Z")

</div>

Ok. Thanks. Trying again.

---

<div class="post-metadata">

**Author:** ![bfolkjr](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/bfolkjr/32/3107_2.png) [@bfolkjr](https://discourse.openondemand.org/u/bfolkjr)\
**Post date:** [November 3, 2025, 6:44pm UTC](https://discourse.openondemand.org/t/rocky-linux-9-not-being-prompted-for-authentication/4610/6 "2025-11-03T18:44:40Z")

</div>

Same page. I am on my home network doing this. I need to get past this point to attempt to install an app. A glaring issue would be better than this. I appreciate your help thus far.  
[root@wontforget conf.d]# more ood-portal.conf  
\<VirtualHost \*:\*\>

RewriteEngine On  
RewriteCond %{REQUEST\_URI} !/public/need\_auth.html  
RewriteRule ^.\*$ /public/need\_auth.html [R=301,L]

# Only public assets enabled in this mode.

# If you’re reading this message you need to setup authentication: [https://osc.github.io/ood-documentation/latest/authentica](https://osc.github.io/ood-documentation/latest/authentica)

tion.html  
Alias “/public” “/var/www/ood/public”  
\<Directory “/var/www/ood/public”\>  
Options FollowSymLinks  
AllowOverride None  
Require all granted

---

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [November 3, 2025, 6:47pm UTC](https://discourse.openondemand.org/t/rocky-linux-9-not-being-prompted-for-authentication/4610/7 "2025-11-03T18:47:09Z")

</div>

OK it seems the configs from the YAML are not reaching the .conf file. If you have no errors in journalctl when bouncing httpd - then I’d say let’s spot check the YAML file for maybe YAML errors or similar. Can you share `ood_portal.yml`?

---

<div class="post-metadata">

**Author:** ![bfolkjr](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/bfolkjr/32/3107_2.png) [@bfolkjr](https://discourse.openondemand.org/u/bfolkjr)\
**Post date:** [November 3, 2025, 6:56pm UTC](https://discourse.openondemand.org/t/rocky-linux-9-not-being-prompted-for-authentication/4610/8 "2025-11-03T18:56:07Z")

</div>

[ood\_portal.yml](https://discourse.openondemand.org/uploads/short-url/r20nEnf96WrV0oUifEVRz0XRewd.yml) (14.5 KB)  
Thanks so much Jeff!

---

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [November 3, 2025, 7:03pm UTC](https://discourse.openondemand.org/t/rocky-linux-9-not-being-prompted-for-authentication/4610/9 "2025-11-03T19:03:56Z")

</div>

You have YAML errors. I just spot checked it with the `yamllint` program.

---

<div class="post-metadata">

**Author:** ![bfolkjr](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/bfolkjr/32/3107_2.png) [@bfolkjr](https://discourse.openondemand.org/u/bfolkjr)\
**Post date:** [November 3, 2025, 7:04pm UTC](https://discourse.openondemand.org/t/rocky-linux-9-not-being-prompted-for-authentication/4610/10 "2025-11-03T19:04:31Z")

</div>

Thats just lovely. Formatting (spacing). I am going to install yamlint and try to fix this. Thanks again for all of your help Jeff!

It seems I have an error on pretty much every line lol.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/osc/original/2X/b/bae70bd0ed39a3ae769c2108155f4cb3e9da8385.png) [@system](https://discourse.openondemand.org/u/system)\
**Post date:** [May 2, 2026, 7:04pm UTC](https://discourse.openondemand.org/t/rocky-linux-9-not-being-prompted-for-authentication/4610/11 "2026-05-02T19:04:38Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
