Skip to Content
avatar image
Former Member

Capture User ID and populate in a variable using IUSER

Hey ,

The issue is related to User Management Tab > Identity Management in the Portal

Requirement

Need to develop a Web dynpro java link in the Portal, when executed it needs to get the all the USERS from LDAP ( LDAP table name is UME_STRINGS ), and identify if the field Krb5Principalname is blank, then populate the USER ID into that field and save it back to LDAP.

Can you please help how to get the all the Users from the LDAP using Java code.

I know i need to use UMFactory class but how to get the All the users stored in LDAP ?

Thanks

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Feb 06, 2012 at 10:03 AM

    Why would you do that using Web Dynpro?

    First of all, most LDAP systems restrict the number of results to max out at 1000 or 2000 entries so I would restrict your search to only those entries for which Krb5Principalname is not set. However, if you are in a large organisation where this property isn't set for the majority of users, your page will hang, time out or result in an out of memory...

    Second, your application should have write rights to your LDAP system, which most UME service accounts don't have...

    Add comment
    10|10000 characters needed characters exceeded

    • Hi,

      If you are updating through the UME API, you're only updating the user properties in the portal context.

      From what I understand you want to update in your LDAP source as well, for that you need to have write access to your LDAP system (i.e. using a service user with write access) and use the API or web services provided by your LDAP in order to make changes

      Hope this explains,

      Robin