Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. fix flyway migration Chinese garbled issue 2. limit hibernate query plan cache 3. fix import/export api 4. wording update for yaml/yml namespace support 5. update ldap sample configurations
- Loading branch information
Showing
9 changed files
with
47 additions
and
22 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
apollo-portal/src/main/config/application-ldap-activedirectory-sample.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# ldap sample for active directory, need to rename this file to application-ldap.yml to make it effective | ||
spring: | ||
ldap: | ||
base: "dc=example,dc=com" | ||
username: "admin" # 配置管理员账号,用于搜索、匹配用户 | ||
password: "password" | ||
searchFilter: "(sAMAccountName={0})" # 用户过滤器,登录的时候用这个过滤器来搜索用户 | ||
urls: | ||
- "ldap://1.1.1.1:389" | ||
|
||
ldap: | ||
mapping: # 配置 ldap 属性 | ||
objectClass: "user" # ldap 用户 objectClass 配置 | ||
loginId: "sAMAccountName" # ldap 用户惟一 id,用来作为登录的 id | ||
userDisplayName: "cn" # ldap 用户名,用来作为显示名 | ||
email: "userPrincipalName" # ldap 邮箱属性 | ||
filter: # 可选项,配置过滤,目前只支持 memberOf | ||
memberOf: "CN=ServiceDEV,OU=test,DC=example,DC=com|CN=WebDEV,OU=test,DC=example,DC=com" # 只允许 memberOf 属性为 ServiceDEV 和 WebDEV 的用户访问 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 11 additions & 9 deletions
20
apollo-portal/src/main/config/application-ldap-openldap-sample.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,22 @@ | ||
# ldap sample for open ldap, need to rename this file to application-ldap.yml to make it effective | ||
spring: | ||
ldap: | ||
base: "dc=example,dc=com" | ||
username: "cn=Manager,dc=example,dc=com" # 配置管理员账号,用于搜索、匹配用户 | ||
base: "dc=example,dc=org" | ||
username: "cn=admin,dc=example,dc=org" # 配置管理员账号,用于搜索、匹配用户 | ||
password: "password" | ||
searchFilter: "(uid={0})" # 用户过滤器,登录的时候用这个过滤器来搜索用户 | ||
searchFilter: "(uid={0})" # 用户过滤器,登录的时候用这个过滤器来搜索用户 | ||
urls: | ||
- "ldap://localhost:389" | ||
|
||
ldap: | ||
mapping: # 配置 ldap 属性 | ||
objectClass: "inetOrgPerson" # ldap 用户 objectClass 配置 | ||
loginId: "uid" # ldap 用户惟一 id,用来作为登录的 id | ||
rdnKey: "uid" # ldap rdn key | ||
userDisplayName: "displayName" # ldap 用户名,用来作为显示名 | ||
rdnKey: "uid" # ldap rdn key,可选项,如需启用group search需要配置 | ||
userDisplayName: "cn" # ldap 用户名,用来作为显示名 | ||
email: "mail" # ldap 邮箱属性 | ||
group: # 配置ldap group | ||
groupBase: "ou=Group" # group search base | ||
groupSearch: "(&(cn=apollo-admins))" # group filter | ||
groupMembership: "memberUid" # group memberShip | ||
group: # 启用group search,可选配置,启用后只有特定group的用户可以登录apollo | ||
objectClass: "posixGroup" # 配置groupClassName | ||
groupBase: "ou=group" # group search base | ||
groupSearch: "(&(cn=dev))" # group filter | ||
groupMembership: "memberUid" # group memberShip eg. member or memberUid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
flyway.user=root | ||
flyway.password=root | ||
flyway.schemas=ApolloConfigDB | ||
flyway.url=jdbc:mysql://localhost:3306 | ||
flyway.url=jdbc:mysql://localhost:3306?useSSL=false&characterEncoding=utf8 | ||
flyway.locations=filesystem:scripts/db/migration/configdb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
flyway.user=root | ||
flyway.password=root | ||
flyway.schemas=ApolloPortalDB | ||
flyway.url=jdbc:mysql://localhost:3306 | ||
flyway.url=jdbc:mysql://localhost:3306?useSSL=false&characterEncoding=utf8 | ||
flyway.locations=filesystem:scripts/db/migration/portaldb |