I have the JNDIPrincipalStore working for users/roles.  I am using slide
pre2.2 and openldap.  I am looking for some suggestions on the following:

1.  My webapp is using a JNDI connection to authenticate and so is Slide.
It would be nice to share them somehow.
Currently I have the WebDAVConnectionSpec username and password hardcoded
to a valid one in ldap for testing.

      if (_factory == null){
              Context ic = new InitialContext();
              _factory = (WebDAVConnectionFactory) ic.lookup(jndi);
          }

      if (_spec == null){
            _spec = new WebDAVConnectionSpec(host, "operator", "operator",
timeout);
      }

             return (WebDAVConnection)_factory.getConnection(_spec);

Is there a way to cache or reuse the JNDI username/password that has
already been entered and authenticated from my JBoss/Tomcat webapp?
If not is there a nice way to save off the username/password so I can pass
it into the WebDAVConnectionSpec?

2.  I want to modify the LDAP slapd.conf security settings from the current
open policy to some minor common sense basic settings.  This is what is
there now.

# if no access controls are present, the default policy
# allows anyone and everyone to read anything but restricts
# updates to rootdn.  (e.g., "access to * by * read")
#
# rootdn can always read and write EVERYTHING!
 access to *
      by * read

I am hoping people who have implemented JNDI for Slide have already come
across this and can help me out.
Thanks


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to