|
1
|
|
|
ldap_test_server_fixtures = { |
|
|
|
|
|
|
2
|
|
|
'port': 3333, |
|
3
|
|
|
'password': 'toor', |
|
4
|
|
|
|
|
5
|
|
|
'bind_dn': 'cn=admin,dc=directory,dc=fsf,dc=org', |
|
6
|
|
|
'base': { |
|
7
|
|
|
'objectclass': ['dcObject', 'organization'], |
|
8
|
|
|
'dn': 'dc=directory,dc=fsf,dc=org', |
|
9
|
|
|
'attributes': { |
|
10
|
|
|
'o': 'Free Software Foundation', |
|
11
|
|
|
'dc': 'directory' |
|
12
|
|
|
} |
|
13
|
|
|
}, |
|
14
|
|
|
|
|
15
|
|
|
'entries': [ |
|
16
|
|
|
{ |
|
17
|
|
|
'objectclass': ['organizationalRole'], |
|
18
|
|
|
'dn': 'cn=admin,dc=directory,dc=fsf,dc=org', |
|
19
|
|
|
'attributes': { |
|
20
|
|
|
'cn': 'admin' |
|
21
|
|
|
} |
|
22
|
|
|
}, |
|
23
|
|
|
{ |
|
24
|
|
|
'objectclass': ['organizationalUnit'], |
|
25
|
|
|
'dn': 'ou=people,dc=directory,dc=fsf,dc=org', |
|
26
|
|
|
'attributes': { |
|
27
|
|
|
'ou': 'people', |
|
28
|
|
|
} |
|
29
|
|
|
}, |
|
30
|
|
|
{ |
|
31
|
|
|
'objectclass': ['organizationalUnit'], |
|
32
|
|
|
'dn': 'ou=groups,dc=directory,dc=fsf,dc=org', |
|
33
|
|
|
'attributes': { |
|
34
|
|
|
'ou': 'groups', |
|
35
|
|
|
} |
|
36
|
|
|
}, |
|
37
|
|
|
{ |
|
38
|
|
|
'objectclass': ['account', 'top'], |
|
39
|
|
|
'dn': '[email protected],ou=people,dc=directory,dc=fsf,dc=org', |
|
40
|
|
|
'attributes': { |
|
41
|
|
|
'uid': '[email protected]', |
|
42
|
|
|
'userPassword': 'rms', |
|
43
|
|
|
'mail': '[email protected]', |
|
44
|
|
|
'pubname': 'Richard Stallman', |
|
45
|
|
|
} |
|
46
|
|
|
}, |
|
47
|
|
|
{ |
|
48
|
|
|
'objectclass': ['account', 'top'], |
|
49
|
|
|
'dn': '[email protected],ou=people,dc=directory,dc=fsf,dc=org', |
|
50
|
|
|
'attributes': { |
|
51
|
|
|
'uid': '[email protected]', |
|
52
|
|
|
'userPassword': 'foobarbaz', |
|
53
|
|
|
'mail': '[email protected]', |
|
54
|
|
|
'pubname': 'Lawrence Lessig', |
|
55
|
|
|
} |
|
56
|
|
|
}, |
|
57
|
|
|
] |
|
58
|
|
|
} |
|
59
|
|
|
|
The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:
If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.