@@ -11,7 +11,7 @@ import (
11
11
// Packages
12
12
pg "github.com/djthorpe/go-pg"
13
13
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"
15
15
pgschema "github.com/mutablelogic/go-server/pkg/pgqueue/schema"
16
16
)
17
17
@@ -159,30 +159,30 @@ type Auth interface {
159
159
160
160
type LDAP interface {
161
161
// 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
167
167
168
168
// 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
171
171
172
172
// 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
177
177
178
178
// 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
184
184
185
185
// 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
188
188
}
0 commit comments