mirror of
https://github.com/documize/community.git
synced 2025-07-23 07:09:43 +02:00
Refactor LDAP code into discrete functions
This commit is contained in:
parent
a7865d0f71
commit
e6b557f43b
5 changed files with 211 additions and 266 deletions
|
@ -146,14 +146,13 @@ func (c *LDAPConfig) GetGroupFilterAttributes() []string {
|
|||
}
|
||||
|
||||
// LDAPUser details user record returned by LDAP
|
||||
// type LDAPUser struct {
|
||||
// ID string `json:"id"`
|
||||
// Username string `json:"username"`
|
||||
// Email string `json:"email"`
|
||||
// Firstname string `json:"firstName"`
|
||||
// Lastname string `json:"lastName"`
|
||||
// Enabled bool `json:"enabled"`
|
||||
// }
|
||||
type LDAPUser struct {
|
||||
RemoteID string `json:"remoteId"`
|
||||
CN string `json:"cn"`
|
||||
Email string `json:"email"`
|
||||
Firstname string `json:"firstName"`
|
||||
Lastname string `json:"lastName"`
|
||||
}
|
||||
|
||||
// LDAPAuthRequest data received via LDAP client library
|
||||
// type LDAPAuthRequest struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue