Using CUPI to Import LDAP user

Version 1
    This document was generated from CDN thread

    Created by: TONY COLGROVE on 05-03-2010 05:20:58 PM
    Is it possible to use CUPI to create an LDAP imported subscriber?

    Subject: RE: Using CUPI to Import LDAP user
    Replied by: David Wanagel on 08-03-2010 11:08:55 AM
    There are several internally complex issues we need to tackle before we can implement an LDAP import, so it is not possible in the first version of CUPI.
     
    -Dave

    Subject: RE: Using CUPI to Import LDAP user
    Replied by: Dan-Anders Hook on 07-04-2010 12:07:31 AM
    Hi!
     
    I just started to look at CUPI and have added a few users with a perl script. I would also like to more or less import users from LDAP programmatically, and after playing around for a while I started thinking. Is it only the fields LdapCcmPkid, LdapType and LdapCcmUserId that indicates that a user was originally imported? If so, would it be terribly wrong to create the users as below? I pulled the pkid by doing a run sql select pkid from enduser where userid = "alice" at the CLI, have'nt found a way to do that via any API in CUC (the AXL interface a la CUCM is not available) so maybe I can update it on a manual basis. The rest of the user info is easy to pull directly from either LDAP or CUCM. Am I missing anything or would this result in the same database information as if it was imported via cuadmin (given that the pkid is correct)?
     
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <User>
        <Alias>alice</Alias>
        <FirstName>Alice</FirstName>
     <LastName>Adams</LastName>
        <DtmfAccessId>12345</DtmfAccessId>
        <LdapCcmPkid>351331bc-af44-461c-ab7b-31d9c93cd5b7</LdapCcmPkid>
        <LdapType>3</LdapType>
        <LdapCcmUserId>alice</LdapCcmUserId>
    </User>
    Kind regards,
     
    //Dan

    Subject: RE: Using CUPI to Import LDAP user
    Replied by: David Wanagel on 09-04-2010 01:42:25 PM
    Hi Dan,
     
    Sorry for the delay, I am working on some LDAP prototyping right now and thought I could get back to you sooner.  The short summary is that if you are comfortablle getting around the CUCM database and managing the Connection LDAP fields on your own, you can get probably LDAP to work.  The three fields you identified are the important three fields from a Connection perspective.  It sounds like you have figured out how to configure the LDAP integration in CUCM and turn on DirSynch, which is also going to be required before you can get LDAP working properly.
     
    -Dave

    Subject: RE: Using CUPI to Import LDAP user
    Replied by: Dan-Anders Hook on 20-04-2010 02:18:52 PM
    Great, thanks! I was skiing last week that´s why I havent replied sooner. I'll do a bit more testing in my lab, the main problem as I see it is that it is kind of difficult to extract the pkid from the enduser table in CUC that dirsync populates, but then again that is something I can do manually for the time being.
     
    Kind regards,
     
    //Dan