aboutsummaryrefslogtreecommitdiff
path: root/auth_ldap.go
diff options
context:
space:
mode:
authorQuentin <quentin@deuxfleurs.fr>2021-08-23 21:55:52 +0200
committerQuentin <quentin@deuxfleurs.fr>2021-08-23 21:55:52 +0200
commit1c8e981df792a512667bc0553d30f4b069febb4b (patch)
tree1e16f602fd41201f286efb4c0d82c9d123e560b9 /auth_ldap.go
parent15e4d10fd4b35a2e70cc4fa6ad4117cd5c402cbc (diff)
downloadbagage-1c8e981df792a512667bc0553d30f4b069febb4b.tar.gz
bagage-1c8e981df792a512667bc0553d30f4b069febb4b.zip
Add support for directory creation
Diffstat (limited to 'auth_ldap.go')
-rw-r--r--auth_ldap.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/auth_ldap.go b/auth_ldap.go
index 9164e93..bf2a9fb 100644
--- a/auth_ldap.go
+++ b/auth_ldap.go
@@ -101,7 +101,7 @@ func (l *ldapConnector) profile() (*ldap.Entry, error) {
}
if len(sr.Entries) != 1 {
- return nil, errors.New(fmt.Sprintf("Wrong number of LDAP entries, expected 1, got", len(sr.Entries)))
+ return nil, errors.New(fmt.Sprintf("Wrong number of LDAP entries, expected 1, got %d", len(sr.Entries)))
}
return sr.Entries[0], nil