SDK 4.1 Multidirectory script bug.

Unanswered Question
Dec 19th, 2008

Just to enrich the community :-)

SDK 4.1 Multidirectory script bug.

Script gives an error if you are trying to read from ipPhone LDAP field via

s.AddReturnAttr("ipPhone", "Telephone", "%1", 31);

(standard field used by default is "telephoneNumber" which works just fine)

Corrected by removing phone number from sorting parameters when telephoneNumber is ""undefined" (why would you sort on undef in the first place:)

if (telephoneNumber == "undefined") {

// original line

// s.AddSortingAttr("sn, givenName, telephoneNumber", 1);

// replacement line

s.AddSortingAttr("sn, givenName", 1);

s.SearchByName(last + "*", first + "*");

}

Seem like a bug to me,

let me know if I am wrong though

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.

Actions

This Discussion