changing password in eDirectory using PUMA using WPS6.1 - Websphere

This is a discussion on changing password in eDirectory using PUMA using WPS6.1 - Websphere ; hi, iam trying to change the password in eDirectory using WPS 6.1 using puma spi, same code is working fine through wps6.0, but in wps 6.1 its throwing the following error. *[9/19/08 10:10:13:000 IST] 00000042 SystemOut O the error message ...

+ Reply to Thread
Results 1 to 5 of 5

Thread: changing password in eDirectory using PUMA using WPS6.1

  1. changing password in eDirectory using PUMA using WPS6.1

    hi,

    iam trying to change the password in eDirectory using WPS 6.1 using puma spi, same code is working fine through wps6.0, but in wps 6.1 its throwing the following error.


    *[9/19/08 10:10:13:000 IST] 00000042 SystemOut O the error message is :com.ibm.portal.puma.AttributeNotDefinedException: EJPSG0007E: One of the attribute specified is not defined for this member type.userPassword: id: cn=wpadmin,ou=users,o=aiaaus*
    *attributeSubset: null*
    *objectID: [ExtIDImpl '9eAeIPDAMQS64JD43S46O1PCMIH65JO4JG5CIPDAMQS64JD43 S46O1P0' [27e57d62818dfe4eb2aa27e57d62818d / USER, Domain: [Domain: rel]]]*
    *descriptor: com.ibm.wps.datastore.impl.PrincipalDescriptorImpl @deffd7a6*
    * objectID: [ExtIDImpl '9eAeIPDAMQS64JD43S46O1PCMIH65JO4JG5CIPDAMQS64JD43 S46O1P0' [27e57d62818dfe4eb2aa27e57d62818d / USER, Domain: [Domain: rel]]]*
    * created: 1221107592453*
    * lastModified: 1221660169093*
    * distinguishedName: cn=wpadmin,ou=users,o=aiaaus*
    * resourceType: USER*
    * hasLoggedOut: true*
    * lastLoginTime: 1221660169093*
    * markupData: null*

    *stack: com.ibm.wps.um.UserImpl*
    *isExternal: false*

    please help me on the same.

  2. Re: changing password in eDirectory using PUMA using WPS6.1

    Based on the exception the password in your LDAP is not mapped to userPassword.

    Please check using PumaAPI or using wp-query-attribute-config. wp-query-attribute-config will provide you with a list of attributesnames available in your current VMM config and to which attributes they are mapped in LDAP

  3. Re: changing password in eDirectory using PUMA using WPS6.1

    hi,

    please find the attached attributes list which was generated by configengine.bat
    on that list iam not able to find any attribute related to password.

    actually in my scenario same code is worked for wps6.0 problem with only wps 6.1

    so need to do some thing on wps 6.1. please advice me on the same.

  4. Re: changing password in eDirectory using PUMA using WPS6.1

    hi,

    extending to previous message, if at all any configuation issue is there in wps, it won't work through wps admin console also right. but through admin console its working fine. only problem is while using PUMA iam getting the problem. please look at the following code(same is worked for wps6.0)

    HashMap userAttrs = new HashMap();
    userAttrs.put("cn", uid);
    if(password != null && !password.equals("")) {
    userAttrs.put("userPassword", password);
    }
    System.out.println("inside LDAP information"+userAttrs);
    PumaController pumaController = service.getController(request);
    PumaLocator pumaLocator = service.getLocator(request);
    List userList = pumaLocator.findUsersByAttribute("uid", uid);
    System.out.println("inside LDAP user information"+userList);
    User editUser = (User)userList.get(0);
    pumaController.setAttributes(editUser, userAttrs);

    the error message is :*com.ibm.portal.puma.AttributeNotDefinedException *: EJPSG0007E: One of the attribute specified is not defined for this member type.userPassword: id: cn=wpadmin,ou=users,o=aiaaus
    attributeSubset: null
    objectID: [ExtIDImpl '9eAeIPDAMQS64JD43S46O1PCMIH65JO4JG5CIPDAMQS64JD43 S46O1P0' [27e57d62818dfe4eb2aa27e57d62818d / USER, Domain: [Domain: rel]]]
    descriptor: com.ibm.wps.datastore.impl.PrincipalDescriptorImpl @d79fbe0b
    objectID: [ExtIDImpl '9eAeIPDAMQS64JD43S46O1PCMIH65JO4JG5CIPDAMQS64JD43 S46O1P0' [27e57d62818dfe4eb2aa27e57d62818d / USER, Domain: [Domain: rel]]]
    created: 1221107592453
    lastModified: 1221817449000
    distinguishedName: cn=wpadmin,ou=users,o=aiaaus
    resourceType: USER
    hasLoggedOut: true
    lastLoginTime: 1221817449000
    markupData: null

  5. Talking Re: changing password in eDirectory using PUMA using WPS6.1

    Hi,
    stop all.

    Pls. consider this: IBM Portal use "password" and not "userPassword".

    So, the right code to update password is

    ....

    userAttrs.put("password", password);

    ...

    and not

    userAttrs.put("userPassword", password);

    At last,
    if you've to use (get) this field inside your portlets, pls. don't forget to add this into portlet.xml file


    password


    Regards,
    Giacomo Maurizio.

+ Reply to Thread