# Orthanc requesting username and password

**URL:** https://discourse.orthanc-server.org/t/orthanc-requesting-username-and-password/63
**Category:** Google Groups archive
**Created:** [June 18, 2014, 10:07pm UTC](https://discourse.orthanc-server.org/t/orthanc-requesting-username-and-password/63 "2014-06-18T22:07:54Z")
**Posts on this page:** 19
**Page:** 1

<div class="post-metadata">

### Author: ![Erik\_Anderson](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/e/71c47a/32.png) [@Erik\_Anderson](https://discourse.orthanc-server.org/u/Erik_Anderson)
#### Post date: [June 18, 2014, 10:07pm UTC](https://discourse.orthanc-server.org/t/orthanc-requesting-username-and-password/63/1 "2014-06-18T22:07:54Z")

</div>

(Sending again, as I accidentally sent my original reply to Jye only)

Jye -

Before being able to sign in, you'll need to create a user for yourself by  
modifying this section of your Orthanc config:

"RegisteredUsers" : {  
&nbsp;&nbsp;&nbsp;&nbsp;// "alice" : "alicePassword"  
&nbsp;&nbsp;},

-Erik

---

<div class="post-metadata">

### Author: ![jodogne](https://discourse.orthanc-server.org/user_avatar/discourse.orthanc-server.org/jodogne/32/1511_2.png) [@jodogne](https://discourse.orthanc-server.org/u/jodogne)
#### Post date: [June 19, 2014, 4:52am UTC](https://discourse.orthanc-server.org/t/orthanc-requesting-username-and-password/63/2 "2014-06-19T04:52:46Z")

</div>

As a complement to Erik’s answer, given your URL, you are visibly accessing Orthanc from a remote compute.

Because of this, you will have to set the option “RemoteAccessAllowed” to “true” in the configuration file. For security reasons, Orthanc blocks by default all the requests coming from outside the localhost.

[https://code.google.com/p/orthanc/wiki/OrthancConfiguration](https://code.google.com/p/orthanc/wiki/OrthancConfiguration)

Cheers,  
Sébastien-

---

<div class="post-metadata">

### Author: ![Jye\_Smith](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/j/c5a1d2/32.png) [@Jye\_Smith](https://discourse.orthanc-server.org/u/Jye_Smith)
#### Post date: [June 19, 2014, 4:55am UTC](https://discourse.orthanc-server.org/t/orthanc-requesting-username-and-password/63/3 "2014-06-19T04:55:09Z")

</div>

Thanks guys. After a bit more digging I found all of the info. The json file was also very easy to configure.

Cheers

---

<div class="post-metadata">

### Author: ![peterpwdeboer](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/p/4da419/32.png) [@peterpwdeboer](https://discourse.orthanc-server.org/u/peterpwdeboer)
#### Post date: [July 9, 2014, 3:05pm UTC](https://discourse.orthanc-server.org/t/orthanc-requesting-username-and-password/63/4 "2014-07-09T15:05:27Z")

</div>

where can I find the configuration file under windows? or generate it under windows?

---

<div class="post-metadata">

### Author: ![jodogne](https://discourse.orthanc-server.org/user_avatar/discourse.orthanc-server.org/jodogne/32/1511_2.png) [@jodogne](https://discourse.orthanc-server.org/u/jodogne)
#### Post date: [July 9, 2014, 3:11pm UTC](https://discourse.orthanc-server.org/t/orthanc-requesting-username-and-password/63/5 "2014-07-09T15:11:22Z")

</div>

This is described on the Wiki:  
[https://code.google.com/p/orthanc/wiki/OrthancConfiguration](https://code.google.com/p/orthanc/wiki/OrthancConfiguration)

Do you experience problems with the explanations of this page?

---

<div class="post-metadata">

### Author: ![peterpwdeboer](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/p/4da419/32.png) [@peterpwdeboer](https://discourse.orthanc-server.org/u/peterpwdeboer)
#### Post date: [July 9, 2014, 5:09pm UTC](https://discourse.orthanc-server.org/t/orthanc-requesting-username-and-password/63/6 "2014-07-09T17:09:20Z")

</div>

I understand the wiki, but I cannot find the config file under Windows. I only see the executable. Starting the exe with the CMD prompt with the --config=Configuration.json doesn't work. I tried to make one myself with notepad++, doesn't work either... Is this only possible under Linux?

---

<div class="post-metadata">

### Author: ![jodogne](https://discourse.orthanc-server.org/user_avatar/discourse.orthanc-server.org/jodogne/32/1511_2.png) [@jodogne](https://discourse.orthanc-server.org/u/jodogne)
#### Post date: [July 9, 2014, 5:38pm UTC](https://discourse.orthanc-server.org/t/orthanc-requesting-username-and-password/63/7 "2014-07-09T17:38:40Z")

</div>

Hi,

Here is a screenshot of what you should do to generate the configuration file:

[![](https://lh6.googleusercontent.com/--z7pTJa1p2U/U719vOasheI/AAAAAAAAC3s/wLOv9V3HT40/s320/config.png)](https://lh6.googleusercontent.com/--z7pTJa1p2U/U719vOasheI/AAAAAAAAC3s/wLOv9V3HT40/s1600/config.png)

Could you try and reproduce these manipulations, then post a screenshot if it fails?

Sébastien-

---

<div class="post-metadata">

### Author: ![peterpwdeboer](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/p/4da419/32.png) [@peterpwdeboer](https://discourse.orthanc-server.org/u/peterpwdeboer)
#### Post date: [July 9, 2014, 6:51pm UTC](https://discourse.orthanc-server.org/t/orthanc-requesting-username-and-password/63/8 "2014-07-09T18:51:01Z")

</div>

Thank you so much for your patience. I forgot the phrase config=.  
fast reading I guess..  
So it is working now, thanks!

---

<div class="post-metadata">

### Author: ![jodogne](https://discourse.orthanc-server.org/user_avatar/discourse.orthanc-server.org/jodogne/32/1511_2.png) [@jodogne](https://discourse.orthanc-server.org/u/jodogne)
#### Post date: [July 9, 2014, 6:52pm UTC](https://discourse.orthanc-server.org/t/orthanc-requesting-username-and-password/63/9 "2014-07-09T18:52:31Z")

</div>

Fine! Enjoy 🙂

---

<div class="post-metadata">

### Author: ![darshana\_ranasingha](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/d/ecc23a/32.png) [@darshana\_ranasingha](https://discourse.orthanc-server.org/u/darshana_ranasingha)
#### Post date: [July 6, 2020, 4:58pm UTC](https://discourse.orthanc-server.org/t/orthanc-requesting-username-and-password/63/10 "2020-07-06T16:58:34Z")

</div>

hi ,  
any one can help me to config orthanc http server.  
when i enable the remote login, it is ask the user name and password for the login.  
i put alice and alicepassword but it is not working

---

<div class="post-metadata">

### Author: ![Chirag\_Malaviya](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/c/ba9def/32.png) [@Chirag\_Malaviya](https://discourse.orthanc-server.org/u/Chirag_Malaviya)
#### Post date: [July 6, 2020, 5:03pm UTC](https://discourse.orthanc-server.org/t/orthanc-requesting-username-and-password/63/11 "2020-07-06T17:03:18Z")

</div>

The default password is alicePassword (capital P) make sure you are entering the correct one.

---

<div class="post-metadata">

### Author: ![jodogne](https://discourse.orthanc-server.org/user_avatar/discourse.orthanc-server.org/jodogne/32/1511_2.png) [@jodogne](https://discourse.orthanc-server.org/u/jodogne)
#### Post date: [July 7, 2020, 4:39am UTC](https://discourse.orthanc-server.org/t/orthanc-requesting-username-and-password/63/12 "2020-07-07T04:39:02Z")

</div>

Hello,

The default username is “orthanc” (without the quotes) and the default password is also “orthanc”.

If you can’t access Orthanc from another computer, make sure that the “RemoteAccessAllowed” configuration option is set to “true” and that firewalls are properly configured:  
[https://book.orthanc-server.com/users/configuration.html](https://book.orthanc-server.com/users/configuration.html)

Finally, learn about security:  
[https://book.orthanc-server.com/faq/security.html](https://book.orthanc-server.com/faq/security.html)

Sébastien-

---

<div class="post-metadata">

### Author: ![darshana\_ranasingha](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/d/ecc23a/32.png) [@darshana\_ranasingha](https://discourse.orthanc-server.org/u/darshana_ranasingha)
#### Post date: [July 7, 2020, 4:41am UTC](https://discourse.orthanc-server.org/t/orthanc-requesting-username-and-password/63/13 "2020-07-07T04:41:49Z")

</div>

Hello,

Ok thanks. I will try and inform

---

<div class="post-metadata">

### Author: ![darshana\_ranasingha](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/d/ecc23a/32.png) [@darshana\_ranasingha](https://discourse.orthanc-server.org/u/darshana_ranasingha)
#### Post date: [July 10, 2020, 7:28am UTC](https://discourse.orthanc-server.org/t/orthanc-requesting-username-and-password/63/14 "2020-07-10T07:28:12Z")

</div>

Hi,  
Any one can share or orthanc configurations with users

---

<div class="post-metadata">

### Author: ![Alain\_Mazy3](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/a/eb9ed0/32.png) [@Alain\_Mazy3](https://discourse.orthanc-server.org/u/Alain_Mazy3)
#### Post date: [July 10, 2020, 1:08pm UTC](https://discourse.orthanc-server.org/t/orthanc-requesting-username-and-password/63/15 "2020-07-10T13:08:44Z")

</div>

{  
“RemoteAccessAllowed”: true,

“AuthenticationEnabled”: true,  
“RegisteredUsers”: {  
“demo”: “demo-pwd”  
},  
}

---

<div class="post-metadata">

### Author: ![darshana\_ranasingha](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/d/ecc23a/32.png) [@darshana\_ranasingha](https://discourse.orthanc-server.org/u/darshana_ranasingha)
#### Post date: [July 12, 2020, 11:35am UTC](https://discourse.orthanc-server.org/t/orthanc-requesting-username-and-password/63/16 "2020-07-12T11:35:16Z")

</div>

hi bro  
please check my configuration file i can not loging in to the orthanc using user name and password

[orthanc.json](https://discourse.orthanc-server.org/uploads/short-url/h9XxKJ9mhL49YpKc3zUkOrb0vLS.json) (24.4 KB)

---

<div class="post-metadata">

### Author: ![Alain\_Mazy3](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/a/eb9ed0/32.png) [@Alain\_Mazy3](https://discourse.orthanc-server.org/u/Alain_Mazy3)
#### Post date: [July 13, 2020, 7:29am UTC](https://discourse.orthanc-server.org/t/orthanc-requesting-username-and-password/63/17 "2020-07-13T07:29:36Z")

</div>

You should check your startup logs ([https://book.orthanc-server.com/faq/log.html](https://book.orthanc-server.com/faq/log.html)).  
In your case, there are no RegisteredUsers while RemoteAccessEnabled is true → there’s a default orthanc:orthanc user that is created.

---

<div class="post-metadata">

### Author: ![darshana\_ranasingha](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/d/ecc23a/32.png) [@darshana\_ranasingha](https://discourse.orthanc-server.org/u/darshana_ranasingha)
#### Post date: [July 14, 2020, 7:19am UTC](https://discourse.orthanc-server.org/t/orthanc-requesting-username-and-password/63/18 "2020-07-14T07:19:56Z")

</div>

Please check this

// Whether remote hosts can connect to the HTTP server  
“RemoteAccessAllowed” : true,  
// “AuthenticationEnabled” : true,

// Whether or not SSL is enabled  
“SslEnabled” : false,

// Path to the SSL certificate in the PEM format (meaningful only if  
// SSL is enabled)  
“SslCertificate” : “certificate.pem”,

// Whether or not the password protection is enabled (using HTTP  
// basic access authentication). Starting with Orthanc 1.5.8, if  
// “AuthenticationEnabled” is not explicitly set, authentication is  
// enabled iff. remote access is allowed (i.e. the default value of  
// “AuthenticationEnabled” equals that of “RemoteAccessAllowed”).  
/\*\*  
“AuthenticationEnabled” : true,  
\*\*/

// The list of the registered users. Because Orthanc uses HTTP  
// Basic Authentication, the passwords are stored as plain text.  
“RegisteredUsers” : {  
// “alice” : “alicePassword”,  
// “admin” : “adminPassword”,  
},

---

<div class="post-metadata">

### Author: ![Alain\_Mazy3](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/a/eb9ed0/32.png) [@Alain\_Mazy3](https://discourse.orthanc-server.org/u/Alain_Mazy3)
#### Post date: [July 14, 2020, 7:35am UTC](https://discourse.orthanc-server.org/t/orthanc-requesting-username-and-password/63/19 "2020-07-14T07:35:38Z")

</div>

Please check my last message
