@@ -158,17 +158,17 @@ type Auth interface {
158158// LDAP
159159
160160type 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+
161165 // Objects
162166 List (context.Context , ldapschema.ObjectListRequest ) (* ldapschema.ObjectList , error ) // List all objects in the directory
163167 Get (context.Context , string , ... string ) (* ldapschema.Object , error ) // Get an object with attributes
164168 Delete (context.Context , string ) (* ldapschema.Object , error ) // Delete an object
165169 Create (context.Context , string , url.Values ) (* ldapschema.Object , error ) // Create a new object with attributes
166170 Update (context.Context , string , url.Values ) (* ldapschema.Object , error ) // Update an object with attributes
167171
168- // Introspection
169- ListObjectClasses (context.Context ) ([]* ldapschema.ObjectClass , error ) // Return all classes
170- ListAttributeTypes (context.Context ) ([]* ldapschema.AttributeType , error ) // Return all attributes
171-
172172 // Users
173173 ListUsers (context.Context , ldapschema.ObjectListRequest ) ([]* ldapschema.ObjectList , error ) // List users
174174 GetUser (context.Context , string , ... string ) (* ldapschema.Object , error ) // Get a user with attributes
@@ -183,6 +183,6 @@ type LDAP interface {
183183 RemoveGroupUser (context.Context , string , string ) (* ldapschema.Object , error ) // Remove a user from a group
184184
185185 // 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
187187 ChangePassword (context.Context , string , string , * string ) (* ldapschema.Object , error ) // Change password for a user, and return the user object
188188}
0 commit comments