Skip to content

Commit

Permalink
🔧 Set maxPageSize to 1000 (RFC 2696)
Browse files Browse the repository at this point in the history
---
Nous dĂ©finissons la valeur Ă  1000 pour ĂȘtre conforme Ă  la valeur maximale par dĂ©faut configurĂ© cĂŽtĂ© LDAP Serveur pour Ă©viter la crĂ©ation de pages inutiles engendrant forcĂ©ment un requĂȘtage moins performant.
  • Loading branch information
KĂ©vin PEREZ committed Aug 28, 2023
1 parent efba790 commit dcaeff1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ For specific exceptions, add another network policy.
| **LDAP_SERVICE_GROUPBASE** | *BaseDn for service group base search*| `ou=ServiceGroup,dc=example,dc=org`| `no ` | - |
| **LDAP_SERVER** | *LDAP server ip address* | `"192.168.2.1" ` | `yes ` | - |
| **LDAP_PORT** | *LDAP server port 389, 636...* | `389 ` | `no ` | `389 ` |
| **LDAP_PAGE_SIZE** | *LDAP page size, 500...* | `500 ` | `no ` | `500 ` |
| **LDAP_PAGE_SIZE** | *LDAP page size, 1000...* | `1000 `| `no ` | `1000 ` |
| **LDAP_USE_SSL** | *Use SSL or no* | `true ` | `no ` | `false` |
| **LDAP_START_TLS** | *Use StartTLS ( use with 389 port)* | `true ` | `false` | `false` |
| **LDAP_SKIP_TLS_VERIFICATION** | *Skip TLS verification* | `true ` | `false` | `true` |
Expand Down
2 changes: 1 addition & 1 deletion internal/utils/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func MakeConfig() (*types.Config, error) {

// LDAP validation

ldapPageSize, errLdapPageSize := strconv.Atoi(getEnv("LDAP_PAGE_SIZE", "500"))
ldapPageSize, errLdapPageSize := strconv.Atoi(getEnv("LDAP_PAGE_SIZE", "1000"))
Checkf(errLdapPageSize, "Invalid LDAP_PAGE_SIZE, must be an integer")

ldapPort, errLdapPort := strconv.Atoi(getEnv("LDAP_PORT", "389"))
Expand Down

0 comments on commit dcaeff1

Please sign in to comment.