From 1c8e981df792a512667bc0553d30f4b069febb4b Mon Sep 17 00:00:00 2001 From: Quentin Date: Mon, 23 Aug 2021 21:55:52 +0200 Subject: Add support for directory creation --- auth_ldap.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'auth_ldap.go') 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 -- cgit v1.2.3