@@ -158,17 +158,17 @@ type Auth interface {
158
158
// LDAP
159
159
160
160
type LDAP interface {
161
+ // Introspection
162
+ ListObjectClasses (context.Context ) ([]* ldapschema.ObjectClass , error ) // Return all classes
163
+ ListAttributeTypes (context.Context ) ([]* ldapschema.AttributeType , error ) // Return all attributes
164
+
161
165
// Objects
162
166
List (context.Context , ldapschema.ObjectListRequest ) (* ldapschema.ObjectList , error ) // List all objects in the directory
163
167
Get (context.Context , string , ... string ) (* ldapschema.Object , error ) // Get an object with attributes
164
168
Delete (context.Context , string ) (* ldapschema.Object , error ) // Delete an object
165
169
Create (context.Context , string , url.Values ) (* ldapschema.Object , error ) // Create a new object with attributes
166
170
Update (context.Context , string , url.Values ) (* ldapschema.Object , error ) // Update an object with attributes
167
171
168
- // Introspection
169
- ListObjectClasses (context.Context ) ([]* ldapschema.ObjectClass , error ) // Return all classes
170
- ListAttributeTypes (context.Context ) ([]* ldapschema.AttributeType , error ) // Return all attributes
171
-
172
172
// Users
173
173
ListUsers (context.Context , ldapschema.ObjectListRequest ) ([]* ldapschema.ObjectList , error ) // List users
174
174
GetUser (context.Context , string , ... string ) (* ldapschema.Object , error ) // Get a user with attributes
@@ -183,6 +183,6 @@ type LDAP interface {
183
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 ) (* ldapschema.Object , error ) // Check user and password
186
+ Bind (context.Context , string , string ) (* ldapschema.Object , error ) // Check credentials
187
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