Package org.forgerock.opendj.examples
Class RewriterProxy
java.lang.Object
org.forgerock.opendj.examples.RewriterProxy
This example is based on the
Proxy. This example does no load
balancing, but instead rewrites attribute descriptions and DN suffixes in
requests to and responses from a directory server using hard coded
configuration.
- It transforms DNs ending in
o=exampleon the client side to end indc=example,dc=comon the server side and vice versa. - It transforms the attribute description
fullnameon the client side tocnon the server side and vice versa.
- It does not support SSL connections.
- It does not support StartTLS.
- It does not support Abandon or Cancel requests.
- It has very basic authentication and authorization support.
- It does not rewrite bind DNs.
- It uses proxied authorization, so if you use OpenDJ directory server, you
must set the
proxied-authprivilege for the proxy user. - It does not touch matched DNs in results.
- It does not rewrite attributes with options in search result entries.
- It does not touch search result references.
<localAddress> <localPort> <proxyDN> <proxyPassword> <serverAddress> <serverPort>
If you have imported the users from Example.ldif, then you
can set proxyUserDN to cn=My App,ou=Apps,dc=example,dc=com
and proxyUserPassword to password.-
Method Summary
-
Method Details
-
main
Main method.- Parameters:
args- The command line arguments: local address, local port, proxy user DN, proxy user password, server address, server port
-