-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathExercises-Day3.tex
More file actions
467 lines (415 loc) · 21.7 KB
/
Exercises-Day3.tex
File metadata and controls
467 lines (415 loc) · 21.7 KB
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
\addcontentsline{toc}{part}{Day 3: Advanced Kuali Identity Managemet}
\part*{Day 3\\
Advanced Kuali Identity Management}
\addcontentsline{toc}{section}{Exercise4: ldapsearch Tool and Query Syntax}
{\setlength{\baselineskip}%
{0.0\baselineskip}
\section*{\flushright Exercise 4\\
ldapsearch Tool and the Query Syntax}
\hrulefill \par}
\addcontentsline{toc}{subsection}{Description}
\subsection*{Description}
Use the ldapsearch tool to try various query examples in order to find
specific users with different information.
\addcontentsline{toc}{subsection}{Goals}
\subsection*{Goals}
\begin{itemize}
\item Learn LDAP Query Syntax
\item Learn to use OpenLdap tools
\end{itemize}
\addcontentsline{toc}{subsection}{Instructions}
\subsection*{Instructions}
\begin{enumerate}
\item Start by verifying the tools are installed by running ldapsearch
on the commandline by with '-h' to access the help information
\begin{lstlisting}[language=bash,basicstyle=\scriptsize,backgroundcolor=\color{ubergray},caption={Verify
the ldapsearch is there},frame=single,breaklines=true]
ldapsearch -h
man ldapsearch
\end{lstlisting}
\item Search by connecting to the localhost LDAP server to the
\textbf{cn-admin,dc=rsmart,dc=com} distinguished name and the
\textbf{ou=people,dc=rsmart,dc=com} organizational unit, and query
for anyone with the \textbf{eduPersonPrincipalName} of leo
\begin{lstlisting}[language=bash,basicstyle=\scriptsize,backgroundcolor=\color{ubergray},caption={Verify
the ldapsearch is there},frame=single,breaklines=true]
ldapsearch -H ldap://localhost -D "cn=admin,dc=rsmart,dc=com" -b
"ou=people,dc=rsmart,dc=com" -w rice
"(eduPersonPrincipalName=leo)"\end{lstlisting}
This query should result in the following:
\begin{lstlisting}[language=bash,basicstyle=\scriptsize,backgroundcolor=\color{ubergray},caption={Basic
query using eduPersonPrincipalName},frame=single,breaklines=true]
# extended LDIF
#
# LDAPv3
# base <ou=people,dc=rsmart,dc=com> with scope subtree
# filter: (eduPersonPrincipalName=leo)
# requesting: ALL
#
# 10000000, people, rsmart.com
dn: uid=10000000,ou=people,dc=rsmart,dc=com
uid: 10000000
eduPersonPrincipalName: leo
mail: leo@rsmart.com
eduPersonPrimaryAffiliation: student
eduPersonAffiliation: former-employee
eduPersonAffiliation: former-staff
eduPersonAffiliation: member
eduPersonAffiliation: student
departmentNumber: 9507
sn: Przybylski
givenName: Leonard
cn: Leonard Przybylski
employeeStatus: T
employeeZip: 85721-0073
employeeState: AZ
employeeCity: TUCSON
employeePhone: 5206266997
employeeNumber: 133006641
objectClass: top
objectClass: eduPerson
objectClass: organizationalPerson
objectClass: inetOrgPerson
objectClass: rsmartEmployee
# 10000000, people, rsmart.com
dn: cn=10000000,ou=people,dc=rsmart,dc=com
uid: 10000000
eduPersonPrincipalName: leo
mail: leo@rsmart.com
eduPersonPrimaryAffiliation: student
eduPersonAffiliation: former-employee
eduPersonAffiliation: former-staff
eduPersonAffiliation: member
eduPersonAffiliation: student
departmentNumber: 9507
sn: Przybylski
givenName: Leonard
cn: Leonard Przybylski
cn: 10000000
employeeStatus: T
employeeZip: 85721-0073
employeeState: AZ
employeeCity: TUCSON
employeePhone: 5206266997
employeeNumber: 133006641
objectClass: top
objectClass: eduPerson
objectClass: organizationalPerson
objectClass: inetOrgPerson
objectClass: rsmartEmployee
# search result
search: 2
result: 0 Success
# numResponses: 3
\end{lstlisting}
Information you want to analyze that will be used later is that we are
using
\begin{lstlisting}[language=bash,basicstyle=\scriptsize,backgroundcolor=\color{ubergray},caption={Verify
the ldapsearch is there},frame=single,breaklines=true]
uid: 10000000
eduPersonPrincipalName: leo
\end{lstlisting}
Later, we will need to adjust our mappings in our integration to be
aware of these fields. Knowing what they are is important.
Also, notice that we are using the following LDAP objectClasses.
\begin{description}
\item [inetOrgPerson] or Internet Organization Person. This schema
is a standard in Directory Services containing a number of important
attribute fields we use in our data like \textbf{employeeNumber},
\textbf{departmentNumber}, and \textbf{employeeType}.
\item [eduPerson] is an internet2 standard for information about
higher education people to be shared across institutions. Fields
from this that we're using are anything starting with \textbf{eduPerson*}
\item [rsmartEmployee] my own schema I created to fill in gaps for
employees like the \textbf{employeeStatus} field which is actually
really important.
\end{description}
\item Execute ldapsearch again. This time search for a \textbf{cn} of
10000000 \textbf{OR} \textbf{mail} field of \verb|*b*@rsmart.com|
\begin{lstlisting}[language=bash,basicstyle=\scriptsize,backgroundcolor=\color{ubergray},caption={LDAP
Query syntax using OR notation},frame=single,breaklines=true]
ldapsearch -H ldap://localhost -D "cn=admin,dc=rsmart,dc=com" -b
"ou=people,dc=rsmart,dc=com" -w rice
"(|(cn=10000000)(mail=*b*@rsmart.com))"
\end{lstlisting}
As in most query syntaxes, \textbf{OR} and \textbf{AND} are pretty much
universal. What sets LDAP apart is how most criteria is contained
within \textbf{()}. Further, operators are prefixed. That is, they
come before the criteria. Notice how the $|$ comes first in
\verb/"(|(cn=10000000)(mail=*b*@rsmart.com))"/
\end{enumerate}
\addcontentsline{toc}{section}{Exercise 5: Implementing LDAP Entity Integration}
{\setlength{\baselineskip}%
{0.0\baselineskip}
\section*{\flushright Exercise 5\\
Implementing LDAP Entity Integration}
\hrulefill \par}
The Kuali Foundation official documentation for the LDAP Integration
Module is located at https://wiki.kuali.org/x/FSyREg
\addcontentsline{toc}{subsection}{Setup CAS for LDAP}
\subsection*{1 Setup CAS for LDAP}
Up until now, we have been using the \verb|DummyLoginFilter| which is
ok, but now that our users exist in CAS, we can no longer use it. Once
CAS validates a users, KIM will try to find the user in the system. We
will need to integrate both steps at once before the application will
function again.
I have included in the workspace of the VM a \textbf{CAS} project. You
will want to import this into Eclipse as a new Maven project.
\begin{enumerate}
\item File $\rightarrow$ Import $\rightarrow$ Other
\includegraphics[width=\textwidth]{images/Screenshot-Import.png}
\item Click the \textbf{Browse} button
\item Select \textbf{cas} from \verb|/home/rice/workspace|
\includegraphics[width=\textwidth]{images/Screenshot14.png}
\item Edit \verb|src/main/resources/custom.properties|.
\includegraphics[width=\textwidth]{images/Screenshot15.png}
You want it to look like this.
\begin{lstlisting}[language=bash,basicstyle=\scriptsize,backgroundcolor=\color{ubergray},caption={src/main/resources/custom.properties},frame=single,breaklines=true]
ldap.server.url=ldap://localhost
ldap.server.bind.username=cn=admin,dc=rsmart,dc=com
ldap.server.bind.password=rice
ldap.authentication.filter=eduPersonPrincipalName=%u,ou=people,dc=rsmart,dc=com
ldap.searchBase=ou=people,dc=rsmart,dc=com
\end{lstlisting}
\item Start it up with Maven
\begin{lstlisting}[language=bash,basicstyle=\scriptsize,backgroundcolor=\color{ubergray},caption={src/main/resources/custom.properties},frame=single,breaklines=true]
mvn war:inplace tomcat:run
\end{lstlisting}
\item Configure the application for CAS by editing the
\verb|/home/rice/kuali/main/dev/trnapp-config.xml|
\begin{lstlisting}[numbers=left,language=xml,basicstyle=\scriptsize,backgroundcolor=\color{ubergray},caption={src/main/resources/custom.properties},frame=single,breaklines=true]
<param name="rice.ldap.username">cn=admin,dc=rsmart,dc=com</param>
<param name="rice.ldap.password">rice</param>
<param name="rice.ldap.url">ldap://localhost</param>
<param name="rice.ldap.base">ou=people,dc=rsmart,dc=com</param>
<param name="rice.additionalSpringFiles">org/kuali/rice/kim/config/KIMLdapSpringBeans.xml</param>
<param name="cas.rice.server.name">${application.host}:8081</param>
<param name="cas.url">http://${cas.rice.server.name}/${cas.context.name}</param>
<param name="cas.require.https">false</param>
<param name="cas.validate.password">false</param>
<param name="filter.login.class">org.jasig.cas.client.authentication.AuthenticationFilter</param>
<param name="filter.login.casServerLoginUrl">${cas.url}/login</param>
<param name="filter.login.serverName">${application.host}:${http.port}</param>
<param name="filtermapping.login.1">/*</param>
<param name="filter.validation.class">org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter</param>
<param name="filter.validation.casServerUrlPrefix">${cas.url}</param>
<param name="filter.validation.serverName">${application.host}:${http.port}</param>
<param name="filtermapping.validation.2">/*</param>
<param name="filter.caswrapper.class">org.jasig.cas.client.util.HttpServletRequestWrapperFilter</param>
<param name="filtermapping.caswrapper.3">/*</param>
\end{lstlisting}
\item Browse to http://localhost:8081/cas/login
\includegraphics[width=\textwidth]{images/Screenshot16.png}
\end{enumerate}
\addcontentsline{toc}{subsection}{Add the Rice LDAP Integration Module}
\subsection*{2 Add the Rice LDAP Integration Module}
Add the LDAP Module to a Rice project and customize the mappers.
\addcontentsline{toc}{subsection}{Goals}
\subsection*{Goals}
\begin{enumerate}
\item Attache the LDAP module to Rice 1.0.3 and build it
\item Learn to connect CAS to LDAP
\item Learn to debug and troubleshoot LDAP Queries
\item Learn to map between an LDAP database and KIM objects
\item Learn to modify mappings at all levels
\item Learn about caching in KIM
\item Learn about configuring Rice LDAP Integration
\end{enumerate}
\addcontentsline{toc}{subsection}{Implementation}
\subsection*{1 Implementation}
\subsubsection*{1.1 Enable LDAP Integration}
\begin{enumerate}
\item Switch to the \verb|rice-src/ldap/| project
\item Browse to \verb|src/main/config/example-config/|
\item Open the rice-config.xml
\item Copy the contents into \verb|trnapp-config.xml|
\item Change the fields until they are like this:
\begin{lstlisting}[numbers=left,language=xml,basicstyle=\scriptsize,backgroundcolor=\color{ubergray},caption={trnapp-config.xml},frame=single,breaklines=true]
<param name="rice.ldap.username">cn=admin,ou=people,dc=rsmart,dc=com</param>
<param name="rice.ldap.password">rice</param>
<param name="rice.ldap.url">ldap://localhost</param>
<param name="rice.ldap.base">ou=People,dc=rsmart,dc=edu</param>
<param
name="rice.additionalSpringFiles">org/kuali/rice/kim/config/KIMLdapSpringBeans.xml</param>
\end{lstlisting}
This will turn the LDAP Integration on and configure the connection.
\end{enumerate}
\subsubsection*{1.2 Configure System Parameters}
\emph{These system parameters are so vital, that the application will fail
in most instances when not configured properly}
\begin{description}
\item [KIM\_TO\_LDAP\_FIELD\_MAPPINGS] Many different lookup for
entities storied in LDAP can exist and they are not constrained to
field name consistency. This means the field names can vary. In the
event that field names do vary, then there cannot be a one-to-one
mapping between KIM objects and LDAP objects. Instead, we have to
have redundant mappings. This system parameter allows us to do just
that.
When creating the System Parameters, use the following
\begin{lstlisting}[language=sql,basicstyle=\scriptsize,backgroundcolor=\color{ubergray},caption={trnapp-config.xml},frame=single,breaklines=true]
entityId=uid;principalId=uid;principalName=eduPersonPrincipalName;givenName=sn;principals.principalName=eduPersonPrincipalName;persons.principalName=eduPersonPrincipalName;principals.principalId=uid;principals.active=employeeStatus;lastName=sn;firstName=givenName;employmentInformation.employeeStatus=employeeStatus;employmentInformation.employeeId=emplId,facultyId;names.lastName=sn;names.firstName=givenName;employmentInformation.employeeStatusCode=employeeStatus;
\end{lstlisting}
\item [KIM\_TO\_LDAP\_VALUE\_MAPPINGS] map possible values in the
lookup form the results from an LDAP query. For example, employee
active/inactive types have Y, N, and Both values. Each value needs
to be mapped to a result from the LDAP query results.
\begin{lstlisting}[language=sql,basicstyle=\scriptsize,backgroundcolor=\color{ubergray},caption={trnapp-config.xml},frame=single,breaklines=true]
principals.active.Y=T;principals.active.N=!T;
\end{lstlisting}
\end{description}
\subsubsection*{1.3 Make KIMLdapSpringBeans.xml More Configurable}
We want to be able to modify the KIMLdapSpringBeans.xml which is in
the ldap module of the Rice project. We do not want to have to rebuild
it each time we make a change to the Spring beans.
\begin{enumerate}
\item Copy \textbf{KIMLdapSpringBeans.xml} from
\textbf{src/main/resources/org/kuali/rice/ldap/config} in the
\textbf{ldap} module in \textbf{rice-src} to your
\textbf{src/main/resources} in the \textbf{trnapp} project.
\includegraphics[width=\textwidth]{images/Screenshot19.png}
\includegraphics[width=\textwidth]{images/Screenshot20.png}
\item Edit the new \textbf{KIMLdapSpringBeans.xml} to look like:
\begin{lstlisting}[numbers=left,language=xml,basicstyle=\scriptsize,backgroundcolor=\color{ubergray},caption={trnapp/src/main/resources/KIMLdapSpringBeans.xml},frame=single,breaklines=true]
<bean id="kimConstants" class="org.kuali.rice.kim.util.ConstantsImpl">
<property name="kimLdapIdProperty" value="${rice.ldap.param.kimLdapIdProperty}" />
<property name="kimLdapNameProperty" value="${rice.ldap.param.kimLdapNameProperty}" />
<property name="snLdapProperty" value="${rice.ldap.param.snLdapProperty}" />
<property name="givenNameLdapProperty" value="${rice.ldap.param.givenNameLdapProperty}" />
<property name="entityIdKimProperty" value="${rice.ldap.param.entityIdKimProperty}" />
<property name="employeeMailLdapProperty" value="${rice.ldap.param.employeeMailLdapProperty}" />
<property name="employeePhoneLdapProperty" value="${rice.ldap.param.employeePhoneLdapProperty}" />
<property name="defaultCountryCode" value="${rice.ldap.param.defaultCountryCode}" />
<property name="mappedParameterName" value="$mappedParameterName}" />
<property name="mappedValuesName" value="${rice.ldap.param.mappedValuesName}" />
<property name="parameterNamespaceCode" value="${rice.ldap.param.parameterNamespaceCode}" />
<property name="parameterDetailTypeCode" value="${rice.ldap.param.parameterDetailTypeCode}" />
<property name="personEntityTypeCode" value="${rice.ldap.param.personEntityTypeCode}" />
<property name="employeeIdProperty" value="${rice.ldap.param.employeeIdPropertyd}" />
<property name="departmentLdapProperty" value="${rice.ldap.param.departmentNumber}" />
<property name="employeeTypeProperty" value="${rice.ldap.param.employeeTypeProperty}" />
<property name="employeeStatusProperty" value="${rice.ldap.param.employeeStatusProperty}" />
<property name="affiliationLdapProperty" value="${rice.ldap.param.affiliationLdapProperty}" />
<property name="primaryAffiliationLdapProperty" value="${rice.ldap.param.primaryAffiliationLdapProperty}" />
<property name="defaultCampusCode" value="${rice.ldap.param.defaultCampusCode}" />
<property name="defaultChartCode" value="${rice.ldap.param.defaultChartCode}" />
<property name="taxExternalIdTypeCode" value="${rice.ldap.param.taxExternalIdTypeCode}" />
<property name="externalIdProperty" value="${rice.ldap.param.externalIdProperty.externalId}" />
<property name="externalIdTypeProperty" value="${rice.ldap.param.externalIdTypeProperty.externalIdentifierTypeCode}" />
<property name="affiliationMappings"
value="${rice.ldap.param.affiliationMappings}"
/>
<property name="employeeAffiliationCodes" value="${rice.ldap.param.employeeAffiliationCodes}" />
</bean>
\end{lstlisting}
Notice that I prefixed the parameters with
\textbf{rice.ldap.param}. This is the standard way to create a context
for your parameters. Otherwise, it is unpolished and can be vulnerable
to a name collision.
\item Create a new file called \textbf{ldap-config.xml} in your
\textbf{trnapp} project. The file will be located in
\textbf{src/main/resources/META-INF}
\item Copy the contents of \textbf{KIMLdapSpringBeans.xml} into it.
\item Then edit the file using search/replace until it looks like a
standard XML Config. Here is what I had:
\begin{lstlisting}[numbers=left,language=xml,basicstyle=\scriptsize,backgroundcolor=\color{ubergray},caption={trnapp/src/main/resources/KIMLdapSpringBeans.xml},frame=single,breaklines=true]
<config>
<param name="rice.ldap.param.kimLdapIdProperty" >uid</param>
<param name="rice.ldap.param.kimLdapNameProperty" >eduPersonPrincipalName</param>
<param name="rice.ldap.param.snLdapProperty" >sn</param>
<param name="rice.ldap.param.givenNameLdapProperty" >givenName</param>
<param name="rice.ldap.param.entityIdKimProperty" >entityId</param>
<param name="rice.ldap.param.employeeMailLdapProperty" >mail</param>
<param name="rice.ldap.param.employeePhoneLdapProperty" >employeePhone</param>
<param name="rice.ldap.param.defaultCountryCode" >1</param>
<param name="rice.ldap.param.mappedParameterName" >KIM_TO_LDAP_FIELD_MAPPINGS</param>
<param name="rice.ldap.param.mappedValuesName" >KIM_TO_LDAP_VALUE_MAPPINGS</param>
<param name="rice.ldap.param.parameterNamespaceCode" >KR-SYS</param>
<param name="rice.ldap.param.parameterDetailTypeCode" >All</param>
<param name="rice.ldap.param.personEntityTypeCode" >PERSON</param>
<param name="rice.ldap.param.employeeIdProperty" >emplId</param>
<param name="rice.ldap.param.departmentLdapProperty" >departmentNumber</param>
<param name="rice.ldap.param.employeeTypeProperty" >employeeType</param>
<param name="rice.ldap.param.employeeStatusProperty" >employeeStatus</param>
<param name="rice.ldap.param.affiliationLdapProperty" >affiliationProperty</param>
<param name="rice.ldap.param.primaryAffiliationLdapProperty" >eduPersonPrimaryAffiliation</param>
<param name="rice.ldap.param.defaultCampusCode" >MC</param>
<param name="rice.ldap.param.defaultChartCode" >UA</param>
<param name="rice.ldap.param.taxExternalIdTypeCode" >TAX</param>
<param name="rice.ldap.param.externalIdProperty" >externalIdentifiers.externalId</param>
<param name="rice.ldap.param.externalIdTypeProperty" >externalIdentifiers.externalIdentifierTypeCode</param>
<param name="rice.ldap.param.affiliationMappings"
>staff=STAFF,faculty=FCLTY,employee=STAFF,student=STDNT,affilate=AFLT</param>
<param name="rice.ldap.param.employeeAffiliationCodes" >STAFF,FCLTY</param>
</config>
\end{lstlisting}
\item Add the \textbf{ldap-config.xml} to your \textbf{/home/rice/kuali/main/dev/trnapp-config.xml}
\begin{lstlisting}[numbers=left,language=xml,basicstyle=\scriptsize,backgroundcolor=\color{ubergray},caption={trnapp-config.xml},frame=single,breaklines=true]
<param
name="config.location">classpath:META-INF/ldap-config.xml</param>
\end{lstlisting}
\item Since we are here, change the
\textbf{rice.additionalSpringFiles} to refer to our new \textbf{KIMLdapSpringBeans.xml}
\begin{lstlisting}[numbers=left,language=xml,basicstyle=\scriptsize,backgroundcolor=\color{ubergray},caption={trnapp-config.xml},frame=single,breaklines=true]
<param
name="rice.additionalSpringFiles">KIMLdapSpringBeans.xml</param>
\end{lstlisting}
\item Now when we can modify our LDAP configuration from our
\textbf{trnapp-config.xml}, and not worry about having to
redistribute the rice-ldap.jar each time.
\end{enumerate}
\addcontentsline{toc}{subsection}{Integration}
\subsection*{2 Integration}
We have already configured our Rice LDAP Integration and implemented
it, but what haven't done is actually integrate it into our Rice and
distribute that yet. As it stands, we probably cannot start our
application because of this missing dependency. We will now do the
integration and set that up.
\subsubsection*{2.1 Add the ldap module to rice}
\begin{enumerate}
\item Open the \textbf{rice-src/pom.xml}.
\item Locate the \textbf{modules} section
\item Add the \verb|<module>ldap</module>|
\begin{lstlisting}[numbers=left,language=xml,basicstyle=\scriptsize,backgroundcolor=\color{ubergray},caption={rice-src/pom.xml},frame=single,breaklines=true]
<modules>
<module>api</module>
<module>impl</module>
<module>ldap</module>
<module>web</module>
<module>sampleapp</module>
<module>ksb</module>
<module>kcb</module>
<module>kns</module>
<module>kim</module>
<module>kew</module>
<module>ken</module>
</modules>
\end{lstlisting}
\item Now install the module. Execute the following from
\textbf{rice-src}
\begin{lstlisting}[language=bash,basicstyle=\scriptsize,backgroundcolor=\color{ubergray},caption={Install
the LDAP Integration Module},frame=single,breaklines=true]
mvn clean install
\end{lstlisting}
\end{enumerate}
\subsubsection*{2.2 Go}
Now you can just start your application. Now you have two tomcat
contexts you must start. One for your Rice application, and one for
CAS.
\begin{enumerate}
\item Go to Run->Start CAS
\item Go to Run->Start Tomcat
\item Browse to http://localhost:8081/cas/login
\item You are now using LDAP Integration
\end{enumerate}
\addcontentsline{toc}{subsection}{Use Case for Adding Caching}
\subsection*{3 Use Case for Adding Caching}
Numerous LDAP Queries (even in a connection pooled environment) can be
taxing on the system. Caching can solve this. There are different
scenarios for solving the torrent of entity information with a
cache. You can implement your own internal cache within your LDAP
implementation, or you can utilize the builtin caching for KIM.
\newpage
{\setlength{\baselineskip}%
{0.0\baselineskip}
\section*{Notes}
\hrulefill \par}