Jahia in English > Jahia 6.1 and MS...

0 (0 Good)
0 (0 Bad)

Jahia 6.1 and MS Active Directory

by  kzimmer »  2011/10/19 18:53

We are having issues connecting to our LDAP Source.  I believe our source is Windows 2003.

Only some of the users came across.  We are unable to search for a user in the LDAP group.  We are unable to assign LDAP users to Jahia Groups.  (It seems that these values worked w/ Jahia 5.5)

The /applicationcontext-services.xml looks like:

    <bean id="JahiaUserManagerLDAPProvider" class="org.jahia.services.usermanager.JahiaUserManagerLDAPProvider" parent="jahiaServiceTemplate">
        <property name="cacheService" ref="JahiaCacheService"/>
        <property name="key" value="ldap"/>
        <property name="defaultProvider" value="false"/>
        <property name="readOnly" value="true"/>
        <property name="priority" value="2"/>
        <property name="ldapProperties">
            <map>
                <entry key="context.factory" value="com.sun.jndi.ldap.LdapCtxFactory"/>
                <entry key="url" value="ldap://10.45.100.05:389/"/>
                <entry key="authentification.mode" value="simple"/>
                <entry key="public.bind.dn" value="dc=company,dc=com"/>
                <entry key="public.bind.password" value=""/>
                <entry key="uid.search.attribute" value="cn"/>
                <entry key="uid.search.name" value="dc=company,dc=com"/>
                <entry key="search.countlimit" value="2500"/>
                <entry key="search.objectclass" value="person"/>
                <entry key="search.wildcards.attributes" value="ou, cn, o, c, mail, uid, uniqueIdentifier, givenName, sn, dn"/>
                <entry key="firstname.attribute.map" value="givenName"/>
                <entry key="lastname.attribute.map" value="sn"/>
                <entry key="email.attribute.map" value="mail"/>
                <entry key="organization.attribute.map" value="ou"/>
                <entry key="ldap.connect.pool" value="true"/>                
            </map>
        </property>
    </bean>

...

 <bean id="JahiaUserManagerService" parent="proxyTemplate">
        <property name="target">
            <bean class="org.jahia.services.usermanager.JahiaUserManagerRoutingService" parent="jahiaServiceTemplate" factory-method="getInstance">
                <property name="providersTable">
                    <map>
                        <entry key="jahia_db" value-ref="JahiaUserManagerDBProvider"/>
                        <entry key="ldap" value-ref="JahiaUserManagerLDAPProvider"/>
                    </map>
                </property>
            </bean>
        </property>
    </bean>


    <bean id="JahiaGroupManagerLDAPProvider" class="org.jahia.services.usermanager.JahiaGroupManagerLDAPProvider" parent="jahiaServiceTemplate">
        <property name="cacheService" ref="JahiaCacheService"/>
        <property name="key" value="ldap"/>
        <property name="defaultProvider" value="false"/>
        <property name="readOnly" value="true"/>
        <property name="priority" value="2"/>
        <property name="groupManager" ref="org.jahia.hibernate.manager.JahiaGroupManager"/>
        <property name="jahiaUserManagerService" ref="JahiaUserManagerService"/>
        <property name="ldapProperties">
            <map>
                <entry key="context.factory" value="com.sun.jndi.ldap.LdapCtxFactory"/>
                <entry key="url" value="ldap://10.45.100.05:389/"/>
                <entry key="authentification.mode" value="simple"/>
                <entry key="public.bind.dn" value="dc=company,dc=com"/>
                <entry key="public.bind.password" value=""/>
                <entry key="search.attribute" value="cn"/>
                <entry key="search.name" value="dc=company,dc=com"/>
                <entry key="search.countlimit" value="350"/>
                <entry key="search.refferal" value="follow"/>
                <entry key="search.objectclass" value="group"/>
                <entry key="members.attribute" value="member"/>
                <entry key="dynamic.search.objectclass" value="memberOf"/>
                <entry key="dynamic.members.attribute" value="cn"/>
                <entry key="preload" value="true"/>
                <entry key="search.wildcards.attributes" value="cn,description,group,memberOf,member"/>
                <entry key="groupname.attribute.map" value="cn"/>
                <entry key="description.attribute.map" value="description"/>
                <entry key="ad.range.step" value="0"/>
                <entry key="ldap.connect.pool" value="true"/>                
            </map>
        </property>
    </bean>

<bean id="JahiaGroupManagerService" parent="proxyTemplate">
        <property name="target">
            <bean class="org.jahia.services.usermanager.JahiaGroupManagerRoutingService" parent="jahiaServiceTemplate" factory-method="getInstance">
                <property name="providersTable">
                    <map>
                        <entry key="jahia_db" value-ref="JahiaGroupManagerDBProvider"/>
                        <entry key="ldap" value-ref="JahiaGroupManagerLDAPProvider"/>
                    </map>
                </property>
            </bean>
        </property>
    </bean>

...

 

  (kzimmer)

Number of messages  10
Registration date
0 (0 Good)
0 (0 Bad)

Re: Jahia 6.1 and MS Active Directory

by  kzimmer »  2011/10/26 16:54

we got it to work

we removed

<entry key="search.refferal" value="follow"/>

We changed

<entry key="uid.search.name" value="ou=something,dc=something,dc=com"/>

  (kzimmer)

Number of messages  10
Registration date
0 (0 Good)
0 (0 Bad)

Re: Re: Jahia 6.1 and MS Active Directory

by  shuber »  2011/10/31 10:56

Hello,

Glad you got it to work and thanks for the feedback !

Best regards,

  Serge Huber.

Serge Huber (shuber)

Number of messages  271
Registration date
Contact
Share
Feedback

Get in touch

Whether you are a current user or if you are just evaluating Jahia, we are here to help.

Contact us

Share this page