Topic
3 replies Latest Post - ‏2013-04-21T15:35:13Z by franzw
S8G3_Navin_Kashyap
S8G3_Navin_Kashyap
17 Posts
ACCEPTED ANSWER

Pinned topic How to execute LDAP query for an object class and its attributes into ITIM Manage operation workflow (add operation).

‏2013-04-21T10:28:03Z |

Dear All,

Kindly help me,  How to execute LDAP query for an objectclass and its attributes into ITIM Manage operation workflow (add operation).

Actually, I need to fetch values of an attribute which is associated to custom(supporting data) object class though manage operations in ITIM that will execute before add operation.

Thanks in Advance.

Best Regards

  • franzw
    franzw
    315 Posts
    ACCEPTED ANSWER

    Re: How to execute LDAP query for an object class and its attributes into ITIM Manage operation workflow (add operation).

    ‏2013-04-21T11:39:34Z  in response to S8G3_Navin_Kashyap

    Let's first understand your problem - what are you trying to do ? If we do not know your problem the answers you will get may be severely misguided.

    Please check here : http://www.catb.org/esr/faqs/smart-questions.html - if you follow the spirit of the advices there you will be much better of.

    As a general advice you should use the JavaScript extensions available as a first choice always - depending on you system setup you may use ITIM APIs directly to do things in the workflows - but a better choice is normally (for security reasons) to wrap you API calls in JavaScript or in an extension - see the examples in the extension folder for how to do this.

    Normally you system design should be so that you do not need to access data outside the actual context you are working in - it is a good rule of thumb that you will get into trouble if you violate this. There are valid cases - but most situations where people do this is missing knowledge of how the system works or bad design choices.

    HTH

    Regards

    Franz Wolfhagen

  • S8G3_Navin_Kashyap
    S8G3_Navin_Kashyap
    17 Posts
    ACCEPTED ANSWER

    Re: How to execute LDAP query for an object class and its attributes into ITIM Manage operation workflow (add operation).

    ‏2013-04-21T12:04:34Z  in response to S8G3_Navin_Kashyap

    Thanks a lot Franz for your prompt response and sharing a link to draft questions in smart way.

    We are trying to fetch the data from objectclass which is a supporting data objectclass.

    ITIM javascript extensions have methods to search from Person, Service, Account, Container etc  objectclasses

    The same way I need to search from supporting data objectclass in Add account workflow.

    Please help if you have any valuable suggestions to achieve this.

     

    Regards,

    Navin Kashyap

    • franzw
      franzw
      315 Posts
      ACCEPTED ANSWER

      Re: How to execute LDAP query for an object class and its attributes into ITIM Manage operation workflow (add operation).

      ‏2013-04-21T15:35:13Z  in response to S8G3_Navin_Kashyap

      This is still not clear to me WHY you want to search a supporting class data. There may be other ways around to solve your problem that will not take you down the API programming way that is necessary to perform this search. You should try to explain the business process behind and why you have ended up thinking that this must be done in the workflow. This is NOT a technical question - it is a question of the process behind that you are trying to implement.

      So - if you REALLY really needs this, the best way is to use the DirectoryObjectSearch class in the API - you should wrap it in a JavaScript function - both to make it easier to use and also make the implementation more secure. If the object is something that is defined as an ITIM entity you should of course use the more specific search class e.g. GroupSearch.

      HTH

      Regards

      Franz Wolfhagen