-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
5147 lines (4726 loc) · 134 KB
/
Makefile.am
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
extra_distcheck_flags =
if HAVE_DEVSHM
extra_distcheck_flags += --with-test-dir=/dev/shm
endif
if WITH_JOURNALD
extra_distcheck_flags += --with-syslog=journald
endif
DISTCHECK_CONFIGURE_FLAGS = --with-ldb-lib-dir="$$dc_install_base"/lib/ldb \
--disable-dbus-tests \
--enable-all-experimental-features \
$(extra_distcheck_flags) \
$(AUX_DISTCHECK_CONFIGURE_FLAGS)
CLEANFILES = $(NULL)
BUILT_SOURCES = $(NULL)
SUBDIRS = po
if HAVE_MANPAGES
SUBDIRS += src/man
endif
SUBDIRS += . src/tests/cwrap src/tests/intg src/tests/test_CA
# Some old versions of automake don't define builddir
builddir ?= .
DOXYGEN = @DOXYGEN@
DISTSETUPOPTS =
if HAVE_DEBIAN
DISTSETUPOPTS += --install-layout=deb
endif
sssdlibexecdir = $(libexecdir)/sssd
sssdlibdir = $(libdir)/sssd
sssddefaultconfdir = $(sssdlibdir)/conf
ldblibdir = @ldblibdir@
if BUILD_KRB5_LOCATOR_PLUGIN
krb5plugindir = @krb5pluginpath@
endif
if BUILD_KRB5_LOCALAUTH_PLUGIN
krb5localauth_plugindir = @appmodpath@
endif
if BUILD_PAC_RESPONDER
krb5authdata_plugindir = @krb5authdatapluginpath@
endif
if BUILD_CIFS_IDMAP_PLUGIN
cifsplugindir = @cifspluginpath@
endif
if BUILD_SAMBA
winbindplugindir = @winbindpluginpath@
endif
if BUILD_LIBWBCLIENT
libwbclientdir = @appmodpath@
endif
sssdconfdir = $(sysconfdir)/sssd
sssddatadir = $(datadir)/sssd
sssdapiplugindir = $(sssddatadir)/sssd.api.d
sssdtapscriptdir = $(sssddatadir)/systemtap
dbuspolicydir = $(sysconfdir)/dbus-1/system.d
dbusservicedir = $(datadir)/dbus-1/system-services
sss_statedir = $(localstatedir)/lib/sss
runstatedir = @runstatedir@
localedir = @localedir@
nsslibdir = @nsslibdir@
pamlibdir = @pammoddir@
autofslibdir = @appmodpath@
nfslibdir = @nfsidmaplibdir@
dbpath = @dbpath@
pluginpath = @pluginpath@
pidpath = @pidpath@
pipepath = @pipepath@
mcpath = @mcpath@
initdir = @initdir@
systemdunitdir = @systemdunitdir@
systemdconfdir = @systemdconfdir@
logpath = @logpath@
pubconfpath = @pubconfpath@
gpocachepath = @gpocachepath@
keytabdir = $(sss_statedir)/keytabs
pkgconfigdir = $(libdir)/pkgconfig
krb5rcachedir = @krb5rcachedir@
sudolibdir = @sudolibpath@
polkitdir = @polkitdir@
pamconfdir = $(sysconfdir)/pam.d
systemtap_tapdir = @tapset_dir@
sssdkcmdatadir = $(datadir)/sssd-kcm
deskprofilepath = $(sss_statedir)/deskprofile
if HAVE_SYSTEMD_UNIT
ifp_exec_cmd = $(sssdlibexecdir)/sssd_ifp --uid 0 --gid 0 --dbus-activated
ifp_systemdservice = SystemdService=sssd-ifp.service
ifp_restart = Restart=on-failure
else
ifp_exec_cmd = $(sssdlibexecdir)/sss_signal
ifp_systemdservice =
ifp_restart =
endif
secdbpath = @secdbpath@
UNICODE_LIBS=@UNICODE_LIBS@
MKDIR_P = @MKDIR_P@
INSTALL = @INSTALL@
SSSD_USER = @SSSD_USER@
AM_CFLAGS =
if WANT_AUX_INFO
AM_CFLAGS += -aux-info [email protected]
endif
if HAVE_GCC
AM_CFLAGS += -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith \
-Wcast-qual -Wcast-align -Wwrite-strings -Wundef \
-Werror-implicit-function-declaration -Winit-self \
-Wmissing-include-dirs \
-fno-strict-aliasing \
-std=gnu99
endif
pkgconfig_DATA =
ACLOCAL_AMFLAGS = -I m4 -I .
if BUILD_SSH
bin_PROGRAMS = \
sss_ssh_authorizedkeys \
sss_ssh_knownhostsproxy
endif
sbin_PROGRAMS = \
sssd \
sss_useradd \
sss_userdel \
sss_groupadd \
sss_groupdel \
sss_usermod \
sss_groupmod \
sss_groupshow \
sss_cache \
sss_override \
sss_seed \
sssctl \
$(NULL)
sssdlibexec_PROGRAMS = \
sssd_nss \
sssd_pam \
sssd_be \
krb5_child \
ldap_child \
proxy_child \
sss_signal \
$(NULL)
if BUILD_SUDO
sssdlibexec_PROGRAMS += sssd_sudo
endif
if BUILD_AUTOFS
sssdlibexec_PROGRAMS += sssd_autofs
endif
if BUILD_SSH
sssdlibexec_PROGRAMS += sssd_ssh
endif
if BUILD_IFP
sssdlibexec_PROGRAMS += sssd_ifp
endif
if BUILD_SAMBA
sssdlibexec_PROGRAMS += gpo_child
endif
if BUILD_SEMANAGE
sssdlibexec_PROGRAMS += selinux_child
endif
sssdlibexec_PROGRAMS += p11_child
if SSSD_USER
if HAVE_POLKIT_RULES_D
polkit_rulesdir = $(polkitdir)
dist_polkit_rules_DATA = contrib/sssd-pcsc.rules
endif
endif
if BUILD_SECRETS
sssdlibexec_PROGRAMS += sssd_secrets
endif
if BUILD_KCM
sssdlibexec_PROGRAMS += sssd_kcm
dist_sssdkcmdata_DATA = contrib/kcm_default_ccache
endif
if BUILD_PAC_RESPONDER
sssdlibexec_PROGRAMS += sssd_pac
endif
if HAVE_SYSTEMD_UNIT
sssdlibexec_PROGRAMS += sssd_check_socket_activated_responders
endif
if HAVE_CHECK
non_interactive_check_based_tests = \
dlopen-tests \
sysdb-tests \
strtonum-tests \
resolv-tests \
krb5-utils-tests \
check_and_open-tests \
files-tests \
refcount-tests \
fail_over-tests \
find_uid-tests \
auth-tests \
ipa_ldap_opt-tests \
ad_ldap_opt-tests \
crypto-tests \
util-tests \
debug-tests \
ipa_hbac-tests \
sss_idmap-tests \
responder_socket_access-tests \
safe-format-tests
if BUILD_SSH
non_interactive_check_based_tests += sysdb_ssh-tests
endif
if BUILD_DBUS_TESTS
non_interactive_check_based_tests += \
sbus_tests \
sbus_codegen_tests
endif # BUILD_DBUS_TESTS
endif # HAVE_CHECK
if HAVE_CMOCKA
non_interactive_cmocka_based_tests = \
nss-srv-tests \
test-find-uid \
test-io \
test-negcache \
test-authtok \
sss_nss_idmap-tests \
dyndns-tests \
fqnames-tests \
nestedgroups-tests \
test_sss_idmap \
test_ipa_idmap \
test_utils \
dp_opt_tests \
responder-get-domains-tests \
sbus-internal-tests \
config_check-tests \
sss_sifp-tests \
test_search_bases \
test_ldap_auth \
test_sdap_access \
test_sdap_certmap \
sdap-tests \
test_sysdb_ts_cache \
test_sysdb_views \
test_sysdb_subdomains \
test_sysdb_certmap \
test_sysdb_sudo \
test_sysdb_utils \
test_sysdb_domain_resolution_order \
test_wbc_calls \
test_be_ptask \
test_copy_ccache \
test_copy_keytab \
test_child_common \
responder_cache_req-tests \
test_sbus_opath \
test_fo_srv \
pam-srv-tests \
ssh-srv-tests \
test_ipa_subdom_util \
test_tools_colondb \
test_krb5_wait_queue \
test_cert_utils \
test_ldap_id_cleanup \
test_data_provider_be \
test_dp_request_table \
test_dp_request \
test_dp_builtin \
test_ipa_dn \
simple-access-tests \
krb5_common_test \
test_iobuf \
sss_certmap_test \
test_sssd_krb5_locator_plugin \
$(NULL)
if HAVE_LIBRESOLV
non_interactive_cmocka_based_tests += test_resolv_fake
endif # HAVE_LIBRESOLV
if BUILD_IFP
non_interactive_cmocka_based_tests += ifp_tests
endif # BUILD_IFP
if HAVE_INOTIFY
non_interactive_cmocka_based_tests += test_inotify
endif # HAVE_INOTIFY
if BUILD_KCM
non_interactive_cmocka_based_tests += \
test_kcm_json \
test_kcm_queue \
$(NULL)
endif # BUILD_KCM
if BUILD_SAMBA
non_interactive_cmocka_based_tests += \
ad_access_filter_tests \
ad_gpo_tests \
ad_common_tests \
test_sdap_initgr \
test_ad_subdom \
test_ipa_subdom_server \
$(NULL)
endif
if BUILD_KRB5_LOCALAUTH_PLUGIN
non_interactive_cmocka_based_tests += test_sssd_krb5_localauth_plugin
endif # BUILD_KRB5_LOCALAUTH_PLUGIN
endif # HAVE_CMOCKA
check_PROGRAMS = \
stress-tests \
krb5-child-test \
test_ssh_client \
$(non_interactive_cmocka_based_tests) \
$(non_interactive_check_based_tests)
if HAVE_CMOCKA
check_PROGRAMS += dummy-child
endif # HAVE_CMOCKA
PYTHON_TESTS =
if BUILD_PYTHON2_BINDINGS
PYTHON_TESTS += src/config/SSSDConfigTest.py2.sh \
src/tests/pyhbac-test.py2.sh \
src/tests/pysss_murmur-test.py2.sh \
$(NULL)
endif
if BUILD_PYTHON3_BINDINGS
PYTHON_TESTS += src/config/SSSDConfigTest.py3.sh \
src/tests/pyhbac-test.py3.sh \
src/tests/pysss_murmur-test.py3.sh \
$(NULL)
endif
TEST_EXTENSIONS = .sh
TESTS = \
$(PYTHON_TESTS) \
$(non_interactive_cmocka_based_tests) \
$(non_interactive_check_based_tests) \
src/tests/whitespace_test \
src/tests/double_semicolon_test \
$(NULL)
sssdlib_LTLIBRARIES = \
libsss_ldap.la \
libsss_krb5.la \
libsss_proxy.la \
libsss_simple.la \
$(NULL)
if BUILD_SAMBA
sssdlib_LTLIBRARIES += \
libsss_ipa.la \
libsss_ad.la
endif
if HAVE_INOTIFY
sssdlib_LTLIBRARIES += \
libsss_files.la \
$(NULL)
endif # HAVE_INOTIFY
ldblib_LTLIBRARIES = \
memberof.la
if BUILD_KRB5_LOCATOR_PLUGIN
krb5plugin_LTLIBRARIES = \
sssd_krb5_locator_plugin.la
endif
if BUILD_KRB5_LOCALAUTH_PLUGIN
krb5localauth_plugin_LTLIBRARIES = \
sssd_krb5_localauth_plugin.la
endif
if BUILD_PAC_RESPONDER
krb5authdata_plugin_LTLIBRARIES = \
sssd_pac_plugin.la
endif
if BUILD_CIFS_IDMAP_PLUGIN
cifsplugin_LTLIBRARIES = \
cifs_idmap_sss.la
endif
if BUILD_SAMBA
winbindplugin_LTLIBRARIES = \
winbind_idmap_sss.la \
$(NULL)
endif
noinst_LTLIBRARIES =
pkglib_LTLIBRARIES =
if BUILD_PYTHON2_BINDINGS
py2exec_LTLIBRARIES = \
_py2sss.la \
_py2hbac.la \
_py2sss_murmur.la \
_py2sss_nss_idmap.la \
$(NULL)
endif
if BUILD_PYTHON3_BINDINGS
py3exec_LTLIBRARIES = \
_py3sss.la \
_py3hbac.la \
_py3sss_murmur.la \
_py3sss_nss_idmap.la \
$(NULL)
endif
sbin_SCRIPTS = \
src/tools/wrappers/sss_debuglevel \
$(NULL)
dist_noinst_SCRIPTS = \
$(EXTRA_SCRIPTS) \
src/config/setup.py \
src/config/SSSDConfig/ipachangeconf.py \
src/config/SSSDConfig/__init__.py \
src/config/SSSDConfigTest.py \
src/config/SSSDConfigTest.py2.sh \
src/config/SSSDConfigTest.py3.sh \
contrib/fedora/bashrc_sssd \
contrib/fedora/make_srpm.sh \
contrib/ci/clean \
contrib/ci/rpm-spec-builddeps \
contrib/ci/run \
contrib/ci/valgrind-condense \
src/tests/pyhbac-test.py \
src/tests/pyhbac-test.py2.sh \
src/tests/pyhbac-test.py3.sh \
src/tests/pysss_murmur-test.py \
src/tests/pysss_murmur-test.py2.sh \
src/tests/pysss_murmur-test.py3.sh \
src/tests/python-test.py \
src/tests/whitespace_test \
src/tests/double_semicolon_test \
src/tests/krb5_proxy_check_test_data.conf \
$(NULL)
dist_noinst_DATA = \
src/config/testconfigs/sssd-valid.conf \
src/config/testconfigs/noparse.api.conf \
src/config/testconfigs/sssd-noversion.conf \
src/config/testconfigs/sssd-badversion.conf \
src/config/testconfigs/sssd-invalid.conf \
src/config/testconfigs/sssd-invalid-badbool.conf \
src/config/testconfigs/sssd-nonexisting-services-domains.conf \
src/config/etc/sssd.api.d/crash_test_dummy \
contrib/ci/README.md \
contrib/ci/configure.sh \
contrib/ci/deps.sh \
contrib/ci/distro.sh \
contrib/ci/misc.sh \
contrib/ci/sssd.supp \
$(SYSTEMTAP_PROBES) \
$(NULL)
###############################
# Global compilation settings #
###############################
AM_CPPFLAGS = \
-Wall \
-I.. \
-I$(srcdir)/src/sss_client \
-I$(srcdir)/src \
-I. \
$(POPT_CFLAGS) \
$(TALLOC_CFLAGS) \
$(TDB_CFLAGS) \
$(TEVENT_CFLAGS) \
$(LDB_CFLAGS) \
$(DBUS_CFLAGS) \
$(PCRE_CFLAGS) \
$(INI_CONFIG_CFLAGS) \
$(DHASH_CFLAGS) \
$(LIBNL_CFLAGS) \
$(OPENLDAP_CFLAGS) \
$(GLIB2_CFLAGS) \
$(JOURNALD_CFLAGS) \
-DLIBDIR=\"$(libdir)\" \
-DVARDIR=\"$(localstatedir)\" \
-DSSS_STATEDIR=\"$(sss_statedir)\" \
-DSYSCONFDIR=\"$(sysconfdir)\" \
-DSHLIBEXT=\"$(SHLIBEXT)\" \
-DSSSDDATADIR=\"$(sssddatadir)\" \
-DSSSD_LIBEXEC_PATH=\"$(sssdlibexecdir)\" \
-DSSSD_CONF_DIR=\"$(sssdconfdir)\" \
-DSSS_NSS_MCACHE_DIR=\"$(mcpath)\" \
-DSSS_NSS_SOCKET_NAME=\"$(pipepath)/nss\" \
-DSSS_PAM_SOCKET_NAME=\"$(pipepath)/pam\" \
-DSSS_PAC_SOCKET_NAME=\"$(pipepath)/pac\" \
-DSSS_PAM_PRIV_SOCKET_NAME=\"$(pipepath)/private/pam\" \
-DSSS_SEC_SOCKET_NAME=\"$(runstatedir)/secrets.socket\" \
-DSSS_SUDO_SOCKET_NAME=\"$(pipepath)/sudo\" \
-DSSS_AUTOFS_SOCKET_NAME=\"$(pipepath)/autofs\" \
-DSSS_SSH_SOCKET_NAME=\"$(pipepath)/ssh\" \
-DLOCALEDIR=\"$(localedir)\" \
-DBASE_FILE_STEM=\"$(*F)\" \
$(NULL)
EXTRA_DIST =
SSSD_CACHE_REQ_OBJ = \
src/responder/common/cache_req/cache_req.c \
src/responder/common/cache_req/cache_req_result.c \
src/responder/common/cache_req/cache_req_search.c \
src/responder/common/cache_req/cache_req_data.c \
src/responder/common/cache_req/cache_req_domain.c \
src/responder/common/cache_req/cache_req_sr_overlay.c \
src/responder/common/cache_req/plugins/cache_req_common.c \
src/responder/common/cache_req/plugins/cache_req_enum_users.c \
src/responder/common/cache_req/plugins/cache_req_enum_groups.c \
src/responder/common/cache_req/plugins/cache_req_enum_svc.c \
src/responder/common/cache_req/plugins/cache_req_user_by_name.c \
src/responder/common/cache_req/plugins/cache_req_user_by_upn.c \
src/responder/common/cache_req/plugins/cache_req_user_by_id.c \
src/responder/common/cache_req/plugins/cache_req_user_by_filter.c \
src/responder/common/cache_req/plugins/cache_req_user_by_cert.c \
src/responder/common/cache_req/plugins/cache_req_group_by_name.c \
src/responder/common/cache_req/plugins/cache_req_group_by_id.c \
src/responder/common/cache_req/plugins/cache_req_group_by_filter.c \
src/responder/common/cache_req/plugins/cache_req_initgroups_by_name.c \
src/responder/common/cache_req/plugins/cache_req_initgroups_by_upn.c \
src/responder/common/cache_req/plugins/cache_req_object_by_sid.c \
src/responder/common/cache_req/plugins/cache_req_object_by_name.c \
src/responder/common/cache_req/plugins/cache_req_object_by_id.c \
src/responder/common/cache_req/plugins/cache_req_svc_by_name.c \
src/responder/common/cache_req/plugins/cache_req_svc_by_port.c \
src/responder/common/cache_req/plugins/cache_req_netgroup_by_name.c \
src/responder/common/cache_req/plugins/cache_req_host_by_name.c \
$(NULL)
SSSD_RESPONDER_IFACE_OBJ = \
src/responder/common/iface/responder_iface.c \
src/responder/common/iface/responder_domain.c \
src/responder/common/iface/responder_ncache.c \
src/responder/common/iface/responder_iface_generated.c \
$(NULL)
SSSD_RESPONDER_OBJ = \
src/responder/common/negcache_files.c \
src/responder/common/negcache.c \
src/responder/common/responder_cmd.c \
src/responder/common/responder_common.c \
src/responder/common/responder_dp.c \
src/responder/common/responder_dp_ssh.c \
src/responder/common/responder_packet.c \
src/responder/common/responder_get_domains.c \
src/responder/common/responder_utils.c \
src/responder/common/data_provider/rdp_message.c \
src/responder/common/data_provider/rdp_client.c \
src/monitor/monitor_iface_generated.c \
src/providers/data_provider_req.c \
src/util/session_recording.c \
$(SSSD_RESPONDER_IFACE_OBJ) \
$(SSSD_CACHE_REQ_OBJ) \
$(NULL)
SSSD_TOOLS_OBJ = \
src/tools/sss_sync_ops.c \
src/tools/tools_util.c \
src/tools/common/sss_tools.c \
src/tools/common/sss_process.c \
src/confdb/confdb_setup.c \
src/util/nscd.c \
$(NULL)
SSSD_LCL_TOOLS_OBJ = \
src/sss_client/common.c \
src/tools/tools_mc_util.c \
$(SSSD_TOOLS_OBJ)
SSSD_RESOLV_OBJ = \
src/resolv/async_resolv.c \
src/resolv/async_resolv_utils.c
SSSD_FAILOVER_OBJ = \
src/providers/fail_over.c \
src/providers/fail_over_srv.c \
$(SSSD_RESOLV_OBJ)
SSSD_LIBS = \
$(TALLOC_LIBS) \
$(TEVENT_LIBS) \
$(POPT_LIBS) \
$(LDB_LIBS) \
$(DBUS_LIBS) \
$(DHASH_LIBS) \
$(SELINUX_LIBS) \
$(TDB_LIBS)
PYTHON_BINDINGS_LIBS = \
$(TALLOC_LIBS) \
$(POPT_LIBS) \
$(LDB_LIBS) \
$(NULL)
TOOLS_LIBS = \
$(LTLIBINTL) \
$(TALLOC_LIBS) \
$(TEVENT_LIBS) \
$(POPT_LIBS) \
$(LDB_LIBS) \
$(DBUS_LIBS) \
$(DHASH_LIBS) \
$(TDB_LIBS)
if BUILD_SELINUX
PYTHON_BINDINGS_LIBS += $(SELINUX_LIBS)
TOOLS_LIBS += $(SELINUX_LIBS)
endif
dist_noinst_HEADERS = \
src/monitor/monitor.h \
src/util/crypto/sss_crypto.h \
src/util/crypto/libcrypto/sss_openssl.h \
src/util/cert.h \
src/util/dlinklist.h \
src/util/debug.h \
src/util/util.h \
src/util/util_errors.h \
src/util/safe-format-string.h \
src/util/session_recording.h \
src/util/strtonum.h \
src/util/sss_cli_cmd.h \
src/util/sss_ptr_hash.h \
src/util/sss_endian.h \
src/util/sss_nss.h \
src/util/sss_ldap.h \
src/util/sss_python.h \
src/util/sss_krb5.h \
src/util/sss_selinux.h \
src/util/sss_sockets.h \
src/util/sss_utf8.h \
src/util/sss_ssh.h \
src/util/sss_ini.h \
src/util/sss_format.h \
src/util/refcount.h \
src/util/find_uid.h \
src/util/user_info_msg.h \
src/util/mmap_cache.h \
src/util/atomic_io.h \
src/util/auth_utils.h \
src/util/authtok.h \
src/util/authtok-utils.h \
src/util/util_sss_idmap.h \
src/util/util_creds.h \
src/util/inotify.h \
src/util/sss_iobuf.h \
src/util/tev_curl.h \
src/monitor/monitor.h \
src/monitor/monitor_interfaces.h \
src/monitor/monitor_iface_generated.h \
src/responder/common/responder.h \
src/responder/common/responder_packet.h \
src/responder/common/responder_sbus.h \
src/responder/common/iface/responder_iface.h \
src/responder/common/iface/responder_iface_generated.h \
src/responder/common/cache_req/cache_req.h \
src/responder/common/cache_req/cache_req_domain.h \
src/responder/common/cache_req/cache_req_plugin.h \
src/responder/common/cache_req/cache_req_private.h \
src/responder/common/data_provider/rdp.h \
src/responder/pam/pamsrv.h \
src/responder/pam/pam_helpers.h \
src/responder/nss/nss_private.h \
src/responder/nss/nss_protocol.h \
src/responder/nss/nss_iface_generated.h \
src/responder/nss/nss_iface.h \
src/responder/nss/nsssrv_mmap_cache.h \
src/responder/pac/pacsrv.h \
src/responder/common/negcache_files.h \
src/responder/common/negcache.h \
src/responder/sudo/sudosrv_private.h \
src/responder/autofs/autofs_private.h \
src/responder/ssh/ssh_private.h \
src/responder/ifp/ifp_iface_generated.h \
src/responder/ifp/ifp_iface.h \
src/responder/ifp/ifp_private.h \
src/responder/ifp/ifp_domains.h \
src/responder/ifp/ifp_components.h \
src/responder/ifp/ifp_users.h \
src/responder/ifp/ifp_groups.h \
src/responder/ifp/ifp_cache.h \
src/responder/secrets/secsrv.h \
src/responder/secrets/secsrv_private.h \
src/responder/secrets/secsrv_local.h \
src/responder/secrets/secsrv_proxy.h \
src/responder/kcm/kcm.h \
src/responder/kcm/kcmsrv_pvt.h \
src/responder/kcm/kcmsrv_ccache.h \
src/responder/kcm/kcmsrv_ccache_pvt.h \
src/responder/kcm/kcmsrv_ccache_be.h \
src/responder/kcm/kcmsrv_ops.h \
src/sbus/sbus_client.h \
src/sbus/sssd_dbus.h \
src/sbus/sssd_dbus_meta.h \
src/sbus/sssd_dbus_private.h \
src/sbus/sssd_dbus_invokers.h \
src/sbus/sssd_dbus_errors.h \
src/sbus/sssd_dbus_utils.h \
src/db/sysdb.h \
src/db/sysdb_sudo.h \
src/db/sysdb_autofs.h \
src/db/sysdb_selinux.h \
src/db/sysdb_private.h \
src/db/sysdb_services.h \
src/db/sysdb_ssh.h \
src/db/sysdb_domain_resolution_order.h \
src/confdb/confdb.h \
src/confdb/confdb_private.h \
src/confdb/confdb_setup.h \
src/providers/data_provider.h \
src/providers/data_provider_req.h \
src/providers/data_provider/dp.h \
src/providers/data_provider/dp_flags.h \
src/providers/data_provider/dp_responder_iface.h \
src/providers/data_provider/dp_private.h \
src/providers/data_provider/dp_request.h \
src/providers/data_provider/dp_custom_data.h \
src/providers/data_provider/dp_builtin.h \
src/providers/data_provider/dp_iface_generated.h \
src/providers/data_provider/dp_iface.h \
src/providers/backend.h \
src/providers/be_dyndns.h \
src/providers/be_ptask_private.h \
src/providers/be_ptask.h \
src/providers/be_refresh.h \
src/providers/fail_over.h \
src/providers/fail_over_srv.h \
src/util/child_common.h \
src/providers/simple/simple_access.h \
src/providers/simple/simple_access_pvt.h \
src/providers/krb5/krb5_auth.h \
src/providers/krb5/krb5_common.h \
src/providers/krb5/krb5_utils.h \
src/providers/krb5/krb5_init_shared.h \
src/providers/krb5/krb5_opts.h \
src/providers/krb5/krb5_ccache.h \
src/providers/ldap/ldap_common.h \
src/providers/ldap/sdap.h \
src/providers/ldap/sdap_access.h \
src/providers/ldap/sdap_async.h \
src/providers/ldap/sdap_async_ad.h \
src/providers/ldap/sdap_async_private.h \
src/providers/ldap/sdap_sudo.h \
src/providers/ldap/sdap_sudo_shared.h \
src/providers/ldap/sdap_autofs.h \
src/providers/ldap/sdap_id_op.h \
src/providers/ldap/ldap_opts.h \
src/providers/ldap/ldap_auth.h \
src/providers/ldap/sdap_range.h \
src/providers/ldap/sdap_users.h \
src/providers/ldap/sdap_dyndns.h \
src/providers/ldap/sdap_async_enum.h \
src/providers/ldap/sdap_ops.h \
src/providers/ipa/ipa_common.h \
src/providers/ipa/ipa_config.h \
src/providers/ipa/ipa_access.h \
src/providers/ipa/ipa_selinux.h \
src/providers/ipa/ipa_hosts.h \
src/providers/ipa/ipa_selinux_maps.h \
src/providers/ipa/ipa_auth.h \
src/providers/ipa/ipa_dyndns.h \
src/providers/ipa/ipa_subdomains.h \
src/providers/ipa/ipa_id.h \
src/providers/ipa/ipa_opts.h \
src/providers/ipa/ipa_srv.h \
src/providers/ipa/ipa_dn.h \
src/providers/ipa/ipa_sudo.h \
src/providers/ipa/ipa_session.h \
src/providers/ad/ad_srv.h \
src/providers/ad/ad_common.h \
src/providers/ad/ad_pac.h \
src/providers/ad/ad_id.h \
src/providers/ad/ad_access.h \
src/providers/ad/ad_gpo.h \
src/providers/ad/ad_opts.h \
src/providers/ad/ad_domain_info.h \
src/providers/ad/ad_subdomains.h \
src/providers/proxy/proxy.h \
src/providers/proxy/proxy_iface_generated.h \
src/providers/files/files_private.h \
src/tools/tools_util.h \
src/tools/sss_sync_ops.h \
src/resolv/async_resolv.h \
src/tests/common.h \
src/tests/common_check.h \
src/tests/cmocka/common_mock.h \
src/tests/cmocka/common_mock_resp.h \
src/tests/cmocka/common_mock_sdap.h \
src/tests/cmocka/common_mock_sysdb_objects.h \
src/tests/cmocka/common_mock_krb5.h \
src/tests/cmocka/common_mock_be.h \
src/tests/cmocka/test_expire_common.h \
src/tests/cmocka/test_sdap_access.h \
src/tests/cmocka/data_provider/mock_dp.h \
src/tests/sbus_codegen_tests_generated.h \
src/sss_client/pam_message.h \
src/sss_client/ssh/sss_ssh_client.h \
src/sss_client/sudo/sss_sudo.h \
src/sss_client/libwbclient/libwbclient.h \
src/sss_client/libwbclient/wbc_err_internal.h \
src/sss_client/libwbclient/wbclient_internal.h \
src/sss_client/libwbclient/wbc_sssd_internal.h \
src/sss_client/nfs/nfsidmap_internal.h \
src/lib/idmap/sss_idmap_private.h \
src/lib/sifp/sss_sifp_private.h \
src/lib/winbind_idmap_sss/winbind_idmap_sss.h \
src/tests/cmocka/test_utils.h \
src/tools/common/sss_tools.h \
src/tools/common/sss_process.h \
src/tools/common/sss_colondb.h \
src/tools/sssctl/sssctl.h \
src/util/probes.h \
src/shared/io.h \
src/shared/murmurhash3.h \
src/shared/safealign.h \
src/p11_child/p11_child.h \
$(NULL)
if HAVE_NSS
dist_noinst_HEADERS += src/util/crypto/nss/nss_util.h \
src/util/crypto/nss/nss_crypto.h
endif
SSSD_DOCS = \
doc \
hbac_doc \
idmap_doc \
nss_idmap_doc
if BUILD_IFP
SSSD_DOCS += sss_simpleifp_doc
endif
CLIENT_LIBS = $(LTLIBINTL)
if WITH_JOURNALD
SYSLOG_LIBS = $(JOURNALD_LIBS)
endif
#####################
# Utility libraries #
#####################
pkglib_LTLIBRARIES += libsss_debug.la
libsss_debug_la_SOURCES = \
src/util/debug.c \
src/util/sss_log.c \
src/util/sss_cli_cmd.c \
$(NULL)
libsss_debug_la_LIBADD = \
$(SYSLOG_LIBS)
libsss_debug_la_LDFLAGS = \
-avoid-version
pkglib_LTLIBRARIES += libsss_child.la
libsss_child_la_SOURCES = src/util/child_common.c
libsss_child_la_LIBADD = \
$(TALLOC_LIBS) \
$(TEVENT_LIBS) \
$(DHASH_LIBS) \
libsss_debug.la \
$(NULL)
libsss_child_la_LDFLAGS = -avoid-version
pkglib_LTLIBRARIES += libsss_crypt.la
# NOTE:
# Please try to avoid using SSS_CRYPT_{CFLAGS,LIBS} directly for compiling and
# linking programs or libraries. This is purpose of wrapper library
# libsss_crypt.so to hide internals. SSS_CRYPT_{CFLAGS,LIBS} might be used
# in unit tests if you directly uses functions from underlining crypto libraries
if HAVE_NSS
SSS_CRYPT_SOURCES = src/util/crypto/nss/nss_base64.c \
src/util/crypto/nss/nss_hmac_sha1.c \
src/util/crypto/nss/nss_sha512crypt.c \
src/util/crypto/nss/nss_obfuscate.c \
src/util/crypto/nss/nss_nite.c \
src/util/crypto/nss/nss_util.c \
src/util/crypto/sss_crypto.c \
src/util/atomic_io.c \
$(NULL)
SSS_CRYPT_CFLAGS = $(NSS_CFLAGS)
SSS_CRYPT_LIBS = $(NSS_LIBS)
SSS_CERT_SOURCES = \
src/util/cert/cert_common.c \
src/util/cert/cert_common_p11_child.c \
src/util/cert/nss/cert.c \
$(NULL)
SSS_CERT_CFLAGS = \
$(NSS_CFLAGS) \
$(NULL)
SSS_CERT_LIBS = \
$(NSS_LIBS) \
$(NULL)
else
SSS_CRYPT_SOURCES = src/util/crypto/libcrypto/crypto_base64.c \
src/util/crypto/libcrypto/crypto_hmac_sha1.c \
src/util/crypto/libcrypto/crypto_sha512crypt.c \
src/util/crypto/libcrypto/crypto_obfuscate.c \
src/util/crypto/libcrypto/crypto_nite.c \
src/util/crypto/sss_crypto.c \
src/util/atomic_io.c \
$(NULL)
SSS_CRYPT_CFLAGS = $(CRYPTO_CFLAGS)
SSS_CRYPT_LIBS = $(CRYPTO_LIBS)
SSS_CERT_SOURCES = \
src/util/cert/cert_common.c \
src/util/cert/cert_common_p11_child.c \
src/util/cert/libcrypto/cert.c \
$(NULL)
SSS_CERT_CFLAGS = \
$(CRYPTO_CFLAGS) \
$(NULL)
SSS_CERT_LIBS = \
$(CRYPTO_LIBS) \
$(NULL)
endif
libsss_crypt_la_SOURCES = \
$(SSS_CRYPT_SOURCES)
libsss_crypt_la_CFLAGS = \
$(AM_CFLAGS) \
$(SSS_CRYPT_CFLAGS) \
$(DHASH_CFLAGS)
libsss_crypt_la_LIBADD = \
$(SSS_CRYPT_LIBS) \
$(DHASH_LIBS) \
$(TALLOC_LIBS) \
libsss_debug.la \
$(NULL)
libsss_crypt_la_LDFLAGS = \
-avoid-version
pkglib_LTLIBRARIES += libsss_cert.la
libsss_cert_la_SOURCES = \
$(SSS_CERT_SOURCES) \
$(NULL)
libsss_cert_la_CFLAGS = \
$(AM_CFLAGS) \
$(SSS_CERT_CFLAGS) \
$(NULL)
# NOTE:
# There is a dependency between libsss_cert and libsss_child which should
# always be declared explicitly and if missing might cause issue in some
# environments (e.g. Gentoo or OpenSUSE build service), even if it is
# resolved otherwise while linking the binaries.
libsss_cert_la_LIBADD = \
$(SSS_CERT_LIBS) \
$(TALLOC_LIBS) \
$(TEVENT_LIBS) \
libsss_crypt.la \
libsss_child.la \
libsss_debug.la \
libsss_certmap.la \
$(NULL)
libsss_cert_la_LDFLAGS = \
-avoid-version \
$(NULL)
pkglib_LTLIBRARIES += libsss_util.la
libsss_util_la_SOURCES = \
src/confdb/confdb.c \
src/db/sysdb.c \
src/db/sysdb_ops.c \
src/db/sysdb_search.c \
src/db/sysdb_selinux.c \
src/db/sysdb_upgrade.c \