@@ -11,7 +11,7 @@ import (
1111 // Packages
1212 pg "github.com/djthorpe/go-pg"
1313 authschema "github.com/mutablelogic/go-server/pkg/auth/schema"
14- "github.com/mutablelogic/go-server/pkg/ldap/schema"
14+ ldapschema "github.com/mutablelogic/go-server/pkg/ldap/schema"
1515 pgschema "github.com/mutablelogic/go-server/pkg/pgqueue/schema"
1616)
1717
@@ -159,30 +159,30 @@ type Auth interface {
159159
160160type LDAP interface {
161161 // Objects
162- List (context.Context , schema .ObjectListRequest ) (* schema .ObjectList , error ) // List all objects in the directory
163- Get (context.Context , string , ... string ) (* schema .Object , error ) // Get an object with attributes
164- Delete (context.Context , string ) (* schema .Object , error ) // Delete an object
165- Create (context.Context , string , url.Values ) (* schema .Object , error ) // Create a new object with attributes
166- Update (context.Context , string , url.Values ) (* schema .Object , error ) // Update an object with attributes
162+ List (context.Context , ldapschema .ObjectListRequest ) (* ldapschema .ObjectList , error ) // List all objects in the directory
163+ Get (context.Context , string , ... string ) (* ldapschema .Object , error ) // Get an object with attributes
164+ Delete (context.Context , string ) (* ldapschema .Object , error ) // Delete an object
165+ Create (context.Context , string , url.Values ) (* ldapschema .Object , error ) // Create a new object with attributes
166+ Update (context.Context , string , url.Values ) (* ldapschema .Object , error ) // Update an object with attributes
167167
168168 // Introspection
169- ListObjectClasses (context.Context ) ([]* schema .ObjectClass , error ) // Return all classes
170- ListAttributeTypes (context.Context ) ([]* schema .AttributeType , error ) // Return all attributes
169+ ListObjectClasses (context.Context ) ([]* ldapschema .ObjectClass , error ) // Return all classes
170+ ListAttributeTypes (context.Context ) ([]* ldapschema .AttributeType , error ) // Return all attributes
171171
172172 // Users
173- ListUsers (context.Context , schema .ObjectListRequest ) ([]* schema .ObjectList , error ) // List users
174- GetUser (context.Context , string , ... string ) (* schema .Object , error ) // Get a user with attributes
175- CreateUser (context.Context , string , url.Values ) (* schema .Object , error ) // Create a user with attributes
176- DeleteUser (context.Context , string ) (* schema .Object , error ) // Delete a user
173+ ListUsers (context.Context , ldapschema .ObjectListRequest ) ([]* ldapschema .ObjectList , error ) // List users
174+ GetUser (context.Context , string , ... string ) (* ldapschema .Object , error ) // Get a user with attributes
175+ CreateUser (context.Context , string , url.Values ) (* ldapschema .Object , error ) // Create a user with attributes
176+ DeleteUser (context.Context , string ) (* ldapschema .Object , error ) // Delete a user
177177
178178 // Groups
179- ListGroups (context.Context , schema .ObjectListRequest ) ([]* schema .ObjectList , error ) // List groups
180- GetGroup (context.Context , string , ... string ) (* schema .Object , error ) // Get a group with attributes
181- DeleteGroup (context.Context , string ) (* schema .Object , error ) // Delete a group
182- AddGroupUser (context.Context , string , string ) (* schema .Object , error ) // Add a user to a group
183- RemoveGroupUser (context.Context , string , string ) (* schema .Object , error ) // Remove a user from a group
179+ ListGroups (context.Context , ldapschema .ObjectListRequest ) ([]* ldapschema .ObjectList , error ) // List groups
180+ GetGroup (context.Context , string , ... string ) (* ldapschema .Object , error ) // Get a group with attributes
181+ DeleteGroup (context.Context , string ) (* ldapschema .Object , error ) // Delete a group
182+ AddGroupUser (context.Context , string , string ) (* ldapschema .Object , error ) // Add a user to a group
183+ RemoveGroupUser (context.Context , string , string ) (* ldapschema .Object , error ) // Remove a user from a group
184184
185185 // Auth
186- Bind (context.Context , string , string ) (* schema .Object , error ) // Check user and password
187- ChangePassword (context.Context , string , string , * string ) (* schema .Object , error ) // Change password for a user, and return the user object
186+ Bind (context.Context , string , string ) (* ldapschema .Object , error ) // Check user and password
187+ ChangePassword (context.Context , string , string , * string ) (* ldapschema .Object , error ) // Change password for a user, and return the user object
188188}
0 commit comments