Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document the admin role #65

Merged
merged 3 commits into from
Oct 31, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions docs/INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@ Configure a user by editing `$CATALINA_BASE/conf/tomcat-users.xml` and adding a
<user username="xbdd" password="xbdd"/>
```

To make a user an administrator, in `$CATALINA_BASE/conf/tomcat-users.xml` first add the admin role:
```xml
<role rolename="admin"/>
```

Then assign a user that role, e.g.:
```xml
<user username="xbdd-admin" password="something" roles="admin" />
```

#### LDAP
If you want to use LDAP, configure the realm in `$CATALINA_BASE/conf/server.xml` or `$CATALINA_BASE/conf/context.xml` with the JNDIRealm. See the [documentation](https://tomcat.apache.org/tomcat-7.0-doc/config/realm.html#JNDI_Directory_Realm_-_org.apache.catalina.realm.JNDIRealm) for details on the required fields.

Expand Down