-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
im just working on a web application, where I use a LDAP realm for the
authentification and a postgresql resource in my context.xml. Both are
working fine.
Now I need to access the LDAP in my running web application again. I do
not want to store the user credentials and server information in my
sourcecode. I want to use it as resource like I am used to access my
postgresql database.
In Java I access my database with:
database = (DataSource) ctx.lookup("java:/comp/env/jdbc/pgsql");
It is possible to use the same way to access my LDAP?
If yes, how do I set it up in my context.xml? I searched for example
configurations the whole day and I only found some examples how to
access a database and use LDAP for an authentification.
There must be a way to define it in my context.xml like
<Resource name="ldap/DirContext"
auth="Container"
type="com.sun.jndi.ldap.LdapCtxFactory"
...
How are the further parameters?
Could anybody offer an example.
Many thanks in advance.
Regards,
Sebastian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHWJ3PDven//UCaP8RApHbAJsExSCKeH3aPGBFtj+9Ibll9IlLLACcDrx/
znlEgMVBDtEGZtuf8J+VMF0=
=XTMG
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To start a new topic, e-mail: [email protected]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]