summaryrefslogtreecommitdiff
path: root/BUILD.txt
blob: 6034e7b452f900e253b7dd6ece8b7611a5dc9b73 (plain)
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
Very Quick Guide to build sssd components
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Use the following instructions to build the libraries and the binaries.
NOTE: these instructions are temporary and will most likely change agt some
point but so far the process I describe here is the best one to get something up
and working while developing this project.

Each library and the sssd service have a --with-shared-build-dir configure option
that is useful to build the libraries so that you can build all pieces before
installing each library as a dependency.
If you just want to make a development build you can provide a temporary
directory where libraries are installed during the build process in a way that
let each dependent library find them without having to install each binary into
its finally system library directory (ie build as user).

I use the following steps to build all pieces.

export LD_LIBRARY_PATH=/tmp/foo/lib
pushd talloc; ./autogen.sh && ./configure --with-shared-build-dir=/tmp/foo && make shared-build; popd
pushd tdb; ./autogen.sh && ./configure --with-shared-build-dir=/tmp/foo && make shared-build; popd
pushd tevent; ./autogen.sh && ./configure --with-shared-build-dir=/tmp/foo && make shared-build; popd
pushd ldb; ./autogen.sh && ./configure --with-shared-build-dir=/tmp/foo && make shared-build; popd
pushd server; ./autogen.sh && ./configure --with-shared-build-dir=/tmp/foo && make; popd

At this point you can start testing the sssd daemon this way:

cd server
export LD_LIBRARY_PATH=/tmp/foo/lib
./sbin/sssd -i

This will start the sssd daemon in interactive mode.


The nss and pam client doesn't need any dependency nor supports the
shared-build option.

pushd sss_client; ./autogen.sh && ./configure && make; popd

Now you have to copy libnss_sss* into /lib (or /lib64) and add the 'sss' traget
to nsswitch.conf passwd database

For pam copy pam_sss.so into /lib/security (or /lib64/security) and add
pam_sss.so to your pam configuration. To use the pam_test_client from
sss_client create the following file:

/etc/pam.d/sss_test:
auth     required pam_sss.so
account  required pam_sss.so
password required pam_sss.so
session  required pam_sss.so

Now you can call pam_test_client:
./pam_test_client [auth|chau|acct|setc|open|clos] username@domain

~~~~~
Simo.