-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thierry,

Thierry Lam wrote:
| I'm currently using the following realm configuration(Tomcat 5.5) and
| it's working fine:
|
|    <Realm className="org.apache.catalina.realm.JNDIRealm"
|             connectionName="[EMAIL PROTECTED]"
|             connectionPassword="****"
|             connectionURL="ldap://domain.com";
|             referrals="follow"
|             userBase="DC=domain,DC=com"
|             userSearch="(sAMAccountName={0})"
|             userSubtree="true"
|             allRolesMode="strictAuthOnly"
|    />
|
| However, I want to set it up so that I can refine my search in the
| following two specific locations only:
|
| OU=Mails,DC=domain,DC=com
| OU=Services,DC=domain,DC=com
|
| How can I use Realm to do a search in the above two locations only?

You should just have to modify your userSearch to include a more complex
search specification. Something like:

userSearch="(&(sAMAccount={0})(|(OU=Mails)(OU=Services))"

Hope that helps,
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgR5D8ACgkQ9CaO5/Lv0PDxuACgqtIrDRMJYPieKSPP0Aa1RTY5
W+0AnjPDE1cPT+QLltLx/NUNpNV58zOi
=RR1i
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to