# Add user manually to OOD server

**URL:** <https://discourse.openondemand.org/t/add-user-manually-to-ood-server/2445>\
**Category:** Get Help\
**Tags:** question\
**Created:** [January 20, 2023, 4:20am UTC](https://discourse.openondemand.org/t/add-user-manually-to-ood-server/2445 "2023-01-20T04:20:52Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yusuke.Miyashita](https://avatars.discourse-cdn.com/v4/letter/y/e19adc/32.png) [@Yusuke.Miyashita](https://discourse.openondemand.org/u/Yusuke.Miyashita)\
**Post date:** [January 20, 2023, 4:20am UTC](https://discourse.openondemand.org/t/add-user-manually-to-ood-server/2445/1 "2023-01-20T04:20:52Z")

</div>

Hi all,

I have installed OOD in ubuntu20.04 and trying to configure slurm and submit a job using the OOD web portal.  
I have followed the ODD installation in [this page](https://osc.github.io/ood-documentation/latest/installation/start-apache.html) and the default email, username and password are  
email: ood@localhost  
username: ood  
password: password

Now, I want to add a new user manually to login ODD e.g. user1 since this is the user configured in other nodes in slurm system.  
Is there any documentations I can follow? I am not looking into using LDAP or other authentication methods yet.

---

<div class="post-metadata">

**Author:** ![gbyrket](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/gbyrket/32/894_2.png) [@gbyrket](https://discourse.openondemand.org/u/gbyrket)\
**Post date:** [January 20, 2023, 2:37pm UTC](https://discourse.openondemand.org/t/add-user-manually-to-ood-server/2445/2 "2023-01-20T14:37:23Z")

</div>

Hi Yusuke.

Thanks for the post.

This link will give you all Open OnDemand 2.0 authentication methods.

[https://osc.github.io/ood-documentation/latest/authentication.html](https://osc.github.io/ood-documentation/latest/authentication.html)

Hope this helps.

Thanks,  
-gerald

---

<div class="post-metadata">

**Author:** ![jungyh0218](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jungyh0218/32/1402_2.png) [@jungyh0218](https://discourse.openondemand.org/u/jungyh0218)\
**Post date:** [January 25, 2023, 4:59am UTC](https://discourse.openondemand.org/t/add-user-manually-to-ood-server/2445/3 "2023-01-25T04:59:02Z")

</div>

Default authentication method was ‘Basic’ in previous version of OOD.(Now the default is open-id connect with Dex IdP.) Basic authentication is not recommended due to security issues; but if you really don’t need any other authentication method, basic linux auth would be the simplest & easiest option.  
[This page](https://osc.github.io/ood-documentation/latest/reference/files/ood-portal-yml.html) shows how to configure auth option in ood\_portal.yml file. Using basic option, all you need to do is to add username and password to the .htpasswd file.

```auto
htpasswd -c /etc/apache2/.htpasswd username password

```

---

<div class="post-metadata">

**Author:** ![Yusuke.Miyashita](https://avatars.discourse-cdn.com/v4/letter/y/e19adc/32.png) [@Yusuke.Miyashita](https://discourse.openondemand.org/u/Yusuke.Miyashita)\
**Post date:** [January 25, 2023, 6:55am UTC](https://discourse.openondemand.org/t/add-user-manually-to-ood-server/2445/4 "2023-01-25T06:55:45Z")

</div>

Hi Yoohee,  
Thanks for the response.

As you suggested, I have modified the ood\_portal.yml into

```auto
auth:
  - "AuthType Basic"
  - "AuthName \"private\""
  - "AuthUserFile \"/etc/apache2/.htpasswd\""
  - "RequestHeader unset Authorization"
  - "Require valid-user"

```

and ran

```auto
sudo /opt/ood/ood-portal-generator/sbin/update_ood_portal 
sudo systemctl restart apache2
sudo systemctl restart ondemand

```

However, the login page no longer shows up and I received “This site can’t be reached” error.  
Did I have to remove ondemand-dex? And what else I can do to precede?

Thanks,  
Yusuke

---

<div class="post-metadata">

**Author:** ![jungyh0218](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jungyh0218/32/1402_2.png) [@jungyh0218](https://discourse.openondemand.org/u/jungyh0218)\
**Post date:** [January 25, 2023, 7:22am UTC](https://discourse.openondemand.org/t/add-user-manually-to-ood-server/2445/5 "2023-01-25T07:22:22Z")

</div>

Hi Yusuke,  
If you see the error message “This site can’t be reached”, I guess there must be some misconfigurations in /etc/apache2/sites-available/ood-portal.yml file. Check if there are some OIDC options defined in the file. They are expected not to exist if you use basic auth.

Dex support will auto-enable if ondemand-dex package is installed. So ood\_portal\_generator will try to add configurations that are relevant to dex even if you didn’t define anything about dex in your /etc/ood/ood\_portal.yml file. If you use basic authentication, you have no need of dex IdP and ondemand-dex service. So you’d better remove dex-related files and inactivate ondemand-dex service.

---

<div class="post-metadata">

**Author:** ![gbyrket](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/gbyrket/32/894_2.png) [@gbyrket](https://discourse.openondemand.org/u/gbyrket)\
**Post date:** [January 25, 2023, 2:47pm UTC](https://discourse.openondemand.org/t/add-user-manually-to-ood-server/2445/6 "2023-01-25T14:47:49Z")

</div>

```auto
However, the login page no longer shows up and I received “This site can’t be reached” error.
Did I have to remove ondemand-dex? And what else I can do to precede?

```

Hi Yusuke,

If you are going to use Basic Auth, you will need to remove ondemand-dex

Thanks,  
-gerald

---

<div class="post-metadata">

**Author:** ![Yusuke.Miyashita](https://avatars.discourse-cdn.com/v4/letter/y/e19adc/32.png) [@Yusuke.Miyashita](https://discourse.openondemand.org/u/Yusuke.Miyashita)\
**Post date:** [January 30, 2023, 12:19am UTC](https://discourse.openondemand.org/t/add-user-manually-to-ood-server/2445/7 "2023-01-30T00:19:18Z")

</div>

Hi Yoohee and Gerald,

Thank you for the advice. I will continue to work on it and update this thread.

Yusuke

---

<div class="post-metadata">

**Author:** ![gbyrket](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/gbyrket/32/894_2.png) [@gbyrket](https://discourse.openondemand.org/u/gbyrket)\
**Post date:** [January 30, 2023, 4:05pm UTC](https://discourse.openondemand.org/t/add-user-manually-to-ood-server/2445/8 "2023-01-30T16:05:13Z")

</div>

Hi Yusuke.

Thanks for follow-up. If you run into other issues or have additional questions, please feel free to ask here.

Thanks,  
-gerald

---

<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:** [July 29, 2023, 4:06pm UTC](https://discourse.openondemand.org/t/add-user-manually-to-ood-server/2445/9 "2023-07-29T16:06:11Z")

</div>

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