Thanks very much for the reply. I tried acegi-security-1.0.0-RC1.jar, and this class was missing. Then I tried to use the source marked acegisecurity-2006-01-25_145747. This one had the ldap class in sandbox folder.
"Check out the code in the org.acegisecurity.providers.ldap package."
I'm not sure how to do this, could u pls elaborate it a bit more?
Thanks
Karthik.
On 1/26/06, Brandon Keepers <[EMAIL PROTECTED]> wrote:
The LDAP support has actually been reworked in CVS. It is now a part of
the core. Check out the code in the org.acegisecurity.providers.ldap
package. Let me know if you can't get it to build with maven. Configure
it like this:
<bean id="initialDirContextFactory"
class="org.acegisecurity.providers.ldap.DefaultInitialDirContextFactory">
<constructor-arg>
<value>ldap://hostname:389/dc=example,dc=com</value>
</constructor-arg>
</bean>
<bean id="ldapAuthenticationProvider"
class="org.aceigsecurity.providers.ldap.LdapAuthenticationProvider">
<constructor-arg>
<bean
class="org.acegisecurity.providers.ldap.authenticator.BindAuthenticator">
<constructor-arg>
<ref bean="initialDirContextFactory"/>
</constructor-arg>
<property name="userDnPatterns">
<list><value>uid={0},ou=people</value></list>
</property>
</bean>
</constructor-arg>
<constructor-arg>
<bean
class="org.acigisecurity.providers.ldap.populator.DefaultLdapAuthoritiesPopulator">
<constructor-arg>
<ref bean="initialDirContextFactory"/>
</constructor-arg>
<constructor-arg><value>ou=groups</value></constructor-arg>
<property name="groupRoleAttribute">
<value>cn</value>
</property>
<property name="groupSearchFilter">
<value>(|(member={0})(uniqueMember={0}))</value>
</property>
</bean>
</constructor-arg>
</bean>
Then just add a reference to the ldapAuthenticationProvider in your
authenticationManager.
Brandon
On Thu, 2006-01-26 at 13:24 -0500, Karthik V wrote:
> Hi,
>
> I'm brand new to acegi and spring, and fairly new to maven. I'm badly
> in need of LdapPasswordAuthenticationDao. I understand that it needs
> to be "pulled out of the sandbox and built" but I'm having great
> trouble doing this. After sorting out the one hundred issues maven
> listed, I got to the point of building the other folders from a
> nightly cvs export. But the sandbox folder still complains of errors
> and never gets built. To give u a sample, here are the last few
> errors.
>
> <snip>
>
> All I need is a jar file with ldap auth classes present. Can someone
> tell me if I can get a download?
>
> Karthik.
>
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Home: http://acegisecurity.org
Acegisecurity-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer
