1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
# -*- mode: python -*-
Import("env")
env.Library('serverauth', ['mongo_authentication_session.cpp'])
env.Command(['action_type.h', 'action_type.cpp'], ['generate_action_types.py', 'action_types.txt'],
'$PYTHON $SOURCES $TARGETS')
# Just the data structures used
env.Library('authcore', ['action_set.cpp',
'action_type.cpp',
'authorization_manager.cpp',
'authorization_session.cpp',
'authz_documents_update_guard.cpp',
'authz_manager_external_state.cpp',
'authz_manager_external_state_local.cpp',
'authz_session_external_state.cpp',
'privilege.cpp',
'privilege_parser.cpp',
'resource_pattern.cpp',
'role_graph.cpp',
'role_graph_update.cpp',
'role_name.cpp',
'role_graph_builtin_roles.cpp',
'user.cpp',
'user_document_parser.cpp',
'user_management_commands_parser.cpp',
'user_name.cpp',
'user_set.cpp'],
LIBDEPS=['$BUILD_DIR/mongo/auth_helpers',
'$BUILD_DIR/mongo/base/base',
'$BUILD_DIR/mongo/bson',
'$BUILD_DIR/mongo/db/common',
'$BUILD_DIR/mongo/db/ops/update_driver',
'$BUILD_DIR/mongo/md5',
'$BUILD_DIR/mongo/namespace_string',
'$BUILD_DIR/mongo/signal_handlers_synchronous',
'$BUILD_DIR/mongo/stringutils'])
env.Library('authcommon',
['internal_user_auth.cpp'],
LIBDEPS=['$BUILD_DIR/mongo/bson'])
env.Library('authservercommon',
['authorization_manager_global.cpp',
'authz_session_external_state_server_common.cpp',
'sasl_commands.cpp',
'security_key.cpp'],
LIBDEPS=['authcommon', 'authcore', 'authmocks', 'saslauth'])
env.Library('saslauth',
['native_sasl_authentication_session.cpp',
'sasl_authentication_session.cpp',
'sasl_options.cpp',
'sasl_plain_server_conversation.cpp',
'sasl_scramsha1_server_conversation.cpp',
'sasl_server_conversation.cpp'],
LIBDEPS=['authcore', '$BUILD_DIR/mongo/crypto/scramauth'])
env.Library('authmongod',
['authz_manager_external_state_d.cpp',
'authz_session_external_state_d.cpp',
'auth_index_d.cpp'],
LIBDEPS=['authservercommon', '$BUILD_DIR/mongo/server_parameters'])
env.Library('authmongos',
['authz_manager_external_state_s.cpp',
'authz_session_external_state_s.cpp',
'user_cache_invalidator_job.cpp'],
LIBDEPS=['authservercommon'])
env.Library('authmocks',
['authz_manager_external_state_mock.cpp'],
LIBDEPS=['$BUILD_DIR/mongo/db/ops/update_driver',
'$BUILD_DIR/mongo/expressions'])
env.Library('sasltestcrutch',
['sasl_test_crutch.cpp'],
LIBDEPS=[])
env.CppUnitTest('action_set_test', 'action_set_test.cpp',
LIBDEPS=['authcore', 'authmocks', 'saslauth', 'sasltestcrutch'])
env.CppUnitTest('privilege_parser_test', 'privilege_parser_test.cpp',
LIBDEPS=['authcore', 'authmocks', 'saslauth', 'sasltestcrutch'])
env.CppUnitTest('role_graph_test', 'role_graph_test.cpp',
LIBDEPS=['authcore', 'authmocks', 'saslauth', 'sasltestcrutch'])
env.CppUnitTest('user_document_parser_test', 'user_document_parser_test.cpp',
LIBDEPS=['authcore', 'authmocks', 'saslauth', 'sasltestcrutch'])
env.CppUnitTest('user_set_test', 'user_set_test.cpp',
LIBDEPS=['authcore', 'authmocks', 'saslauth', 'sasltestcrutch'])
env.CppUnitTest('authorization_manager_test', 'authorization_manager_test.cpp',
LIBDEPS=['authcore', 'authmocks', 'saslauth', 'sasltestcrutch'])
env.CppUnitTest('authorization_session_test', 'authorization_session_test.cpp',
LIBDEPS=['authcore', 'authmocks', 'saslauth', 'sasltestcrutch'])
|