RavenDB Network Access

别说谁变了你拦得住时间么 提交于 2019-12-03 00:41:44

Create a local user on the machine RavenDB runs on and use any credentials you'd like. Then assign read/write permissions for the /Data directory (and the /Tenants directory if needed) to this user.

If you're running RavenDB as a service or standalone application, remote auth should work with the (windows)users credentials. If you're running on IIS, please make sure you have Windows Authentication enabled (disabled by default!).

For me, I had to add domain to the connection string on the prod machine, but NOT when accessing that same machine remotely... I dunno.

Of note: I created a windows user named RAVENDB, and assigned it full permissions to the data directory.

so my connection string that worked fine remotely was

<add name="raven" connectionString="Url=http://myserver.com:8080;user=RAVENDB;password=PASS" />

whereas on the actual server, i had to use

<add name="raven" connectionString="Url=http://myserver:8080;DOMAIN=MYSERVERNAME;user=RAVENDB;password=PASS" />

Bob, By default, RavenDB uses Windows authentication. So if you create the user on the server machine, it would accept it. The alternative is to define ravendb specific users, but many people just use Windows Auth.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!