mirror of
https://github.com/h44z/wg-portal.git
synced 2025-10-04 15:36:18 +00:00
keep original admin group behaviour
This commit is contained in:
@@ -97,6 +97,9 @@ func FindAllObjects(cfg *Config, objType ObjectType) ([]RawLdapData, error) {
|
||||
cfg.SyncFilter, attrs, nil,
|
||||
)
|
||||
case Groups:
|
||||
if cfg.SyncGroupFilter == "" {
|
||||
return nil, nil // no groups
|
||||
}
|
||||
// Search all groups
|
||||
attrs = []string{"dn", cfg.GroupMemberAttribute}
|
||||
searchRequest = ldap.NewSearchRequest(
|
||||
|
Reference in New Issue
Block a user