aboutsummaryrefslogtreecommitdiffstats
path: root/models/user.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/user.go')
-rw-r--r--models/user.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/models/user.go b/models/user.go
index c8664cc4c8..ed0fe524e4 100644
--- a/models/user.go
+++ b/models/user.go
@@ -1673,7 +1673,12 @@ func SyncExternalUsers() {
return
}
- sr := s.LDAP().SearchEntries()
+ sr, err := s.LDAP().SearchEntries()
+ if err != nil {
+ log.Error("SyncExternalUsers LDAP source failure [%s], skipped", s.Name)
+ continue
+ }
+
for _, su := range sr {
if len(su.Username) == 0 {
continue