ldap.py 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. ldap_test_server_fixtures = {
  2. 'port': 3333,
  3. 'password': 'toor',
  4. 'bind_dn': 'cn=admin,dc=directory,dc=fsf,dc=org',
  5. 'base': {
  6. 'objectclass': ['dcObject', 'organization'],
  7. 'dn': 'dc=directory,dc=fsf,dc=org',
  8. 'attributes': {
  9. 'o': 'Free Software Foundation',
  10. 'dc': 'directory'
  11. }
  12. },
  13. 'entries': [
  14. {
  15. 'objectclass': ['organizationalRole'],
  16. 'dn': 'cn=admin,dc=directory,dc=fsf,dc=org',
  17. 'attributes': {
  18. 'cn': 'admin'
  19. }
  20. },
  21. {
  22. 'objectclass': ['organizationalUnit'],
  23. 'dn': 'ou=people,dc=directory,dc=fsf,dc=org',
  24. 'attributes': {
  25. 'ou': 'people',
  26. }
  27. },
  28. {
  29. 'objectclass': ['organizationalUnit'],
  30. 'dn': 'ou=groups,dc=directory,dc=fsf,dc=org',
  31. 'attributes': {
  32. 'ou': 'groups',
  33. }
  34. },
  35. {
  36. 'objectclass': ['account', 'top'],
  37. 'dn': 'cn=richard-not-real-email@fsf.org,ou=people,dc=directory,dc=fsf,dc=org',
  38. 'attributes': {
  39. 'uid': 'richard-not-real-email@fsf.org',
  40. 'userPassword': 'rms',
  41. 'mail': 'richard-not-real-email@fsf.org',
  42. 'pubname': 'Richard Stallman',
  43. }
  44. },
  45. {
  46. 'objectclass': ['account', 'top'],
  47. 'dn': 'cn=lawrence-not-real-email@fsf.local,ou=people,dc=directory,dc=fsf,dc=org',
  48. 'attributes': {
  49. 'uid': 'lawrence-not-real-email@fsf.local',
  50. 'userPassword': 'foobarbaz',
  51. 'mail': 'lawrence-not-real-email@fsf.local',
  52. 'pubname': 'Lawrence Lessig',
  53. }
  54. },
  55. ]
  56. }