Is the user/password needed for creating ldapContextSource in applicationContext-externalAuth-LDAP.xml

Hi Guys,

 

I managed to get LDAP authentication working using  applicationContext-externalAuth-LDAP.xml.  But i have one concern when creating ldapContextSource, as you can see below a username and password must be providded in order for authentication to work. is there a way to avoid that?

 

<bean id="ldapContextSource" class="com.jaspersoft.jasperserver.api.security.externalAuth.ldap.JSLdapContextSource">

                <constructor-arg value="ldaps://xxxxxxxx.xx.xxx.com:636/dc=fox,dc=com"/>
        <property name="userDn"><value>uid=username</value></property>
        <property name="password"><value>password</value></property>
    </bean>
 
 
 
 
Thanks
lutfijd's picture
14
Joined: Aug 22 2012 - 12:14pm
Last seen: 8 years 2 months ago

1 Answer:

You need the login information if you are pulling info from your LDAP, for example, when you are using LDAP groups to assign roles in JRS.  If you are just assigning static roles, you may not need this. I don't know if you can leave this info blank, or if you need to log in as anonymous.

elizam's picture
14300
Joined: Mar 5 2012 - 9:19am
Last seen: 2 years 10 months ago

I am assigning LDAP groups to JRS roles, so i guess i have no choice but to keep it. Thanks.

lutfijd - 9 years 10 months ago
Feedback