cancel
Showing results for 
Search instead for 
Did you mean: 

How to integrate ldap at the activiti rest level

jaikrishna
Champ on-the-rise
Champ on-the-rise
Hi ,

I followed exactly what was mentioned in the activiti user guide .. Still I am not able to integrate ldap .
Please help
6 REPLIES 6

erikwinlof
Confirmed Champ
Confirmed Champ
Some more details about what happens would be helpful.

You get an error message?
You sure LDAP is up and running? Can you use it without Activiti?

Cheers

jaikrishna
Champ on-the-rise
Champ on-the-rise
I get an error message saying :
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 33 i
n XML document from class path resource [activiti-custom-context.xml] is invalid
; nested exception is org.xml.sax.SAXParseException; lineNumber: 33; columnNumbe
r: 50; Element type "property" must be followed by either attribute specificatio
ns, ">" or "/>".

But I checked all the tags in the activiti cutom context xml .. everything looks to be fine

trademak
Star Contributor
Star Contributor
Hi,

If you get this error message the XML can't be ok. Can you share the XML?

Best regards,

jaikrishna
Champ on-the-rise
Champ on-the-rise
This is my xml .. I dont see any missing tags here ..

property name="configurators">
          <list>
              <bean class="org.activiti.ldap.LDAPConfigurator">

                 <property name="server" value="xxx" />
                <property name="port" value="xxxx" />
                <property name="user" value="xxxx" />
                <property name="password" value="xxxxx" />


                 <property name="baseDn" value="DC=xxxx,DC=xxxxx,DC=xxx" />
                <property name="queryUserByUserId" value="(&amp;(objectClass=person)(sAMAccountName={0}))" />
                                                <property name="queryGroupsForUser" value="(&amp;(objectClass=group)(member={0}))"/>                   

                <property name="userIdAttribute" value="sAMAccountName" />
                <property name="userFirstNameAttribute" value="givenName" />
                <property name="userLastNameAttribute" value="sn" />

                <property name="groupIdAttribute" value="cn" />
                <property name="groupNameAttribute" value="cn" />

              </bean>
          </list>
      </property>

jaikrishna
Champ on-the-rise
Champ on-the-rise
property name="configurators">
          <list>
              <bean class="org.activiti.ldap.LDAPConfigurator">

                 <property name="server" value="xxx" />
                <property name="port" value="xxxx" />
                <property name="user" value="xxxx" />
                <property name="password" value="xxxxx" />


                 <property name="baseDn" value="DC=xxxx,DC=xxxxx,DC=xxx" />
                <property name="queryUserByUserId" value="(&amp;(objectClass=person)(sAMAccountName={0}))" />
                                                <property name="queryGroupsForUser" value="(&amp;(objectClass=group)(member={0}))"/>                   

                <property name="userIdAttribute" value="sAMAccountName" />
                <property name="userFirstNameAttribute" value="givenName" />
                <property name="userLastNameAttribute" value="sn" />

                <property name="groupIdAttribute" value="cn" />
                <property name="groupNameAttribute" value="cn" />

              </bean>
          </list>
      </property>

jaikrishna
Champ on-the-rise
Champ on-the-rise
i have uploaded the config i added in the custom context xml .. pls verify and tell me