INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

update LDAP manager security credentials to use permanent manager logi

update LDAP manager security credentials to use permanent manager logi

update LDAP manager security credentials to use permanent manager logi

(OP)
<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:security="http://www.springframework.org/schema/security"
    xmlns:util="http://www.springframework.org/schema/util"
    xsi:schemaLocation="http://www.springframework.org/schema/beans
                        http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
                        http://www.springframework.org/schema/security
                        http://www.springframework.org/schema/security/spring-security-2.0.xsd
                        http://www.springframework.org/schema/util
                        http://www.springframework.org/schema/util/spring-util-2.5.xsd">

    <bean id="userSearch"
        class="org.acegisecurity.ldap.search.FilterBasedLdapUserSearch">
        <constructor-arg index="0" value="ou=IGGroup,ou=IG Users" />
        <constructor-arg index="1" value="sAMAccountName={0}" />
        <constructor-arg index="2" ref="initialDirContextFactory" />
        <property name="searchSubtree" value="true" />
    </bean>
    <!--
        <bean id="userSearch"
        class="org.acegisecurity.ldap.search.FilterBasedLdapUserSearch">
        <constructor-arg index="0"
        value="ou=IT,ou=IGUK,ou=IGGroup,ou=IG Users" />
        <constructor-arg index="1"
        value="((objectclass=user)(sAMAccountName=KoprulM)(memberOf=CN=RLE-IT-DEVELOPMENT-TESTING-Testing and Analysis Staff,OU=Role,OU=Security Groups,OU=Administrative Area,DC=igi,DC=ig,DC=local))" />
        <constructor-arg index="2" ref="initialDirContextFactory" />
        <property name="searchSubtree" value="true" />
        </bean>
    -->
    <bean id="ldapAuthProvider"
        class="org.acegisecurity.providers.ldap.LdapAuthenticationProvider">
        <constructor-arg>
            <bean
                class="org.acegisecurity.providers.ldap.authenticator.BindAuthenticator">
                <constructor-arg ref="initialDirContextFactory" />
                <property name="userSearch" ref="userSearch" />
            </bean>
        </constructor-arg>
        <constructor-arg ref="ldapAuthoritiesPopulator" />

    </bean>

    <bean id="ldapAuthoritiesPopulator"
        class="org.acegisecurity.providers.ldap.populator.DefaultLdapAuthoritiesPopulator">
        <constructor-arg ref="initialDirContextFactory" />
        <constructor-arg
            value="ou=Role,ou=Security Groups,ou=Administrative Area" />

        

    </bean>

    

    

      <bean id="initialDirContextFactory"
        class="org.acegisecurity.ldap.DefaultInitialDirContextFactory">
        <constructor-arg
            value="ldap://igi.ig.local:389/dc=igi,dc=ig,dc=local" />
        <property name="extraEnvVars" ref="environmentMap" />

        <property name="managerDn" value="igi\patharh" />
        <property name="managerPassword" value="******" />
        
    </bean>

    <util:map id="environmentMap" map-class="java.util.HashMap">
        <entry key="java.naming.security.principal" value="user" />
        <entry key="java.naming.security.credentials" value="password" />
        <entry key="java.naming.security.authentication" value="simple" />
        <entry key="java.naming.factory.initial"
            value="com.sun.jndi.ldap.LdapCtxFactory" />


    </util:map>
</beans>









This is the xml we are using where we are hard-coding the username
and password(here i have given as *****).
i have a login pase and have used spring framework's acegi security and integrated it with ldap.


can any one help me out what needs to be done?please!!!!!!!  

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close