mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-30 03:18:24 +00:00
Update README.md
This commit is contained in:
parent
1a5e56ce66
commit
267941edea
@ -303,3 +303,20 @@ http://localhost:9001/api/v1/party/entities
|
||||
}]
|
||||
}
|
||||
```
|
||||
|
||||
## Authentication
|
||||
DataHub frontend leverages [Java Authentication and Authorization Service (JAAS)](https://docs.oracle.com/javase/7/docs/technotes/guides/security/jaas/JAASRefGuide.html) to perform the authentication. By default we provided a [DummyLoginModule](app/security/DummyLoginModule.java) which will accept any username/password combination. You can update [jaas.conf](conf/jaas.conf) to match your authentication requirement. For example, use the following config for LDAP-based authentication,
|
||||
|
||||
```
|
||||
WHZ-Authentication {
|
||||
com.sun.security.auth.module.LdapLoginModule sufficient
|
||||
userProvider="ldaps://<host>:636/dc=<domain>"
|
||||
authIdentity="{USERNAME}"
|
||||
userFilter="(&(objectClass=person)(uid={USERNAME}))"
|
||||
java.naming.security.authentication="simple"
|
||||
debug="false"
|
||||
useSSL="true";
|
||||
};
|
||||
```
|
||||
|
||||
Note that the special keyword `USERNAME` will be substituted by the actual username.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user