0 Replies Latest reply on Nov 11, 2009 6:21 AM by aeik

    LDAP-Datatype for 'portal.user.enabled'

    Newbie

      Hi,

      i need to save all profile-data for a user in ldap, because the ldap ist used by other applications, too.

      everything works fine so far. only saving or changing the value of 'portal.user.enabled' does not work. registering a user fails, because the field could not be created.

      When enabling/disabling a user, following error occurs:

      ERROR [IdentityUserBean] updateProfile failed
      org.jboss.portal.identity.IdentityException: Wrong property type. Must be: java.lang.String; and found: java.lang.Boolean
      


      System:

      [Server] JBoss (MX MicroKernel) [4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181417)]
      OpenLDAP: slapd 2.4.9 on debian


      mapping in profile-config.xml:
       <property>
       <name>portal.user.enabled</name>
       <type>java.lang.Boolean</type>
       <access-mode>read-write</access-mode>
       <usage>mandatory</usage>
       <display-name xml:lang="en">Enabled</display-name>
       <description xml:lang="en">Is user enabled?</description>
       <mapping>
       <database>
       <type>column</type>
       <value>jbp_enabled</value>
       </database>
       <ldap>
       <value>enabled</value>
       </ldap>
       </mapping>
       </property>
      


      ldap-schema:
      attributeType ( 2.16.840.1.113730.3.2.94 NAME 'enabled'
       DESC 'userEnabled'
       SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 )
      


      I've manualy set the value in my ldap. The correct value is displayed in the Portal User Management.

      What's wrong with my configuration? Any idea to solve the problem?