Wiki source code of SDS (SQL Directory Service)

Last modified by christoph_lechleitner@iteg_at on 2013-08-03 10.49:19

Show last authors
1 = {{id name="SDS(SQLDirectoryService)-Overview"/}}Overview =
2
3 The SDS (SQL Directory Service) bundle provides means to manage a set of database tables maintaining users and groups for some application.
4
5 It provides a DOJO based web interface to manage the users and groups and group memberships.
6
7 Putting SDS together with [[doc:LOGIN.DomainPasswordLoginService implementations and backends.org\.clazzes\.login\.sql.WebHome]] (1.3.2+) provides a complete standalone authentication service and management to use for a set of standalone applications running in the same OSGi container.
8
9 = {{id name="SDS(SQLDirectoryService)-InstallationinanOSGicontainer"/}}Installation in an OSGi container =
10
11 The SDS service is provided as an OSGi bundle, which may be activated by
12
13 {{code language="none"}}
14 obr:addurl http://maven.clazzes.org/repository.xml
15 obr:deploy sds.api
16 obr:deploy sds.impl
17 obr:deploy sds.web
18 {{/code}}
19
20 = {{id name="SDS(SQLDirectoryService)-InstallationonaDebianhost"/}}Installation on a Debian host =
21
22 This only works well for a Karaf using {{code language="none"}}/etc/apache-karaf{{/code}} as configuration directory, like ITEG's apache-karaf distribution.
23
24 {{code language="none"}}
25 cd /etc/apt/sources.list.d
26 test -f any-sds-1.list || wget http://deb.clazzes.org/any/sources.list.d/any/any-sds-1.list
27 apt-get update sds-bundles apache-karaf-sds-bundles-activator
28 {{/code}}
29
30 = {{id name="SDS(SQLDirectoryService)-Configuration"/}}Configuration =
31
32 == {{id name="SDS(SQLDirectoryService)-PID"/}}PID {{code language="none"}}org.clazzes.sds.web{{/code}} ==
33
34 {{code language="none"}}
35 # org.clazzes.sds.web.cfg
36 dataSourceName = SDS
37 defaultPasswordAlgorithm = crypt
38 {{/code}}
39
40 For information about how to provide a DataSource (to which to refer to with the {{code language="none"}}dataSourceName{{/code}} key), see [[doc:UTIL.Multi-DataSource pooling with JDBC-Provider.WebHome]].
41
42 == {{id name="SDS(SQLDirectoryService)-PID"/}}PID {{code language="none"}}org.clazzes.sds.web{{/code}} ==
43
44 {{code language="none"}}
45 # org.clazzes.sds.web.cfg
46 loginMechanism = org.clazzes.login.sql
47 suUsers = MYDOMAIN/admin
48  
49 # optionals:
50 maxAgeSeconds = 3600
51 deliverUncompressed = false
52 {{/code}}
53
54 For information about {{code language="none"}}loginMechanism{{/code}}, see [[doc:LOGIN.DomainPasswordLoginService implementations and backends.WebHome]].
55
56