1
0

openldap-numerical-id.feature 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. Feature: LDAP
  2. Background:
  3. Given using api version "2"
  4. And having a valid LDAP configuration
  5. And modify LDAP configuration
  6. | ldapExpertUsernameAttr | employeeNumber |
  7. | ldapLoginFilter | (&(objectclass=inetorgperson)(employeeNumber=%uid)) |
  8. # Those tests are dedicated to ensure Nc is working when it is provided with
  9. # users having numerical IDs
  10. Scenario: Look for a expected LDAP users
  11. Given As an "admin"
  12. And sending "GET" to "/cloud/users"
  13. Then the OCS status code should be "200"
  14. And the "users" result should match
  15. | 92379 | 1 |
  16. | 50194 | 1 |
  17. Scenario: check default home of an LDAP user
  18. Given As an "admin"
  19. And sending "GET" to "/cloud/users/92379"
  20. Then the OCS status code should be "200"
  21. And the record's fields should match
  22. | storageLocation | /dev/shm/nc_int/92379 |
  23. Scenario: Test by logging in
  24. Given cookies are reset
  25. And Logging in using web as "92379"
  26. And Sending a "GET" to "/remote.php/webdav/welcome.txt" with requesttoken
  27. Then the HTTP status code should be "200"