LDAPImport format options?

Hi RT users,

I am configuring the LDAPImport extension to replace an ancient local
script with similar functionality and I am running into a format problem.
I would like to have the RealName field as “surname, givenname”. I can
easily do “givenname surname” by just using the appropriate LDAP
attributes. Is there any way to manage that change during the import
process?

Regards,
Ken

Hi Ken,

LDAPImport accepts a subroutine reference in the mapping section, so if
you need to manipulate a value or grab multiple values, you can write
some code to do it. There is an example of accessing the LDAP attributes
in a short subroutine in the docs:

JimOn 4/28/16 3:46 PM, ktm@rice.edu wrote:

Hi RT users,

I am configuring the LDAPImport extension to replace an ancient local
script with similar functionality and I am running into a format problem.
I would like to have the RealName field as “surname, givenname”. I can
easily do “givenname surname” by just using the appropriate LDAP
attributes. Is there any way to manage that change during the import
process?

Regards,
Ken

RT 4.4 and RTIR Training Sessions https://bestpractical.com/training

  • Washington DC - May 23 & 24, 2016