This is a very old post. We are using SDM 17.3.0.11, and I would like to populate the Supervisor contact field via pdm_ldap_sync.exe via our Active Directory.
Is anyone else doing this? And is this the correct solution, not a fan of having to do an unsupported customization, surprised its not available out of the box.
Original Message:
Sent: Nov 06, 2012 01:24 PM
From: Lindsay Estabrooks
Subject: Contact supervisor details update with SD LDAP SYNC
The manager attribute in LDAP contains a dn (distinguished name). If you want to synchronize Service Desk with your LDAP source and update the supervisor on the contact here is what you need to do.
1. Modify the schema and add the following attribute to the cnt object:
z_supervisor_ldap_dn STRING 512
(When doing this in the schema designer leave the leading z off as it will be automatically added)
(Don't forget to pdm_publish after publishing your schema changes)
2. Your ldap.mod file should look like this:
OBJECT ldap LDAP
{
ATTRIBUTES LDAP_Entry
{
z_supervisor_ldap_dn manager STRING ;
} ;
} ;
(Service Desk can now be restarted)
3. after you run your ldap_sync, run a sqlcmd against the mdb using the following sql:
UPDATE dbo.ca_contact
SET supervisor_contact_uuid = super.contact_uuid
FROM dbo.ca_contact AS ca
INNER JOIN dbo.usp_contact AS usp ON ca.contact_uuid = usp.contact_uuid
INNER JOIN dbo.usp_contact AS super ON usp.z_supervisor_ldap_dn = super.ldap_dn
WHERE ca.inactive = 0